This guide describes how to install Tor Client on the Debian based systems like Linux Mint, Ubuntu etc.
Tor or The Onion Router – is an encrypted network that can route your traffic through relays, making the traffic appear to come from exit nodes.
Unlike with proxies, the exit node itself doesn’t know your IP address or where you are.
To redirect connections through the Tor network we will use ProxyChains utility.
Set Up an Official Tor Repository
Edit /etc/apt/sources.list
file.
$ sudo vi /etc/apt/sources.list
Append the following line:
deb http://deb.torproject.org/torproject.org <RELEASE NAME> main
e.g.
deb http://deb.torproject.org/torproject.org jessie main
Do you know the RELEASE NAME of your distribution?
If you don’t know the release name of your distribution, you can find it out by running the following command:
$ cat /etc/*[-_]{release,version}
e.g.
$ cat /etc/*[-_]{release,version} DISTRIB_ID=LinuxMint DISTRIB_RELEASE=17.1 DISTRIB_CODENAME=rebecca DISTRIB_DESCRIPTION="Linux Mint 17.1 Rebecca" NAME="Ubuntu" VERSION="14.04.1 LTS, Trusty Tahr" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 14.04.1 LTS" VERSION_ID="14.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" jessie/sid
Tor Installation
Add the GPG key used to sign the packages by running the following commands:
$ gpg --keyserver keys.gnupg.net --recv 886DDD89 $ gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89|sudo apt-key add -
Refresh your sources:
$ sudo apt-get update
Install the following package to keep the signing key up to date:
$ sudo apt-get install deb.torproject.org-keyring
Install the Tor and ProxyChains by running the following command:
$ sudo apt-get install tor proxychains
The following basic packages will be installed:
Package | Description |
---|---|
tor | Anonymizing overlay network for TCP |
proxychains | Redirect connections through proxy servers |
The ProxyChains is already configured to use Tor by default.
You can verify this by looking up /etc/proxychains.conf
.
The last lines should be like these:
[ProxyList] # add proxy here ... # meanwile # defaults set to "tor" socks4 127.0.0.1 9050
Verify Tor
You can test the Tor by checking your public IP address from the command line.
$ wget -q -O - ip.appspot.com 83.***.***.*** $ proxychains wget -q -O - ip.appspot.com ProxyChains-3.1 (http://proxychains.sf.net) |DNS-request| ip.appspot.com |S-chain|-<>-127.0.0.1:9050-<><>-4.2.2.2:53-<><>-OK |DNS-response| ip.appspot.com is 74.125.193.141 |S-chain|-<>-127.0.0.1:9050-<><>-74.125.193.141:80-<><>-OK 154.35.132.83