Thursday, July 12, 2012

To use onion routing in Ubuntu 12.04 you can use either of the following methods:

Method 1

The first option is to download tor browser bundle and extract it. Tor can be launched by running start-tor-browser script in extracted directory. If permission is denied then run "chmod -R +x * in a terminal to add executable bit to the files. During first run, Stop tor, Set the proxy in vidalia settings and Start tor again. Once the connection is established tor browser will come automatically. This is a tweaked version of firefox. By default, add-ons and other extensions are disabled. The proxy settings and port of privoxy can be found from Edit-> Preferences->Advanced->Network->Settings. You can copy the proxy and port to any application's proxy settings to make it work behind tor.

Method 2

1.
Vidalia can be installed from the command line or synaptic or USC. I
prefer to use the terminal for installation. If privoxy is already installed in
the system then it needs to be removed as it will interfere with
working of polipo.

2. The config file of torr needs to edited (replaced) with the following text. Run the command in terminalgedit ~/.vidalia/torrcand paste the following :

3. Now edit the /etc/tor/torrc file and remove the "#" from the line " ControlPort 9051" so that vidalia could control tor (sudo nano /etc/tor/torrc )

4. Use sudo visudo and add the following lines at the end of file

Save by Ctrl+O followed by enter key and exit by Ctrl+X

5. Using editor command sudo gedit /etc/polipo/configreplace the contents of /etc/polipo/config with

6.
When using vidalia, it attempts to start tor and polipo, but as default
this is already running! But it not connected to the tor network. As a
result vidalia returns an error message.To solve this problem we have to
remove the service from startup. For that sudo apt-get install sysv-rc-conf. After installation run sudo sysv-rc-conf. It will display a table , scroll down by the use of arrow key to the line with tor and disable all ticks by the use of space key. Do the same for polipo. sysv-rc-conf can be quit by using the key q.

7. Run vidalia and edit the settings. Set the proxy which you use.

proxy: 10.3.100.211

Type: HTTP and HTTPS

8.
Open startup applications from the settings button on left extreme of top panel and add two new entries. One for vidalia and
one for polipo. Tor will be started by vidalia. So donot setup startup
for tor. The polipo startup is set with a delay. If polipo starts before
vidalia and tor it will control the port and tor will fail. So polipo
must start after vidalia and tor. This is ensured by the delay (sleep
100). Startup application commands are:

vidalia

sleep 100 && polipo &

9.
Go to System Settings in top panel and open Network and select Network
Proxy. Set the following values in manual mode. This will globally make
the system configured to use tor proxy values.