How To Install Tor Browser In Kali Linux

By |2019-02-09T14:17:26-05:00September 10th, 2016|Categories: Apps, Internet|Tags: , , , , , , , , , |17 Comments
Share This:


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.



How To Install Tor Browser In Kali Linux Using Apt

  • Open a terminal window
  • Run apt-get update
  • Run apt-get install tor torbrowser-launcher and select Y at the prompt

Now you’ll have a new Tor Browser application in the Applications menu under Usual Applications and Internet. This shortcut will only work if you’re not running as the root user. See the instructions below if you’re running Kali as root.

How To Install Tor Browser In Kali Linux Manually

  • Download the Tor Bundle from here: Tor Bundle Download
  • Download a package called torbrowser-launcher which can be found here: GitHub – TorBrowser-Launcher
  • 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”.
  • To run the Tor Browser Bundle, execute the start-tor-browser script from the directory you just extracted: ./start-tor-browser.desktop

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

How To Run Tor While Logged In As Root

If you’re running Kali Linux as root, you might get an error saying you can’t run Tor as root. Some website will tell you to edit the launcher script, but that is not the recommended method. Instead, follow the instructions below to add a new non-root user.

You can create a new user and configure Tor to run as that user even though you’re logged in as root. To do so, run these commands from Terminal:

  • adduser --home /home/toruser toruser (or whatever username you want to use)
    You’ll be prompted to create a password, but you don’t really need to save it unless you want to actually login as this user. Fill in the other prompts as needed.
  • You’ll need to run xhost si:localuser:toruser from Terminal to get the new user listed in xhost.
  • To run Tor as the new user, use this command from Terminal: sudo -u toruser -H torbrowser-launcher

You can also edit the Applications menu shortcut, but it’ll require another app to get installed:

  • Run apt-get install alacarte from Terminal
  • Run alacarte from Terminal after the app is installed
  • Browse through your Applications menu under Usual Applications > Internet and find Tor Browser and click Properties
  • Edit the command box and change it to sudo -u toruser -H torbrowser-launcher %u
  • Click OK and Close

Video Tutorial

How To Uninstall Tor Browser In Kali Linux Using Apt

If you used the Apt method above to install Tor and later wish to uninstall Tor, you can use the below command to remove and purge all of the packages and files that were installed.

  • Open a terminal window
  • Run apt-get remove --purge tor torbrowser-launcher and select Y at the prompt

How To Remove Tor User Account

If you used the above methods to create a regular user account to run Tor while logged in as root, you can use these steps to remove that account and delete the home directory that was created.

  • Open a terminal window
  • Run userdel -r toruser (or whatever username you want to use)

Share This:


Related Content


  1. ahronmoshe February 16, 2017 at 11:38 am - Reply

    thank you it is very help me!!

  2. how September 6, 2018 at 3:41 am - Reply

    not very beginner friendly. wish more tutorials would explain more in detail. totally lost in many steps

    • Robert Russell September 6, 2018 at 8:36 am - Reply

      Which steps did you get stuck at? Kali isn’t an operating system for beginners but I’m sure I could help you get it installed.

    • Robert Russell September 17, 2018 at 9:33 am - Reply

      I’ve made some significant changes to the article. I hope you find them helpful and more straightforward.

  3. Ebmm September 29, 2018 at 9:44 am - Reply

    I followed your instructions to the letter, everything went as your’s did, no issues at all yet after the alacarte config, Tor will not start at all. I’m using Kali 2018.3 on hardware.

    • Robert Russell September 29, 2018 at 10:11 am - Reply

      Could you paste what you have in the command box from the alacarte screen?

  4. sam October 11, 2018 at 8:32 pm - Reply

    i failed to launch the desktop extension.

  5. Kavan Mavati October 24, 2018 at 6:11 pm - Reply

    thank you its very useful info

  6. Govender November 8, 2018 at 3:38 pm - Reply

    Hey this is great!

    Although, how can i ensure that i am using tor as “toruser” and not root…. is there any way i can check?

    • Robert Russell February 9, 2019 at 2:19 pm - Reply

      As long as you’re using the commands above to launch Tor you’ll be using the toruser account. You might be able to check using the top command and see which user the process is running under.

  7. Steve Eckler November 9, 2018 at 5:25 pm