Tor Browser Command Line

3.2 Method 2: Command line. Open your command prompt. Navigate to C: Users user torrelay tor Tor with the command cd C: Users user torrelay tor Tor. Type RUNAS /user:torrelay tor.exe and press enter. If you have your torrc file somewhere other than the default location (Like the home folder), specify the path with the -f flag. Tor puts the torrc file in /usr/local/etc/tor/torrc if you compiled tor from source, and /etc/tor/torrc or/etc/torrc if you installed a pre-built package. Tor comes with a control port, which can be used to control it. You'll need to tell your GNU/Linux that you want the ability to execute shell scripts from the graphical interface or the command line. Navigate to the newly extracted Tor Browser directory. Right click on start-tor-browser.desktop, open Properties or Preferences and change the permission to allow executing file as program.

  • (Don't use sudo.) If you wanted to launch tor via the command line, you could navigate to the folder and just type start-tor-browser. Given that it's just locally downloaded and not formally installed, you'll need to supply the path (or register start-tor-browser manually - but that's a separate question).
  • The Tor Browser starts with a double click on the 'start-tor-browser.desktop' file in the extracted folder. All you have to do is extract the downloaded file. You just download the Tor Browser and extract the 'tor-browser-linux64-9.X.Xen-US.tar.xz' file into your 'Home' directory. Open your Command line interface (CLI) and enter this commands.

Note: You should only run a Windows relay if you can run it 24/7. If the operator is unable to guarantee that, a Snowflake is a better way to contribute resources.

Setting up a Windows system as a relay requires performing a few simple steps to set up a user account, download the expert bundle, implement a torrc configuration file and start up Tor from the command line.Below are detailed instructions on how to perform these steps - please ensure you follow them very carefully, and make any of the necessary modifications outlined along the way.

Update tor browser command line

First you will need to create a new account to allow Tor to run isolated from your personal configuration as well as have manageable system permissions.

  1. To begin, open your Control Panel and select 'Accounts'.
  2. On the left-side menu, select 'Family & other people'.
  3. Beside the 'Add another user to this PC' subheader, click the large + sign.
  4. A panel will now appear asking for the Windows account information. On the bottom, select the small text that states 'I do not have this users sign-in information'.
  5. On the next panel, select the similar text on the bottom stating 'Set up user without using a Microsoft account'.
  6. Enter a username for the user. Anything you like is fine, though within this guide the username torrelay will be used. Then enter a strong password and continue.

2.1 Downloading

The next step is to download and install Windows Expert bundle as well as set up your torrc file.

  1. Head over to Download Tor Source code and scroll down to select 'Windows Expert Bundle'.
  2. Head to your C:Userstorrelay directory.
  3. Create a folder called tor.*(Optional. A custom path can be used, though you will have to make necessary modifications in the following steps.)

2.2 Configuration

  1. Unpack the zipped Expert bundle into your newly created Tor directory. Two files will be placed there; one called Tor, and the other Data.
  2. You will now need to create a torrc file to define the ruleset of your relay.
  3. The default directory path for this file is C:UserstorrelayAppDataRoamingtortorrc, though you can specify a custom location at commandline startup with the -f flag. (More below)
  4. Open up your newly created torrc file in your text editor and populate it with the following contents:

Make sure everything is filled in correctly, then save and exit.

There are two methods for starting up your relay for the first time depending on your preferences and needs.

3.1 Method 1: User interface

  1. Navigate to the directory you extracted Tors files.
  2. Simply right-click on the tor.exe file and select 'Run as other user' from the drop-down menu, and enter the password for your Tor account when prompted.
Open
  • Note: Be sure not to click the 'Run as administrator' button - this is dangerous!

3.2 Method 2: Command line

  1. Open your command prompt. Navigate to C:UsersusertorrelaytorTor with the command cd C:UsersusertorrelaytorTor.
  2. Type RUNAS /user:torrelay tor.exe and press enter. If you have your torrc file somewhere other than the default location (Like the home folder), specify the path with the -f flag.
  • Example: RUNAS /user:torrelay tor.exe -f C:UsersusertorrelaytorTortorrc
  1. You should now see Tor starting up in your terminal. Wait until its finished bootstrapping.
  2. After a short period it should publish its OrPort, and you will be successfully relaying traffic for the Tor Network.
    • Notice: Depending on your systems settings, Tor may fail to start and produce an error indicating it is unable to create files. If this occurs, simply open the Windows Defender Security Center and select 'App & browser control'. Add the tor.exe file to the permissions list, then rerun tor.exe from the command line. Tor should now start up normally.

4. Final notes

Windows Command Line Web Browser

If you are having trouble setting up your relay, have a look at our help section.If your relay is now running, check out the post-install notes.

Tor Browser is widely used for anonymous web-surfing and protection against traffic analysis.

It is also can help to bypass Internet filters and access blocked websites.

This is a simple step by step guide that covers the installation process of the Tor Browser on such Linux systems as Ubuntu, Kali Linux, Debian, Linux Mint, Fedora etc.

Frankly speaking, there is no need to perform the classical installation, as it is just enough to download an archive with the latest stable version of the Tor Browser for Linux, unpack it and start the launcher.

Cool Tip: Want to stay anonymous? Learn how to use PROXY on the Linux command-line. Read more →

Install Tor Browser For Linux

1. Download an archive with the latest stable Tor Browser for Linux from the official website:

2. Unpack the downloaded archive:

3. Enter the extracted directory:

Start Tor Browser From Command Line

Cool Tip: Stay anonymous during port scanning! Use Nmap + Tor + ProxyChains! Safe and easy penetration testing! Read more →

5. Start the Tor Browser for Linux from the command-line:

To make the use of the Tor Browser for Linux more easy, you can add its symbolic link to the desktop and launch it from there:

4. At the first start, press the Connect button to connect to the Tor network.

Opera Browser Command Line Options

5. Ensure that your connection is secure by following this link.