Jump to content
Nytro

Installing TOR On Ubuntu Linux

Recommended Posts

Posted

[h=1]Installing TOR On Ubuntu Linux[/h] Posted on March 20, 2013 by infodox

Seeing as Ubuntu is one of the most commonly used Linux distros around, and because I cannot be bothered getting a Fedora .iso, and because these instructions work fine for Debian also, here goes! (yes, in the images I am using BT5, which is basically Ubuntu)

To get your distribution name, the command “lsb_release -c” will tell you. This is important.

First off, add the appropriate repository to your /etc/apt/sources.list file.

Essentially this command:

sudo echo “deb http://deb.torproject.org/torproject.org <DISTRIBUTION> main” >> /etc/apt/sources.list

b55Xk.png

Adding TOR repo

Next, we import the tor project GPG keys. I advise being root when doing this.

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

87X4c.pngAdding GPG keys

sudo apt-get update to refresh your package lists…

5cmnD.png

Update Package List

Now we install the torproject keyring.

apt-get install deb.torproject.org-keyring

X5bpG.png

Installing Keyring

Install TOR itself and the Vidalia GUI… It will prompt to add a user to the group so select your username!!!

apt-get install vidalia tor polipo

Y7KkM.pngInstalling TOR

Now, we check is Vidalia working OK or are we already fscked. By running it.

YJSbb.png

Vidalia Works

If it looks like that, you are good to go smile.png Again, as per TOR Setup – Windows | Insecurety Research , just set proxy settings in your browser to use 127.0.0.1 and 9050 as the port and you should be good to go!

Next up: Installing TORbutton icon_smile.gif

The observant ones will note the dates on the screenshots are old: I had originally made this guide for some friends who wanted it, and then I decided to publish it openly because, reasons.

Sursa: Installing TOR On Ubuntu Linux | Insecurety Research

Posted (edited)

Thanks, something simpler for Ubuntu users:

(install tor)

sudo apt-get install tor

(initialize tor)

tor &

(start tor service at startup)

sudo update-rc.d tor enable

For browser use, change proxy: 127.0.0.1, SOCKS , port: 9050

For SSH:

Run:

sudo apt-get install -y connect-proxy

Make a folder in "/home/utilizator" named ".ssh". (obviously "utilizator" gets replaced by the name of the user, and if you use the user "root" the folder will have to be created in "/root/".)

Access the folder (ex. "cd /home/baubau/.ssh" , or "cd /root/.ssh"

Create a file named "config" with your favorite text editor (ex. nano, gedit, vi) and you put inside, by case:

1. All SSH connections to use TOR:

Host *
CheckHostIP no
Compression yes
Protocol 2
ProxyCommand connect -4 -S localhost:9050 $(tor-resolve %h localhost:9050) %p

2. A specific SSH connection to use TOR:

Host ip
User userul_meu
CheckHostIP no
Compression yes
Protocol 2
ProxyCommand connect -4 -S localhost:9050 $(tor-resolve %h localhost:9050) %p

("ip" gets modified with the host ip, and "userul_meu" with your user >> given, or obtained (ex. root, admin etc.)

Hope it helps.

Edited by yo20063

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...