Skip to content

Instantly share code, notes, and snippets.

@kaosf
Created July 7, 2023 05:30
Show Gist options
  • Save kaosf/ac7f9ab82a0267839aa6c6bb73aedd17 to your computer and use it in GitHub Desktop.
Save kaosf/ac7f9ab82a0267839aa6c6bb73aedd17 to your computer and use it in GitHub Desktop.
How to run `bitcoind` with systemd and Tor

On Arch Linux.

sudo pacman -S bitcoin-daemon tor

sudo systemctl enable tor.service
sudo systemctl start tor.service

Create /etc/systemd/system/bitcoin.service.

You should change the username u to match yours.

[Unit]
Description=bitcoin
After=tor.target

[Service]
PIDFile=/home/u/.bitcoin/bitcoind.pid
ExecStart=/usr/bin/bitcoind -onion=127.0.0.1:9050
User=u

[Install]
WantedBy=multi-user.target
sudo systemctl enable bitcoin.service
sudo systemctl start bitcoin.service

Watch the logs.

tail -f ~/.bitcoin/debug.log

A simpler way without systemd or Tor.

sudo pacman -S bitcoin-daemon

bitcoind

That's all.

@kaosf
Copy link
Author

kaosf commented Jul 7, 2023

Trackback note1tdsukklt8uc2hhg2p6uzdd67f6n7m0jnp7hnyprfgcaz3hrz77eqr9makt
https://iris.to/note1tdsukklt8uc2hhg2p6uzdd67f6n7m0jnp7hnyprfgcaz3hrz77eqr9makt

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