{"id":31991,"date":"2017-12-07T15:56:16","date_gmt":"2017-12-07T15:56:16","guid":{"rendered":"http:\/\/blogmed.antonini.psc.br\/?p=31991"},"modified":"2021-04-02T04:56:00","modified_gmt":"2021-04-02T04:56:00","slug":"configurar-servidor-caduceu-no-raspbian","status":"publish","type":"post","link":"https:\/\/antonini.ddns.net\/?p=31991","title":{"rendered":"Configurar servidor caduceu no Raspbian"},"content":{"rendered":"<p><b>Configurar servidor<\/b><\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p><b>Hostname<\/b><\/p>\n<p><span style=\"font-weight: 400;\">nano \/etc\/hostname<\/span><\/p>\n<p><b>caduceu<\/b><\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p><b>Hosts<\/b><\/p>\n<p><span style=\"font-weight: 400;\">nano \/etc\/hosts<\/span><\/p>\n<p><b>127.0.0.1<\/b> <b>localhost.localdomain<\/b> <b>localhost<\/b><br \/>\n<b>192.168.1.4<\/b> <b>caduceu.antonini.psc.br<\/b> <b>caduceu<\/b><\/p>\n<p><b>::1<\/b> <b>localhost ip6-localhost ip6-loopback<\/b><br \/>\n<b>ff02::1<\/b> <b>ip6-allnodes<\/b><br \/>\n<b>ff02::2<\/b> <b>ip6-allrouters<\/b><\/p>\n<p><b>127.0.1.1<\/b> <b>caduceu<\/b><\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p><b>Resolv.conf<\/b><\/p>\n<p><span style=\"font-weight: 400;\">criar o arquivo<\/span><\/p>\n<p><em><span style=\"font-weight: 400;\">nano \/etc\/resolv.conf.tail<\/span><\/em><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Digitar nele<\/span><\/p>\n<p><em>nameserver 192.168.1.4<\/em><br \/>\n<em>domain antonini.psc.br<\/em><\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>IP fixo<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Renomear o arquivo interfaces original<\/span><\/p>\n<p><b>mv \/etc\/network\/interfaces interfaces-dhcp<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Criar um novo arquivo interfaces<\/span><\/p>\n<p><b>nano \/etc\/network\/interfaces<\/b><\/p>\n<p><span style=\"font-weight: 400;\">colocar dentro:<\/span><\/p>\n<p><i><span style=\"font-weight: 400;\">#N\u00e3o esquecer de identar as linhas dos IPs<\/span><\/i><\/p>\n<p><b># The loopback network interface<\/b><br \/>\n<b>auto lo<\/b><br \/>\n<b>iface lo inet loopback<\/b><\/p>\n<p><b># The primary network interface<\/b><\/p>\n<p><b>allow-hotplug eth0<\/b><br \/>\n<b>auto eth0<\/b><br \/>\n<b>iface eth0 inet static<\/b><br \/>\n<b>address 192.168.1.4<\/b><br \/>\n<b>netmask 255.255.255.0<\/b><br \/>\n<b>network 192.168.1.0<\/b><br \/>\n<b>broadcast 192.168.1.255<\/b><br \/>\n<b>gateway 192.168.1.1<\/b><br \/>\n<b># dns-* options are implemented by the resolvconf package, if installed<\/b><br \/>\n<b># dns-nameservers 179.184.27.64<\/b><br \/>\n<b># dns-search antonini.psc.br<\/b><br \/>\n&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">ap\u00f3s \u201ccomandar\u201d<\/span><\/p>\n<p><b>systemctl daemon-reload<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Acrescentar no final do arquivo dhcpcd.conf<\/span><\/p>\n<p><b>nano \/etc\/dhcpcd.conf<\/b><\/p>\n<p><b>interface eth0<\/b><\/p>\n<p><b>static ip_address=192.168.1.4\/24<\/b><br \/>\n<b>static routers=192.168.1.1<\/b><br \/>\n<b>static domain_name_servers=192.168.1.1<\/b><\/p>\n<p><span style=\"font-weight: 400;\">depois <\/span><b>reboot<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Dica aqui: https:\/\/www.modmypi.com\/blog\/how-to-give-your-raspberry-pi-a-static-ip-address-update<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Instalar Bind9<\/b><\/p>\n<p><b>sudo apt-get install bind9 dnsutils<\/b><\/p>\n<p><b>nano \/etc\/bind\/named.conf.local<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Incluir no final:<\/span><\/p>\n<p><b>zone &#8220;antonini.com.br&#8221; IN {<\/b><br \/>\n<b> &nbsp;&nbsp;&nbsp;<\/b> <b>type master;<\/b><br \/>\n<b> &nbsp;&nbsp;&nbsp;<\/b> <b>file &#8220;\/etc\/bind\/db.com&#8221;;<\/b><br \/>\n<b>};<\/b><\/p>\n<p><b>zone &#8220;antonini.psc.br&#8221; IN {<\/b><br \/>\n<b> &nbsp;&nbsp;&nbsp;<\/b> <b>type master;<\/b><br \/>\n<b> &nbsp;&nbsp;&nbsp;<\/b> <b>file &#8220;\/etc\/bind\/db.psc&#8221;;<\/b><br \/>\n<b>};<\/b><\/p>\n<p><b>zone &#8220;cienciasdasaude.med.br&#8221; IN {<\/b><br \/>\n<b> &nbsp;&nbsp;&nbsp;<\/b> <b>type master;<\/b><br \/>\n<b> &nbsp;&nbsp;&nbsp;<\/b> <b>file &#8220;\/etc\/bind\/db.ciencias&#8221;;<\/b><br \/>\n<b>};<\/b><\/p>\n<p><b>zone &#8220;antonini.med.br&#8221; IN {<\/b><br \/>\n<b> &nbsp;&nbsp;&nbsp;<\/b> <b>type master;<\/b><br \/>\n<b> &nbsp;&nbsp;&nbsp;<\/b> <b>file &#8220;\/etc\/bind\/db.med&#8221;;<\/b><br \/>\n<b>};<\/b><\/p>\n<p><b>zone &#8220;27.184.179.in-addr.arpa&#8221; {<\/b><br \/>\n<b> &nbsp;&nbsp;&nbsp;<\/b> <b>type master;<\/b><br \/>\n<b> &nbsp;&nbsp;&nbsp;<\/b> <b>file &#8220;\/etc\/bind\/db.192&#8221;;<\/b><br \/>\n<b>};<\/b><br \/>\n&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Criar o arquivo db.psc:<\/span><\/p>\n<p><b>nano \/etc\/bind\/db.com<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Colar dentro dele:<\/span><\/p>\n<p>$TTL 604800<br \/>\n@ IN SOA caduceu.antonini.com.br. root.antonini.antonini.psc.br. (<br \/>\n01012005 ; Serial<br \/>\n604800 ; Refresh<br \/>\n86400 ; Retry<br \/>\n2419200 ; Expire<br \/>\n604800 ) ; Negative Cache TTL<br \/>\n;<br \/>\n@ IN NS caduceu.antonini.com.br.<br \/>\n@ IN MX 5 mail<br \/>\n@ IN A 177.207.211.213<br \/>\ncaduceu IN A 177.207.211.213<br \/>\nmail IN A 177.207.211.213<br \/>\nwww IN A 177.207.211.213<br \/>\nftp IN A 177.207.211.213<br \/>\nblogmed IN A 177.207.211.213<br \/>\nmidia IN A 177.207.211.213<\/p>\n<p><span style=\"font-weight: 400;\">Criar o arquivo db.psc:<\/span><\/p>\n<p><b>nano \/etc\/bind\/db.psc<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Colar dentro dele:<\/span><\/p>\n<p><b>$TTL 604800<\/b><\/p>\n<p><b>@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>SOA <\/b> <b>caduceu.antonini.psc.br. root.antonini.antonini.psc.br. (<\/b><\/p>\n<p><b> &nbsp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p;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>caduceu &nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>mail &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>www &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>ftp &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>blogmed &nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>midia &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Criar o arquivo db.ciencias<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>nano \/etc\/bind\/db.ciencias<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>$TTL 604800<\/b><\/p>\n<p><b>@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SOA &nbsp;&nbsp;&nbsp;&nbsp;caduceu.cienciasdasaude.med.br. root.antonini.antonini.psc.br. (<\/b><\/p>\n<p><b> &nbsp;&nbsp;&nbsp;&nbsp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&nbsp;<\/b> <b>MX &nbsp;<\/b> <b>5 &nbsp;&nbsp;<\/b> <b>mail<\/b><\/p>\n<p><b>@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>caduceu &nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>mail &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>www &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>ftp &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Criar o arquivo db.med:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>nano \/etc\/bind\/db.med<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Colar dentro dele:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>$TTL 604800<\/b><\/p>\n<p><b>@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>SOA <\/b> <b>caduceu.antonini.med.br. root.antonini.antonini.med.br. (<\/b><\/p>\n<p><b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>01012005 &nbsp;&nbsp;&nbsp;<\/b> <b>; Serial<\/b><\/p>\n<p><b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>604800 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>; Refresh<\/b><\/p>\n<p><b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>86400 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>; Retry<\/b><\/p>\n<p><b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>2419200 &nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>; Expire<\/b><\/p>\n<p><b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>604800 ) &nbsp;&nbsp;&nbsp;<\/b> <b>; Negative Cache TTL<\/b><\/p>\n<p><b>;<\/b><\/p>\n<p><b>@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>NS &nbsp;<\/b> <b>caduceu.antonini.med.br.<\/b><\/p>\n<p><b>@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>MX &nbsp;<\/b> <b>5 &nbsp;&nbsp;<\/b> <b>mail<\/b><\/p>\n<p><b>@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>caduceu &nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>mail &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>www &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>ftp &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p><b>blogmed &nbsp;&nbsp;&nbsp;&nbsp;<\/b> <b>IN &nbsp;<\/b> <b>A &nbsp;&nbsp;<\/b> <b>177.207.211.213<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Criar o arquivo db.rev<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>nano \/etc\/bind\/db.192<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>@ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IN &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SOA &nbsp;&nbsp;&nbsp;&nbsp;caduceu.antonini.psc.br. antonini.antonini.psc.br. (<\/b><\/p>\n<p><b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2015121608 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;; serial, todays date + todays serial #<\/b><\/p>\n<p><b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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b>213<\/b> <b>3600<\/b> <b>PTR<\/b> <b>cienciasdasaude.med.br.<\/b><\/p>\n<p><b>213<\/b> <b>3600<\/b> <b>PTR<\/b> <b>antonini.med.br.<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\/etc\/init.d\/bind9 force-reload<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/etc\/init.d\/bind9 restart<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Instalar LAMP<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>sudo apt-get install apache2 apache2-utils<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>sudo apt-get install libapache2-mod-php5 php5 php-pear php5-xcache php5-mysql php5-curl php5-gd<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>cd \/var\/www\/<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>sudo echo &#8220;&lt;?php phpinfo(); ?&gt;&#8221; | sudo tee index.php<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>sudo apt-get install mysql-server mysql-client<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>sudo apt-get install phpmyadmin<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">&gt; Reconfigurar webserver: <\/span><b>apache<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">&gt; Configurar base de dados dbconfig-common para o phpmyadmin <\/span><b>sim <\/b><span style=\"font-weight: 400;\">(ou <\/span><b>yes)<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">&gt; Digitar a senha do usu\u00e1rio administrativo do MySQL : <\/span><b>senha do MySQL<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">&gt; Digitar uma senha &nbsp;para o PHPMySQL : <\/span><b>usar a mesma senha do MySQL<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">abrir o arquivo <\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>nano \/etc\/apache2\/apache2.conf <\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">incluir no final do arquivo a linha<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Include \/etc\/phpmyadmin\/apache.conf<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Caso o phpmyadmin d\u00ea erro (n\u00e3o encontrado ou acesso negado) digitar no terminal:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>sudo ln -s \/usr\/share\/phpmyadmin \/var\/www\/<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Instalar vsftpd<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>apt-get install vsftpd<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">depois:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>nano \/etc\/vsftpd.conf<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Fa\u00e7a as seguintes altera\u00e7\u00f5es:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">*<\/span><b>anonymous_enable=YES<\/b><span style=\"font-weight: 400;\"> para <\/span><b>anonymous_enable=NO<\/b><\/p>\n<p><span style=\"font-weight: 400;\">*Remova <\/span><b>local_enable=YES<\/b><span style=\"font-weight: 400;\"> e <\/span><b>write_enable=YES<\/b><span style=\"font-weight: 400;\"> apagando o s\u00edmbolo # \u00e0 frente de cada linha.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">*A seguir, v\u00e1 para o fim do arquivo e acrescente: <\/span><\/p>\n<p><b>force_dot_files=YES<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Criar link simb\u00f3lico para o usu\u00e1rio pi acessar a pasta var\/www<\/span><\/p>\n<p><b>ln -s \/var\/www\/ ~\/www<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Criar website no apache<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>mkdir \/var\/www\/html\/psc<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>chmod 777 -R \/var\/www\/html\/psc<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>cd \/etc\/apache2\/sites-available\/<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>nano antonini.psc.br.conf<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>&lt;VirtualHost *:80&gt;<\/b><b><br \/>\n<\/b> <b>ServerAdmin antonini@antonini.psc.br<\/b><b><br \/>\n<\/b> <b>ServerName antonini.psc.br<\/b><b><br \/>\n<\/b> <b>ServerAlias www.antonini.psc.br<\/b><b><br \/>\n<\/b> <b>DocumentRoot \/var\/www\/html\/psc\/<\/b><b><br \/>\n<\/b> <b>ErrorLog ${APACHE_LOG_DIR}\/error.log<\/b><b><br \/>\n<\/b> <b>CustomLog ${APACHE_LOG_DIR}\/access.log combined<\/b><b><br \/>\n<\/b><b>&lt;\/VirtualHost&gt;<\/b><b><br \/>\n<\/b><b><br \/>\n<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">depois:<\/span><b><br \/>\n<\/b><b>a2ensite antonini.psc.br.conf<\/b><b><br \/>\n<\/b><b>\/etc\/init.d\/apache2 reload<\/b><\/p>\n<p><b>\/etc\/init.d\/apache2 restart<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>mkdir \/var\/www\/html\/blogmed<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>chmod 777 -R \/var\/www\/html\/blogmed<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>cd \/etc\/apache2\/sites-available\/<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>nano blogmed.antonini.psc.br.conf<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>&lt;VirtualHost *:80&gt;<\/b><b><br \/>\n<\/b> <b>ServerAdmin antonini@antonini.psc.br<\/b><b><br \/>\n<\/b> <b>ServerName blogmed.antonini.psc.br<\/b><b><br \/>\n<\/b> <b>DocumentRoot \/var\/www\/html\/midia\/<\/b><b><br \/>\n<\/b> <b>ErrorLog ${APACHE_LOG_DIR}\/error.log<\/b><b><br \/>\n<\/b> <b>CustomLog ${APACHE_LOG_DIR}\/access.log combined<\/b><b><br \/>\n<\/b><b>&lt;\/VirtualHost&gt;<\/b><b><\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b><br \/>\n<\/b><span style=\"font-weight: 400;\">depois:<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">a2ensite blogmed.antonini.psc.br.conf<\/span><\/p>\n<p><span style=\"font-weight: 400;\">etc\/init.d\/apache2 reload<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/etc\/init.d\/apache2 restart<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>mkdir \/var\/www\/html\/midia<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>chmod 777 -R \/var\/www\/html\/midia<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>cd \/etc\/apache2\/sites-available\/<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>nano midia.antonini.psc.br.conf<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>&lt;VirtualHost *:80&gt;<\/b><b><br \/>\n<\/b> <b>ServerAdmin antonini@antonini.psc.br<\/b><b><br \/>\n<\/b> <b>ServerName midia.antonini.psc.br<\/b><b><br \/>\n<\/b> <b>DocumentRoot \/var\/www\/html\/midia\/<\/b><b><br \/>\n<\/b> <b>ErrorLog ${APACHE_LOG_DIR}\/error.log<\/b><b><br \/>\n<\/b> <b>CustomLog ${APACHE_LOG_DIR}\/access.log combined<\/b><b><br \/>\n<\/b><b>&lt;\/VirtualHost&gt;<\/b><b><br \/>\n<\/b><b><br \/>\n<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">depois:<\/span><b><br \/>\n<\/b><b>a2ensite midia.antonini.psc.br.conf<\/b><b><br \/>\n<\/b><b>\/etc\/init.d\/apache2 reload<\/b><\/p>\n<p><b>\/etc\/init.d\/apache2 restart<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">mkdir <\/span><b>\/var\/www\/html\/ciencias<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">chmod 777 -R <\/span><b>\/var\/www\/html\/ciencias<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>nano cienciasdasaude.med.br.conf<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>&lt;VirtualHost *:80&gt;<\/b><b><br \/>\n<\/b> <b>ServerAdmin antonini@antonini.psc.br<\/b><b><br \/>\n<\/b> <b>ServerName cienciasdasaude.med.br<\/b><b><br \/>\n<\/b> <b>ServerAlias www.cienciasdasaude.med.br<\/b><b><br \/>\n<\/b> <b>DocumentRoot \/var\/www\/html\/ciencias\/<\/b><b><br \/>\n<\/b> <b>ErrorLog ${APACHE_LOG_DIR}\/error.log<\/b><b><br \/>\n<\/b> <b>CustomLog ${APACHE_LOG_DIR}\/access.log combined<\/b><b><br \/>\n<\/b><b>&lt;\/VirtualHost&gt;<\/b><b><br \/>\n<\/b><b><br \/>\n<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">depois:<\/span><b><br \/>\n<\/b><b>a2ensite cienciasdasaude.med.br.conf<\/b><b><br \/>\n<\/b><b>\/etc\/init.d\/apache2 reload<\/b><\/p>\n<p><b>\/etc\/init.d\/apache2 restart<\/b><b><\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p><b>Apagar pacotes baixados<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>apt-get clean :mrgreen:<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Descobrir o UUID de um disco, pendrive ou dispositivo<\/b><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>ls -alh \/dev\/disk\/by-uuid\/<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Disco r\u00edgido Samsung 1TB<\/span><\/p>\n<p><b>da73d3f8-1058-484d-b00c-18859bc707f7<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Pendrive Kingstone USB 3.0 128GB<\/span><\/p>\n<p><b>a8cb019e-aac4-4bf0-83cc-67cc27e20f76<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>UUID=&lt;dispositivo&gt; &nbsp;&nbsp;&nbsp;\/var &nbsp;&nbsp;&nbsp;ext4<\/b> <b>defaults,noatime &nbsp;0 &nbsp;&nbsp;<\/b> <b>3<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>fstab no Raspberry Pi<\/b><\/p>\n<p><span style=\"font-weight: 400;\">proc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span> <span style=\"font-weight: 400;\">\/proc &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span> <span style=\"font-weight: 400;\">proc<\/span> <span style=\"font-weight: 400;\">defaults &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span> <span style=\"font-weight: 400;\">0 &nbsp;&nbsp;<\/span> <span style=\"font-weight: 400;\">0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/dev\/mmcblk0p6 &nbsp;\/boot &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span> <span style=\"font-weight: 400;\">vfat<\/span> <span style=\"font-weight: 400;\">defaults &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span> <span style=\"font-weight: 400;\">0 &nbsp;&nbsp;<\/span> <span style=\"font-weight: 400;\">2<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\/dev\/mmcblk0p7 &nbsp;\/ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span> <span style=\"font-weight: 400;\">ext4<\/span> <span style=\"font-weight: 400;\">defaults,noatime &nbsp;0 &nbsp;&nbsp;<\/span> <span style=\"font-weight: 400;\">1<\/span><\/p>\n<p><span style=\"font-weight: 400;\">UUID=&lt;n\u00ba&gt;<\/span> <span style=\"font-weight: 400;\">\/var<\/span> <span style=\"font-weight: 400;\">ext4<\/span> <span style=\"font-weight: 400;\">defaults,noatime 0<\/span> <span style=\"font-weight: 400;\">3<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># a swapfile is not a swap partition, no line here<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># &nbsp;&nbsp;use &nbsp;dphys-swapfile swap[on|off] &nbsp;for that<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Configurar servidor &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Hostname nano \/etc\/hostname caduceu &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Hosts nano \/etc\/hosts 127.0.0.1 localhost.localdomain localhost 192.168.1.4 caduceu.antonini.psc.br caduceu ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 127.0.1.1 caduceu &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Resolv.conf criar o arquivo nano \/etc\/resolv.conf.tail &nbsp; Digitar nele nameserver 192.168.1.4 domain antonini.psc.br &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &nbsp; IP fixo Renomear o arquivo interfaces original mv \/etc\/network\/interfaces interfaces-dhcp Criar um [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-31991","post","type-post","status-publish","format-standard","hentry","category-informatica"],"_links":{"self":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/31991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=31991"}],"version-history":[{"count":7,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/31991\/revisions"}],"predecessor-version":[{"id":31998,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=\/wp\/v2\/posts\/31991\/revisions\/31998"}],"wp:attachment":[{"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/antonini.ddns.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}