How to Install Tor Browser in Kali Linux 2020


Tor Browser is a famous browser if you want your privacy over the internet. No one can trace your daily use like what are you doing, what website you visit etc. Kali Linux provides tons of tools which is help us in our security research project but in Kali Linux Tor Browser is not pre-installed we have to install Tor Browser in Kali Linux after installing the Kali Linux. 
You can read more at Tor Project.

HOW TO INSTALL TOR BROWSER IN KALI LINUX USING APT

Step 1

Open a terminal window

Step 2

Run apt-get update

Step 3

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

If you’re running the latest version of Kali that uses XFCE as the default desktop environment then you can’t use alacarte to edit the application menu. Instead, navigate to the Usual Applications folder and Internet. Then right-click on Tor Browser and edit the command entry to be sudo -u toruser -H torbrowser-launcher %u.

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)

Comments

Popular posts from this blog

Seedr.cc Review

Reinstall Windows Store in Windows 10

Bypass PowerShell Execution Policy to Pwn Windows

How to Move Windows to SSD

How to Install Android on Your PC Without an Emulator