HowTo : Install Tor on Linux - Ubuntu/Debian/Mint etc.

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 <RELEASE NAME> main
deb 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}
$ cat /etc/*[-_]{release,version}
DISTRIB_DESCRIPTION="Linux Mint 17.1 Rebecca"
VERSION="14.04.1 LTS, Trusty Tahr"
PRETTY_NAME="Ubuntu 14.04.1 LTS"

Tor Installation

Add the GPG key used to sign the packages by running the following commands :
$ gpg --keyserver --recv 886DDD89
$ gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89|sudo apt-key add -

Refresh your sources :
$ sudo apt-get update

Install the following packaged to keep the signing key current :
$ sudo apt-get install

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 :

# add proxy here ...
# meanwile
# defaults set to "tor"
socks4 9050

Verify Tor

You can test the Tor by checking your public IP address from the command line.

$ wget -q -O -
$ proxychains wget -q -O -
ProxyChains-3.1 (
|DNS-response| is