installing-tor-in-kali-linux

Tor is free software and an open network. Tor protects you by bouncing your communications around a distributed network of relays run by volunteers all around the world: it prevents somebody watching your Internet connection from learning what sites you visit, and it prevents the sites you visit from learning your physical location. You can read more at TorProject

Step 1: Install From apt-get

The first step is to install the Tor services from the Kali repositories by using apt-get.

apt-get install tor

Step 2: Download Tor Bundle

Download the Tor Bundle from here:

Tor Bundle Download

Download the architecture-appropriate file above, save it somewhere, then run the tar command to extract the package from the download directory:

tar -xvf tor*

This command assumes this is the only file in the directory that starts with “tor”.

Step 3: Run The Tor Browser

To run the Tor Browser Bundle, execute the start-tor-browser script from the directory you just extracted:

./start-tor-browser

This will launch Vidalia and once that connects to Tor, it will launch Firefox.

Optional: If You Run As Root

If you’re running Kali Linux as root, you’ll get an error saying you can’t run Tor as root.

Option 1:
You can run the following commands to comment out this check and run Tor as root:
– Type

nano start-tor-browser

– Comment these lines

#if

[ “`id -u`” -eq 0 ]; then
# complain “The Tor Browser Bundle should not be run as root. Exiting.”
# exit 1
#fi

Save the file.

Option 2:
You can create a new user and configure Tor to run as that user even though you’re logged in as root.

useradd toruser
chown -R toruser tor-browser_en-US # Replace with your TBB folder
gksu -u toruser tor-browser_en-US/Browser/start-tor-browser