Running a Bitcoin client with tor with a Debian based Linux OS

4

I've received a question asking how to setup a Bitcoin client using Tor on a Debian based Linux system. Could someone provide a rough overview and perhaps a link to a tutorial?

Charles Hoskinson

Posted 2013-04-30T07:45:51.573

Reputation: 969

This might be valuable as a wiki imhoCharles Hoskinson 2013-04-30T08:29:52.897

Not really, the steps are very simple.Manishearth 2013-04-30T08:30:49.603

It's a surprisingly common questionCharles Hoskinson 2013-04-30T08:42:59.453

Doesn't mean that you need to wikify it :) Wiki is for when collaboration is needed. Not so much here.Manishearth 2013-04-30T10:55:34.827

Answers

6

Setting up Vidalia

  1. Download the Tor Browser bundle
  2. Extract, go to the App folder, and double click Vidalia (and select "Run"). Let Vidalia load.
  3. If Vidalia doesn't work, run the "start-tor-browser" file at the top level of the extracted directory.
  4. Ensure that the port is 9150 (it usually is). If you're not sure, go to Edit>Preferences>Network>Settings and check that the opened Firefox window is connected to a SOCKS v5 proxy on port 9150. If not, make note of the port and use it in place of 9150 in the rest of this post.
  5. If Firefox was opened, close it. You don't need it for this.

Setting Tor up for your Bitcoin client

Bitcoin-QT

  1. Ensure Vidalia is running
  2. Download Bitcoin-QT, and extract
  3. On your Debian command line, run sudo apt-get install libqtgui4
  4. Go to the bin folder in the extracted Bitcoin, choose the 32 or 64 forlder depending on your system (32-bit/64-bit), double click the bitcoin-qt, select "Run"
  5. Go to "Settings" in the menu bar, "Network" tab. Check the SOCKS proxy tickmark, set IP as 127.0.0.1, port as 9150, with version 5.

enter image description here

Setting it up with Electrum

Run the following lines in your command prompt:

sudo apt-get install python-qt4 python-pip
sudo pip install http://download.electrum.org/download/Electrum-1.7.3.tar.gz

If you have trouble using pip, download Electrum from here and run pip install /path/to/Electrum-1.7.3.tar.gz (Usually will be pip install ~/Downloads/Electrum-1.7.3.tar.gz)

Run electrum on the command line

At this screen, you can choose either option depending of whether or not you've already used Electrum before:

enter image description here

Now, use these settings for the next screen:

enter image description here You may use a different default server if you wish. Try to get one that is situated close to your physical location.

If you selected "restore", fetch your seed (should look something like the one entered below) and enter it in the text field. If you had a lot of addresses in your old wallet, increase the gap limit. (that is the number of unused addresses Electrum generates before giving up on this)

enter image description here

Follow the remaining instructions: Safely store the wallet seed, and set a password if you wish. If the connection is working, you should see a green light at the bottom:

enter image description here

Setting Tor up with bitcoind

Simply run bitcoind -proxy=127.0.0.1:9150 (or whatever the port is)

Manishearth

Posted 2013-04-30T07:45:51.573

Reputation: 639

Are you sure of port 9150? I read 9050 instead in some sources...Steven Roose 2013-04-30T08:34:36.010

I've read both ports in respect to setting up a VPN with Tor. Should there be a difference?Charles Hoskinson 2013-04-30T08:35:58.533

@StevenRoose: Depends. Tor browser bundle uses 9150.Manishearth 2013-04-30T08:40:50.880

@CharlesHoskinson: Depends on how you have installed Tor. The method I've given usually sets it up on 9150. If not, I've mentioned a way to check.Manishearth 2013-04-30T08:41:21.647

@CharlesHoskinson: You're welcome :)Manishearth 2013-04-30T09:33:54.827

Could you include instructions for bitcoind?GDorn 2014-01-28T03:40:53.017

@GDorn done. Not sure of that bit though, never used it.Manishearth 2014-01-28T04:13:57.067

How does this work with Armory as well? Does Armory call the standard bitcoin-qt to run in the background and will still use on TOR network as you have described above? Let me know. Thanks! – None – 2014-05-19T01:34:14.590