Kali Linux | Installing Tor Browser in Kali Linux without any error


Today we will install the Tor browser in our Kali Linux without any error, as everyone knows that the Tor browser is a very famous browser for surfing dark web ,TOR Stands for "The Onion Router", The Tor Browser is a web browser that anonymizes your web traffic using the Tor network, making it easy to protect your identity online. The dark web cannot be accessed without the Tor browser, to access the dark web, we must need tor browser it is not that you should only use tor browser to access the dark web, you can also use the tor browser to hide your identity on the internet and your internet provider may not know that what you are surfing on the Internet. If you are investigating a competitor, researching an opposing litigant in a legal dispute, or just think it's creepy for your ISP (Internet Service Provider) or the government to know what websites you visit, then the Tor Browser might be the right solution for you.
When we install Tor browser in Kali Linux, then there is an error  in running it with the root user of Kali Linux, "The Tor Browser Bundle should not be  run as root. Exiting".
We will install Tor Browser as well as fix this error so that the Tor Browser also runs with the root user of Kali Linux.
Follow the steps given below to install Tor Browser in Kali Linux and fix the error.


Step 1:
Download tor browser for linux from its official website that is torproject.org
             or
Click Here for download.

Kali Linux | Installing Tor Browser in Kali Linux without any error


Step 2:
Now open the terminal from the dock and wherever you have downloaded the tor browser, take your directory change using "cd" command.

 


and the use this command for extract the tar.xz file of tor browser.

Kali Linux | Installing Tor Browser in Kali Linux without any error


 


And now again do the same for the "cd" command, to go to the directory of the tor browser.

 
 

The command is to run the TorBrowser.

 


And now a pop-up window will appear in front of you.

Kali Linux | Installing Tor Browser in Kali Linux without any error


Step 3:
Now we have to configure TorBrowser for the root user,
follow these commands for fixing it. 
we have to open start-tor-browser file in any text editor, here i'm using gedit.

 
 


Kali Linux | Installing Tor Browser in Kali Linux without any error

now we have to find root by using CTRL + F
if [ "`id -u`" -eq 0 ]; then
complain "The Tor Browser Bundle should not be run as root.  Exiting."
exit 1
fi
now change the value -eq 0 to 1 and save the file by using CTRL + S and close the file.

Kali Linux | Installing Tor Browser in Kali Linux without any error

Step 4:
now run this command for open tor browser.

 


Now you will see that the Tor browser is running perfectly. 

Kali Linux | Installing Tor Browser in Kali Linux without any error

Now you have to click on the Connect button, your browser will be connected to the tor network and now you can surf the internet anonymously.

Kali Linux | Installing Tor Browser in Kali Linux without any error

Thank You.