Tor Autoinstall ---> #!/bin/sh

1. Tor Autoinstall ---> #!/bin/sh

Lucas
FreedomLINUX

(usa Debian)

Enviado em 19/03/2015 - 13:18h

achei esse script e resolvi compartilhar:

 #!/bin/sh
echo "
######################################
# TOR AutoInstall By MexicanH #
# Usage: chmod 777 install.sh #
# Run: ./install.sh #
# twitter: @MexicanH #
######################################
"
echo "deb http://deb.torproject.org/torproject.org wheezy main" >> /etc/apt/sources.list
clear scr
echo "[*] Instalando las llaves...."
gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
echo "Listo!!"
clear scr
echo "[*] Atualizando repositórios...."
apt-get update
clear scr
echo "[*] Instalando TOR"
apt-get install deb.torproject.org-keyring
apt-get install tor
echo "Listo!!"
clear scr
echo "[*] Instalando Privoxy"
apt-get install privoxy
echo "[*] Configurando privoxy"
echo "forward-socks5 / 127.0.0.1:9050 ." >> /etc/privoxy/config
echo "Listo!!"
service tor restart
service privoxy restart
echo "Tor ha sido instalado satisfatoriamente."



  


2. Re: Tor Autoinstall ---> #!/bin/sh

edps
edps

(usa Slackware)

Enviado em 19/03/2015 - 13:34h

downloads777 escreveu:

achei esse script e resolvi compartilhar:

 #!/bin/sh
echo "
######################################
# TOR AutoInstall By MexicanH #
# Usage: chmod 777 install.sh #
# Run: ./install.sh #
# twitter: @MexicanH #
######################################
"
echo "deb http://deb.torproject.org/torproject.org wheezy main" >> /etc/apt/sources.list
clear scr
echo "[*] Instalando las llaves...."
gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
echo "Listo!!"
clear scr
echo "[*] Atualizando repositórios...."
apt-get update
clear scr
echo "[*] Instalando TOR"
apt-get install deb.torproject.org-keyring
apt-get install tor
echo "Listo!!"
clear scr
echo "[*] Instalando Privoxy"
apt-get install privoxy
echo "[*] Configurando privoxy"
echo "forward-socks5 / 127.0.0.1:9050 ." >> /etc/privoxy/config
echo "Listo!!"
service tor restart
service privoxy restart
echo "Tor ha sido instalado satisfatoriamente."


hummm, curioso... porque vendo essas chaves GPG aí sabia que não eram do repositório, se quiser altere o script e modifique as chaves, ei-lo já pronto:


#!/bin/sh
echo "
######################################
# TOR AutoInstall By MexicanH #
# Usage: chmod 777 install.sh #
# Run: ./install.sh #
# twitter: @MexicanH #
######################################
"
echo "deb http://deb.torproject.org/torproject.org wheezy main" >> /etc/apt/sources.list
clear scr
echo "[*] Instalando las llaves...."
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 219EC810 && gpg --export 219EC810 | sudo apt-key add -
echo "Listo!!"
clear scr
echo "[*] Atualizando repositórios...."
apt-get update
clear scr
echo "[*] Instalando TOR"
apt-get install deb.torproject.org-keyring
apt-get install tor
echo "Listo!!"
clear scr
echo "[*] Instalando Privoxy"
apt-get install privoxy
echo "[*] Configurando privoxy"
echo "forward-socks5 / 127.0.0.1:9050 ." >> /etc/privoxy/config
echo "Listo!!"
service tor restart
service privoxy restart
echo "Tor ha sido instalado satisfatoriamente."


E se não estiver acreditando veja o log de importação das chaves:


[6497:6481 0:29] 01:28:56 Qui Mar 19 [edps@debian: +1] ~
(1:29)$ gpg --keyserver hkp://subkeys.pgp.net --recv-keys 219EC810 && gpg --export 219EC810 | sudo apt-key add -
gpg: requesting key 219EC810 from hkp server subkeys.pgp.net
gpg: key 886DDD89: "deb.torproject.org archive signing key" not changed
gpg: Número total processado: 1
gpg: não modificados: 1
OK


Aproveite e se sabe quem é o autor, faça uma referência à mudança proposta (a das chaves), traduza os textos para pt_BR e envie ao VOL como script.

E se não quiser usar o script, apenas adicione as seguintes entradas no arquivo /etc/apt/sources.list ou /etc/apt/sources.list/extras.list:


### Tor Project.
### Chave GPG: gpg --keyserver hkp://subkeys.pgp.net --recv-keys 219EC810 && gpg --export 219EC810 | sudo apt-key add -
### deb http://deb.torproject.org/torproject.org wheezy main


Veja mais em:

https://edpsblog.wordpress.com/2015/03/18/repositorios-extras-para-o-debian-wheezy/
https://edpsblog.wordpress.com/2015/03/18/repositorios-extras-para-o-debian-jessie/

IntÉ!








Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts