Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I tried to install tor on my new version of ubuntu but it seems that tor is not available in repositories , how else can I do it?

share|improve this question
check out this link. ubuntugeek.com/how-to-install-tor-browser-bundle-in-ubuntu.html – Amras Dec 27 '12 at 19:42

5 Answers

  • Use applications which support Tor

    You can install Tor on Ubuntu by executing the following commands in a Terminal:

    sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 886DDD89
    sudo add-apt-repository "deb http://deb.torproject.org/torproject.org $(lsb_release -s -c) main"
    sudo apt-get update
    sudo apt-get -y install tor-geoipdb
    

    Now you can start Tor by pressing Alt+F2 and entering tor. Applications that support a proxy can now be set up to use address localhost, port 9050 as a SOCKS proxy.


  • Surf the web anonymously

    If you just want to browse the web anonymously or access .onion domains (so-called hidden services), the recommended and simplest way is to use the Tor Browser Bundle:

    1. Download Tor Browser bundle
    2. Extract the downloaded archive
    3. click on the file "start-tor-browser".

  • Advanced setup

    If you still want to torify your existing browser and surf anonymously, you can install polipo

    sudo apt-get install polipo
    sudo cp /etc/polipo/config /etc/polipo/config.bak
    sudo wget -O /etc/polipo/config https://gitweb.torproject.org/torbrowser.git/blob_plain/ae4aa49ad9100a50eec049d0a419fac63a84d874:/build-scripts/config/polipo.conf
    sudo service polipo restart
    

    Set the browser proxy settings to localhost and port 8123. Check if the settigns are correct by visiting https://check.torproject.org.

share|improve this answer

Source

Tor browser Ubuntu PPA

  • 32-bit

sudo add-apt-repository ppa:upubuntu-com/tor

sudo apt-get update

sudo apt-get install tor-browser

  • 64-bit

sudo add-apt-repository ppa:upubuntu-com/tor64

sudo apt-get update

sudo apt-get install tor-browser

Always needed the command:

sudo chown $USER -R ~/.tor-browser/

Run from dash or terminal

tor-browser
share|improve this answer
the following intruction didn't work sudo chown $USER -R ~/.tor-browser/ because the directory don't exist. This is the output message: chown: cannot access '/home/zignd/.tor-browser/': No such file or directory – Zignd Nov 27 '12 at 11:07
@Zignd you probably need to start tor at least once for the directory to exist. – Bruno Pereira Nov 27 '12 at 22:05
@BrunoPereira It still didn't worked, I've also install tor, polipo and tor-geoipdb. I think this answer simply don't work. – Zignd Nov 28 '12 at 10:46

https://www.torproject.org/docs/tor-doc-unix.html.en

Step One: Download and Install Tor

The latest release of Tor can be found on the download page. We have packages for Debian, Red Hat, Gentoo, *BSD, etc there too. If you're using Ubuntu, don't use the default packages: use our deb repository instead. Similarly, CentOS / Fedora / OpenSUSE users should use our rpm repository instead.

If you're building from source, first install libevent, and make sure you have openssl and zlib (including the -devel packages if applicable). Then run:

tar xzf tor-0.2.3.25.tar.gz; cd tor-0.2.3.25 ./configure && make

Now you can run tor as src/or/tor, or you can run make install (as root if necessary) to install it into /usr/local/, and then you can start it just by running tor.

Tor comes configured as a client by default. It uses a built-in default configuration file, and most people won't need to change any of the settings. Tor is now installed.


Please pay attention to the warning in bold

The advised method of installing:

add this line to your /etc/apt/sources.list file:

 deb     http://deb.torproject.org/torproject.org <DISTRIBUTION> main

where you put the codename of your distribution (i.e. lenny, sid, maverick or whatever it is) in place of . Then add the gpg key used to sign the packages by running the following commands at your command prompt:

gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

Now refresh your sources, running the following command at your command prompt:

sudo apt-get update

If there are no errors you're good to continue. We provide a Debian package to help you keep our signing key current. It is recommended you use it. Install it using

sudo apt-get install deb.torproject.org-keyring

To finally install Tor just run:

sudo apt-get install tor

Now Tor is installed and running. Move on to step two of the "Tor on Linux/Unix" instructions.

share|improve this answer

Add this line:

deb     http://deb.torproject.org/torproject.org <DISTRIBUTION> main

to the /etc/apt/sources.list file, using sudo nano /etc/apt/sources.list.

Also, I find it easier to just download the tor browser bundle and unpack it. You get manual updates, but it informs you when there's a new version.

share|improve this answer

Tor's project page had this to say:

You'll need to set up our package repository before you can fetch Tor. First, you need to figure out the name of your distribution. If you're using Ubuntu 9.10 or 10.04, it's "karmic", while 9.04 is "jaunty", 8.10 is "intrepid", and 8.04 is "hardy". If you're using Debian Etch, it's "etch", and Debian Lenny is "lenny". Then add this line to your /etc/apt/sources.list file:

deb     http://deb.torproject.org/torproject.org <DISTRIBUTION> main

where you put the codename of your distribution (i.e. etch, lenny, sid, karmic, jaunty, intrepid, hardy or whatever it is) in place of .

Then add the gpg key used to sign the packages by running the following commands at your command prompt:

gpg --keyserver keys.gnupg.net --recv 886DDD89
gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

Now refresh your sources and install Tor by running the following commands at your command prompt:

apt-get update
apt-get install tor tor-geoipdb

Now Tor is installed and running. Move on to step two of the "Tor on Linux/Unix" instructions.

The DNS name deb.torproject.org is actually a set of independent servers in a DNS round robin configuration. If you for some reason cannot access it you might try to use the name of one of its part instead. Try deb-master.torproject.org, mirror.netcologne.de or tor.mirror.youam.de.

share|improve this answer
2  
I did that but it did notwork , thanks – ali Oct 13 '10 at 18:39
I found out what the problem was , [Mr.jerad benge's help][1] was correct , I live in Iran and torproject site is blocked or filtered from Iran and that is why I could not download tor . I finally got it to work. [1]:askubuntu.com/a/6543/61218 – ali Nov 1 '10 at 18:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.