- By default,
start-tor-browsercould not run as root
- Tor would unexpectedly exit
Install Tor Browser
- Start the web browser and visit https://www.torproject.org
- Click Download Tor
- Click Download Tor Browser Bundle 32-bit for GNU/Linux
- Open it with
pupzip (default)and extract the contents
The browser can be launched from the command line by going to the installed directory and running the script
Tor Browser Should Not be Run as Root
start-tor-browser will display the warning message:
The Tor Browser should not be run as root. Exiting.
A simple alteration to the script fixed this issue.
- Edit the file
start-tor-browserusing a text editor like geany.
- Search for “root” will find the conditional statement
if [ "`id -u`" -eq 0 ]; then complain "The Tor Browser Bundle should not be run as root. Exiting." exit 1 fi
- Comment out or delete the line
The script would now continue running without exiting at this stage.
Tor Unexpectedly Exited
start-tor-browser would then display the “Tor unexpectedly exited” error messages:
Okay. Not much info. Looking at the terminal window showed the following messages:
Specifically, the line
[warn] /root/tor/tor-browser_en-US/Data/Tor is not owned by this user (root, 0) but by ftp (1000). Perhaps you are running Tor as the wrong user?
indicated the issue.