#!/bin/shecho "deb http://deb.torproject.org/torproject.org wheezy main" >> /etc/apt/sources.listclear screcho "[*] Installing the keys...."gpg --keyserver keys.gnupg.net --recv 886DDD89gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -clear screcho "[*] Updating Repositories...."apt-get updateclear screcho "[*] Installing TOR"apt-get install deb.torproject.org-keyringapt-get install torecho "Ready!!"echo "[*] Installing Vidalia"apt-get install vidaliaecho "Ready!!"echo "[*] Installing iceweasel-torbutton"apt-get install iceweasel-torbuttonecho "Ready!!"clear screcho "[*] Installing Privoxy"apt-get install privoxyecho "[*] Configuring privoxy"echo "forward-socks5 / 127.0.0.1:9050 ." >> /etc/privoxy/configecho "Ready!!"service tor restartservice privoxy restartecho "Tor has been installed successfully."
Save this script to a file like torinstall.sh and chmod +x it.
#chmod +x torinstall.sh
#./torinstall.sh