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?
Setting up Vidalia
- Download the Tor Browser bundle
- Extract, go to the App folder, and double click Vidalia (and select "Run"). Let Vidalia load.
- If Vidalia doesn't work, run the "start-tor-browser" file at the top level of the extracted directory.
- 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.
- If Firefox was opened, close it. You don't need it for this.
Setting Tor up for your Bitcoin client
- Ensure Vidalia is running
- Download Bitcoin-QT, and extract
- On your Debian command line, run
sudo apt-get install libqtgui4
- Go to the
binfolder 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"
- 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.
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)
electrum on the command line
At this screen, you can choose either option depending of whether or not you've already used Electrum before:
Now, use these settings for the next screen:
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)
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:
Setting Tor up with bitcoind
bitcoind -proxy=127.0.0.1:9150 (or whatever the port is)