---
# System prepended metadata

title: Linux dos Roger

---

# Linux dos Roger

--- 

## Ip das portas

### Estáticos
cd /etc/netplan

nano /etc/netplan/00-installer-config.yami

![](https://i.imgur.com/Tnq66T1.jpg)

**Confirmar o ip**

![](https://i.imgur.com/GEhHcFI.jpg)

---
## Mandar portas abaixo ou acima

![](https://i.imgur.com/dgUwPpz.jpg)

---

![](https://i.imgur.com/fCNi8Yp.jpg)

### Nome da maquina 
nano /etc/hostname

ou

hostname "nome"

---

## DHCP 
**Instalação do dhcp**
![](https://i.imgur.com/HrnZcP8.jpg)

**Ficheiro de configuração**
![](https://i.imgur.com/F98tvzf.jpg)

---

![](https://i.imgur.com/DA72V48.jpg)

---
![](https://i.imgur.com/GQksqW5.jpg)

---
![](https://i.imgur.com/9tdKcgR.jpg)

---
![](https://i.imgur.com/1khkJJL.jpg)

**Restart no serviço**nano

![](https://i.imgur.com/A4yeyY8.jpg)
**Status do serviço**
![](https://i.imgur.com/lbrdct9.jpg)

**A funcionar**
![](https://i.imgur.com/rkOcHQL.jpg)

----
## DNS
**Instalar o serviço**
![](https://i.imgur.com/nQW2OVf.jpg)

---
**Entrar no named.conf.local
![](https://i.imgur.com/bNEfMEX.jpg)

---
**Introduzir as zones forward e reverse**
![](https://i.imgur.com/FMjELUI.jpg)

---
**Ir para /etc/bind**
![](https://i.imgur.com/uwjWJto.jpg)

---
**Entrar no ficheiro db.empty e configurar a forward zone**
![](https://i.imgur.com/RvfrRpS.jpg)

---
**Guardar com o nome da zona forward**
![](https://i.imgur.com/M89RJMV.jpg)

---
**Voltar a entrar no db.empty configurar a reverse zone e guardar com o nome da reverse**
![](https://i.imgur.com/rtkrQcE.jpg)

---
**Dar restart ao serviço**
![](https://i.imgur.com/vOAwQfm.jpg)

---
**Ver a status do serviço**
![](https://i.imgur.com/G9sak5t.jpg)





----

## Postfix

![](https://i.imgur.com/CsRjswj.jpg)
![](https://i.imgur.com/uM6Yq6p.jpg)
![](https://i.imgur.com/R9FdABK.jpg)

![](https://i.imgur.com/dtiDsaV.jpg)

![](https://i.imgur.com/qXr8GxM.jpg)

![](https://i.imgur.com/h99wz8P.jpg)

![](https://i.imgur.com/yqw4fJL.jpg)

![](https://i.imgur.com/wWFSVjm.jpg)

![](https://i.imgur.com/oBkGYF7.jpg)

![](https://i.imgur.com/lniXTcT.jpg)

![](https://i.imgur.com/CCpT6nk.jpg)

![](https://i.imgur.com/XPiznG3.jpg)

![](https://i.imgur.com/EK0tzCv.jpg)

![](https://i.imgur.com/lTovRBX.jpg)

![](https://i.imgur.com/w7m2yzj.jpg)

![](https://i.imgur.com/ijHSTgd.jpg)

![](https://i.imgur.com/g5E3M9z.jpg)

![](https://i.imgur.com/Sc8c8gc.jpg)

![](https://i.imgur.com/lBG9GKA.jpg)

![](https://i.imgur.com/8rNmUda.jpg)

![](https://i.imgur.com/gj3jsBD.jpg)
![](https://i.imgur.com/fwbB9pJ.jpg)
![](https://i.imgur.com/XfQtiYZ.jpg)
![](https://i.imgur.com/EN9LE5w.jpg)
![](https://i.imgur.com/CMECRui.jpg)
![](https://i.imgur.com/giEBhRx.jpg)

---

## Asterisk

![](https://i.imgur.com/ynEplkE.jpg)

---


![](https://i.imgur.com/8MCsjQA.jpg)

---
![](https://i.imgur.com/vvXmNzy.jpg)

---

![](https://i.imgur.com/gCVuawx.jpg)

---
![](https://i.imgur.com/tnAXZ8a.jpg)

---
![](https://i.imgur.com/Khgx7HA.jpg)



---
![](https://i.imgur.com/FSEw7XU.jpg)


---
![](https://i.imgur.com/wsjjDwo.jpg)


---
![](https://i.imgur.com/b73Om9l.jpg)


---
![](https://i.imgur.com/eWUWo6Y.jpg)

---

![](https://i.imgur.com/uKEZr7d.jpg)


### openfire


## Porta de rede Windows Server
Local Security Policy ->Local Policies -> Security Option -> User Account Control : Admin Approval Mode for the Built-in Administrator Account Not Definied -> Enable -> Reboot