Tor is a network for anonymizing connection data while you use the internet. It became popular because it is used by journalists to protect their privacy in countries with political censorship. Tor can be used for surfing, instant messaging, ssh, E-Mail and other things. Before you use this technique, I recomanded you to inform about the the basic concepts, the pro and cons (Using Tor will definetely slow down the transfer rate of your internet connection). This Wikipedia article is probably a good help.
The article describes how to install Tor for Ubuntu 10.04 using the Ubuntu and Tor Repositories. To get it working the installation of Tor itself is not enough; Tor needs extra settings!
This commands will instal Tor, Proxychanges, and Polipo. This method installs Tor from the Tor-Repositories — so you have the most recent version. Proxychange and Polipo make it possible to use Tor with web browsers and other software in general. For those it is ok to install them from the Ubuntu repositories. It is necessary to update the configuration with the current version (see last lines).
sudo apt-get update sudo sed -i '$a\deb http://deb.torproject.org/torproject lucid main' /etc/apt/sources.list # adds the tor repositories sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 886DDD89 # installs the key sudo apt-get update sudo apt-get install -y tor tor-geoipdb polipo proxychains wget https://svn.torproject.org/svn/torbrowser/trunk/build-scripts/config/polipo.conf # loads a configuration file sudo cp polipo.conf /etc/polipo/config # overwrite the the polipo config with the tor config
2. Use Tor
It is very easy to run Tor using Firefox, because you may use a button with only one click to change the settings for using Tor or not : https://addons.mozilla.org/de/firefox/addon/2275. The button activates or deactivate a proxy server for using Tor.
2.2. Other browsers
You can edit the Proxy server settings in all other web browsers. This are the settings:
Http und SSL: 127.0.0.1 Port: 8118
Socks: 127.0.0.1 9050
Here are some examples to use Tor from the shell:
proxychain git clone git://git.videolan.org/x264.git proxychain ssh email@example.com proxychain ssh firstname.lastname@example.org
Just configure the browser (see above) and open the this website: https://check.torproject.org.