Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint

Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint

Tor, The Onion Router, is a network of Virtual Tunnels that allows users to communicate securely and as well as anonymously over Internet. Tor allows organizations and individuals to share information over public networks without compromising their privacy. We can use Tor to keep websites from tracking us and also our family members, or to connect to news sites, instant messaging services, or the websites which are blocked by the Internet providers and Network Administrators.

Tor was originally designed, implemented, and deployed as a third-generation onion routing project of the U.S. Naval Research Laboratory. It was originally developed with the U.S. Navy in mind, for the primary purpose of protecting government communications. Today, it is used every day for a wide variety of purposes by normal people, the military, journalists, law enforcement officers, activists, and many others.

In this quick how-to let us learn how to use Tor with our browsers. The steps provided here were tested on Ubuntu 13.04 Desktop, but it should work on all Debian/Ubuntu and its derivatives.

Install Tor & Vidalia On Ubuntu / Debian / Linux Mint

Tor is available in the default repositories of Debian/Ubuntu, but they might be bit outdated. So add Tor repository to your distribution source lists.

Edit file /etc/apt/sources.list,

$ sudo nano /etc/apt/sources.list

Add the following lines depending upon your distribution version. As i am testing this on my Ubuntu 13.04 desktop, i added the following lines.

deb raring main

Save and close the file. If you’re using Ubuntu 13.10, then the lines should be,

deb saucy main

For Debian 7 Wheezy,

deb wheezy main

Add the gpg key using following commands:

$ gpg --keyserver --recv 886DDD89 
$ gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

Update the repository list and install vidalia using commands:

$ sudo apt-get update
$ sudo apt-get install tor vidalia

During installation, you’ll be asked which user should be able to control Tor service. Select the user and click Ok.

sk@sk: ~_013Now Vidalia is installed and running.

Configure Firefox Browser

Open your browser. Go to Edit -> Preferences -> Advanced -> Network ->Settings. Select manual Proxy Configuration. In the SOCKS Host column, enter localhost or and in the port column enter 9050 as shown in the below screenshot.

Firefox Preferences_015Now point your browser with URL You will see a green message that indicates: “Congratulations. This browser is configured to use Tor”. Red message indicate that Tor is not setup. Refer the following screenshot.

Are you using Tor? - Mozilla Firefox_014The same settings are applicable for all browsers, just open the Browser settings/preferences window, find the Network settings, Enter in proxy server column and 9050 in port box. To disable Tor, Select Use System Proxy settings on browser settings.

Note: If you want to use Tor for anonymous web browsing, please read our article about Tor Browser Bundle. It comes with readily configured Tor and a browser patched for better anonymity. To use SOCKS directly (for instant messaging, Jabber, IRC, etc), you can point your application directly at Tor (localhost port 9050), but see this FAQ entry for why this may be dangerous.

That’s it. Good Luck! Stay Safe!

  • seannyob

    TOR Project, it might be noted, strongly suggests just running the TOR Browser, which is an easy download & install.

  • SK

    Yes agree, also i mentioned it in the article itself Seannyob.

  • Martino Stecher

    Hello, perhabs SK can comment on security issues if you try to use TOR with your standard browser? As i understand TOR has evidence that certain plugin’s would forward your IP in any case. This would compromise the whole logic of using TOR, which aims to protect your IP.

  • 健毅 黃

    As @seannyob:disqus mentioned, the preference is to use the Tor Browser. If you must use another browser, just changing the proxy is NOT enough as your browser will issue clear DNS requests to your ISP’s DNS server. You have to use *torsocks* or *proxychains* to work around that, OR run tor as root, set it to listen for DNS requests, and use localhost as a DNS host (running tor as root isn’t recommended, though.) See my blog entry from July at for my results when I last tinkered with Tor DNS.

  • SK

    Already noted in the last paragraph of this article.