How to install tor on ubuntu natty 11.04
ubuntu
UPDATE: this post explains how to install tor on a server if you are using a desktop I suggest yout to follow the how to install tor on ubuntu desktop tutorial instead.
Installing tor, as any other service, on ubuntu is a matter of apt-get. Just type in a terminal:
sudo apt-get install tor
It will install tor and polipo so u are ready to go with tor. But to make everything work u still need to modify the configurations files a bit. For polipo just edit /etc/polipo/config and modify these two lines:
#socksParentProxy = “localhost:9050”
#socksProxyType = socks5
into
socksParentProxy = “localhost:9050”
socksProxyType = socks5
So it’s just uncommenting the two lines. Tor should be already working without any trouble, but it may be slow and u are not contributing to the Tor network. I highly suggest u to configure tor such that u can share your bandwidth with the network.
For changing this u have to modify /etc/tor/torrc and change these two lines:
#ORPort 9001
#DirPort 9030
into
ORPort 9001
DirPort 9030
It’s like in polipo u have to just uncomment them. That’s it! just configure your browser to use localhost:8123 as a proxy and visit torcheck. Congratz! u are using Tor now 🙂
33 Comments
Does this definitely work as a way to get tor on 11.04? I am not questioning your capabilities as i still class myself as a linux nooby. Just when i was looking on the tor website there seems to be no support/install option for 11.04 . Only goes up to 10.10 . As much as i would love tor installed will this method definitely provide 11.04 users full anonymity?
Yeah, this really works as u can see from the torcheck link. This guide is nothing new, it’s just the same thing of 10.10 applied to 10.04 using the new updated package provided directly by the ubuntu repository.
If torcheck says that u are using tor, it’s definitively so. Tor gives u anonymity but there are some issue in the Tor service: the one who owns the exit node can see your packets and can sniff/spoof them. And, nowadays all the very common websites are logged-in aware, they use cookies heavily, and of course cookies in a clear connection in tor can be easily stolen by the owner of the exit node…
So don’t think that u just install tor and nobody can’t reach u. Be sure to use https in all your connections and do not use cookies. then u will have full anonymity…. but u will be not able to access almost all the web 2.0 (gmail, facebook, etc)
Why do you have to uncomment those 2 lines for polipo?
Cuz if u don’t your polipo will not connect to TOR and thus u will not use the TOR network 🙂
polipo -> tor -> tor network
im new to linux
i am unable to edit the /etc/polipo/config file
Which command are u trying to run? Do a sudo gedit /etc/polipo/config or sudo vim /etc/polipo/config
From the Tor Project website:
“Do not use the packages in Ubuntu’s universe. They are unmaintained and out of date. That means you’ll be missing stability and security fixes.”
Source: https://www.torproject.org/docs/debian.html.en#ubuntu
@Jonathan Lamothe: yeah it WAS right. This time the docs are outdated 🙂 As u can see here http://packages.ubuntu.com/search?keywords=tor&searchon=names&suite=all§ion=all not all the versions of ubuntu have the “tor” package due to security issues. Now the package has been updated and u can see that from natty it’s the latest stable tor. So i prefer to install and ubuntu package than a package from elsewhere.
It works nicely, Thanks.
/etc/tor/torrc shows as a read only file, cannot edit. Can anyone help? Thanks!
just put a “sudo” behind the command
Says, command not found. I’m a newbie to Linux. Appreciate the help.
and permission denied.
open a terminal and do:
sudo gedit /etc/tor/torrc
Let me know
hello, Iam also a newbie and have been having the same problem (not being able to edit torrc) I tried doing
sudo gedit/etc/tor/torrc
but it still just tells me “command not found”
just put a space between gedit and the file you want to edit.
In this case: sudo gedit /etc/tor/torrc
Yeah, this works all the way until your supposed to use the SOCKS proxy: localhost:8123, did not work for me in chrome. So I installed torbutton in Firefox to see what it actually did. It changed the SOCKS-host proxy to 127.0.0.1, port: 9050. I used that in chrome and it worked like a charm. Im anonomoys to the internet.
Sure! As soon as u use socks directly u don’t need any HTTP proxy 🙂
I went ahead and did all the above. only thing is that in order to configure my proxy settings for Chromium, I have to use command line. i tried:
“chromium-browser –proxy-server=localhost:8123”
and when i went to torcheck to see if I was using tor, it said that I wasn’t. Help please?
torcheck uses a list of known tor nodes to see if you are using tor. It takes some time to detect if a node is running a tor exit node.
In that case just go to whatismyipaddress.com and check that the ip is not yours, if it’s so u are using tor 🙂
torcheck will show that u are using tor in that case after 2-3 hours.
Thanks, that was the issue, it took a few hours to go into effect!!!
Thank you!!!!!!!
How can I reconfigure tor to change the ip at every 10 sec?
The procedure written above is outdated as the Tor Button is not available and these config details makes it messy and confusing for a ordinary folk like me.
Here is a link. Read this tutorial. This is for Unbuntu 11.10 users. You need not to configure anything for your own.
This tutorial explains how to install and configure tor-browser_en-US.tar.gz on Ubuntu 11.10
Believe me this will help you. Just check it once.
http://www.scribd.com/doc/85715850/How-to-Install-and-Configure-Tor-on-Ubuntu-11
If you have any problem reading this please notify me. Here is my mail – [email protected]
I was having a lot of trouble in installing it as Im a novice and not familiar with all those linux x commands and configurations.
http://www.scribd.com/doc/85715850/How-to-Install-and-Configure-Tor-on-Ubuntu-11
There is a command you can send to tor to change the ip, you have to script it such that the command is sent every 10 sec.
Curious Apprentice, you are wrong. The tutorial works. You guide installs a NEW BROWSER with TOR built in. It will work, but i don’t want to install a self-compiled browser. I wanted to use tor with my browser.
If you find problems in this simple guide you can try installing vidalia which will start tor vai a nice gui and you can surf with tor easily.
Hi m8, nice tut. I am having a VPS with ubuntu 11.10 server edition. I followed your guide and all works will, how ever, tor shuts down by itself. When i run “service tor start” tor starts succesuly, when i “service tor status” it say “tor is running” but after 2 min when i “service tor status” then it states that tor is not running.
IS there any log or something to see why tor shuts down by itself?
Any idea? I even posted on ubuntu forum but no one replayed..
Hi dude,
Ho to /var/log/tor/ and you will find all the needed logs! Cheers!
Hi,
Can someone provide a torrc configuration file to run tor as an exit node ?
as soon as i get some spare time i can do that.
Thanks vincenzoa