Skip to content

Instantly share code, notes, and snippets.

@alexbosworth
Last active March 6, 2019 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbosworth/e260c5f2cbd00fea4b4bcc2d80e2fd4a to your computer and use it in GitHub Desktop.
Save alexbosworth/e260c5f2cbd00fea4b4bcc2d80e2fd4a to your computer and use it in GitHub Desktop.

Tor Install

Install and Setup Tor for use with Bitcoin Core

Install Tor

sudo apt-get update && sudo apt install -y apt-transport-https

sudo emacs /etc/apt/sources.list.d/tor.list

deb https://deb.torproject.org/torproject.org bionic main
deb-src https://deb.torproject.org/torproject.org bionic main

sudo curl https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | sudo gpg --import
sudo gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

sudo apt update && sudo apt install -y tor deb.torproject.org-keyring

sudo usermod -a -G debian-tor ubuntu

Configure Tor

sudo emacs /etc/tor/torrc 

ControlPort 9051
CookieAuthentication 1
CookieAuthFileGroupReadable 1
Log notice stdout
SOCKSPort 9050

sudo service tor restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment