TOR is the best network for protecting yourself from surveillance, TOR is a free software and open network that helps you defend against traffic analysis, from threatens personal freedom and privacy.

Install TOR on Kali Linux Tutorial

There are 3 ways of installing Tor service in Kali Linux You can install Tor by following any of these options:

Option #1: Install Tor from Kali Repository

Tor is available in Kali repository, to install it directly from the repository open your Terminal and type this:

Option #2: Install Tor from Debian Wheezy Repository

If you can’t install Tor using the first method then you may try this option. In this way we are going to add the official Tor repository according to our Debian distribution. Not to be confused, Kali is actually based on Debian and it uses the package management from “Wheezy”. So we are going to use “Wheezy” as our distribution.
Now open your terminal and follow these steps:

 

Step #1

Lets add the distribution in the list by opening the sources.list file

leafpad /etc/apt/sources.list

Now add the following line at the bottom of the file,

deb http://deb.torproject.org/torproject.org wheezy main

 

Step #2

Now we need to add the gpg key used to sign the packages by running the following commands:

gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -

 

Step #3

Lets refresh our sources:

apt-get update

 

Step #4

Now, before installing the Tor we must add the signing key,

apt-get install deb.torproject.org-keyring

 

Step #5

Finally,

apt-get install tor

Now Tor should be installed!
If no error occurs, follow the second step.

 

Option #3: Install Tor from development branch

If you are an advanced user and you want to install Tor using the development branch then this method is for you.

 

Step #1: Add Tor project repository to sources.list

You need to add a different set of lines to your/etc/apt/sources.listfile:

deb http://deb.torproject.org/torproject.org wheezy main
deb http://deb.torproject.org/torproject.org tor-experimental-0.2.5.x- wheezy main

 

Step #2: Add GPG keys, keyring and install Tor

Then run the following commands at your command prompt:

gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | apt-key add -
apt-get update
apt-get install tor deb.torproject.org-keyring

Now Tor should be installed!
If no error occurs, follow the second step.
Note: This release will provide you more features but it contains bugs too.

 

Option #4: Build and Install Tor from sources

If you want to build your own debs from source you must first add an appropriatedeb-srcline to sources.list.

deb-src http://deb.torproject.org/torproject.org wheezy main
deb-src http://deb.torproject.org/torproject.org wheezy main
deb-src http://deb.torproject.org/torproject.org tor-experimental-0.2.5.x--wheezy main

You also need to install the necessary packages to build your own debs and the packages needed to build Tor:

apt-get install build-essential fakeroot devscripts
apt-get build-dep tor

Then you can build Tor in~/debian-packages:

mkdir ~/debian-packages; cd ~/debian-packages
apt-get source tor
cd tor-*
debuild -rfakeroot -uc -us
cd ..

Now you can install the new package:

dpkg -i tor_*.deb

 

Step #2: Downloading and Running Tor bundle

Download the Tor Bundle from here,
https://www.torproject.org/projects/torbrowser.html.en
Download the architecture-appropriate file above, save it somewhere, then run one of the following two commands to extract the package archive:

tar -xvzf tor-browser-gnu-linux-i686-2.3.25-15-dev-LANG.tar.gz

or (for the 64-bit version):

tar -xvzf tor-browser-gnu-linux-x86_64-2.3.25-16-dev-LANG.tar.gz

(where LANG is the language listed in the filename).
Once that’s done, switch to the Tor browser directory by running:

cd tor-browser_LANG

(whereLANGis the language listed in the filename).
To run the Tor Browser Bundle, execute the start-tor-browser script:

./start-tor-browser

This will launchVidaliaand once that connects to Tor, it will launchFirefox