2

I’m trying to get this ~/Desktop/Tor/tor-browser_en-US/ && ./start-tor-browser to run as a .sh. I've tried over and over again to get it to work, what am I doing wrong?

#!/bin/bash 
chmod +x file.command ~/Desktop/Tor/tor-browser_en-US/ && ./start-tor-browser

It has execute permissions and is saved as an .sh.

1 Answers1

0

Open a terminal and execute the following commands:

sudo nano /bin/start-tor

and copy/paste this into the file:

#!/bin/bash
~/Desktop/Tor/tor-browser_en-US/Browser/start-tor-browser

Press CTRL + o to save the file and press CTRL + x to exit and then execute the following commands in an open terminal:

sudo chmod +x /bin/start-tor

To run the script, open a terminal and run:

start-tor &

This file is already chmod +x when downloaded.so there is no need to do all that.

mchid
  • 44,904
  • 8
  • 102
  • 162