8 months ago
Note: you have to edit parts of the script that are in "green fonts".
STEP 1: Download Tor Browser from it's Official Website.
STEP 2: Extract Tor Browser To Your Home Directory
STEP 3: Open Your Terminal (ctrl+alt+t) and type in "nano".
STEP 4: Copy the entire script into your nano, the entire script is in red fonts with some portions of it in green. to indicate specifically what you need to change. now, there is one specific porttion of this script that is highligted in yellow, you have to change the square brackets there "[ ]" into a pair of open and close parenthesis "( )"
echo "Copying Icons Please Wait..."
sudo cp /home/ronald/tor-browser_en-US/Browser/browser/chrome/icons/default/default16.png /usr/share/icons/hicolor/16x16/apps/default16.png
sudo cp /home/ronald/tor-browser_en-US/Browser/browser/chrome/icons/default/default32.png /usr/share/icons/hicolor/32x32/apps/default32.png
sudo cp /home/ronald/tor-browser_en-US/Browser/browser/chrome/icons/default/default48.png /usr/share/icons/hicolor/48x48/apps/default48.png
sudo cp /home/ronald/tor-browser_en-US/Browser/browser/chrome/icons/default/default128.png /usr/share/icons/hicolor/128x128/apps/default128.png
echo "Icons Successfully Copied!"
echo "Creating File Configuration For The Menu Entry"
echo "[Desktop Entry]
Comment=Tor Browser is +1 for privacy and -1 for mass surveillance
Exec=sh -c '"/home/ronald/tor-browser_en-US/Browser/start-tor-browser" --detach || ([ ! -x "/home/ronald/tor-browser_en-US/Browser/start-tor-browser" ] && "$[dirname "$*"]"/Browser/start-tor-browser --detach)' dummy %k
StartupWMClass=Tor Browser" > Tor.desktop
sudo cp Tor.desktop /usr/share/applications/Tor.desktop
echo "Menu Entry File Successfully Created!"
echo "Refreshing Menu Entry"
sudo gtk-update-icon-cache -f /usr/share/icons/hicolor
echo "Menu Entry Successfully Refreshed"
echo "TorBrowser Successfully Installed!"
sudo rm -f ./Tor.desktop
#SCRIPT ENDS HERE
STEP 4: Save Your Script, Press ctrl+o, nano will prompt you to give your script a name, give it a filename like "InstallTorBrowser.sh", or any name that makes sense to you, then press ctrl+x to exit out of nano
STEP 5: Make Your Script Exectutable. type in "sudo u+x "InstallTorBrowser.sh"
STEP 6: Run Your Script. at this point, make sure that both your script and the tor browser folder are both in your home directory. you can run your script from the terminal by typing "./InstallTorBrowser.sh" or if that gives you error, try "sudo ./InstallTorBrowser.sh"
STEP 7: Run Tor Browser. at this point, you should be able to see it's icon on your menu, and you should be able to run it from there by clicking on it just like any normal application. you can also pin it into your panel if you like :)