Step 1 :
nano /etc/apt/sources.list
Append the following line to the file.
deb http://deb.torproject.org/torproject.org lucid main
Step 2 :
gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
apt-get update
apt-get install tor tor-geoipdb
apt-get install privoxy
Step 3 :
nano /etc/privoxy/config
Append the following line :
forward-socks4a / 127.0.0.1:9050 .
/etc/init.d/privoxy start
/etc/init.d/tor start
Step 3a (Optional) :
If you are behind firewall or NAT as well as router, you should append the following line at the configure file.
forward 192.168.*.*/ .
Step 4 :
Go to the Tor official site to download and install Tor button for Firefox.
Tor Button Plugin for Firefox
Step 5 :
Open Firefox. Go to "
Tools
" -- "Add-ons
" -- "Extensions
". Select "Torbutton's Preferences
".(a) At "
Proxy Settings
", unclick "Use Polipo
".(b) At "
Security Settings
", On browser startup, set Tor state to:
" select "Tor
".(c) At "
Display Settings
", select "Icon
".** Now, your Firefox will enable Tor on every launch unless you disabled the "Tor Button" on the Firefox.
Step 6 (Optional) :
To check if it works or not. Go to the following sites to check your Ip address.
http://cmyip.com
or
http://whatismyip.com
or
http://check.torproject.org
PART II : Console
Step a :
apt-get install proxychains elinks
Step b :
nano /etc/proxychains.conf
Append the following line :
socks4 127.0.0.1 9050
** It should be there.
Step c :
Usage :
proxychains nmap google.com
proxychains elinks http://cmyip.com
proxychains elinks http://www.whatismyip.com
To see your real IP address :
elinks cmyip.com
That's all! See you.