Skip to content

Instantly share code, notes, and snippets.

@SavageCore
Created July 23, 2018 11:27
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 SavageCore/7fb9ec9758e6f8a358361ab22d7983c7 to your computer and use it in GitHub Desktop.
Save SavageCore/7fb9ec9758e6f8a358361ab22d7983c7 to your computer and use it in GitHub Desktop.

Running a full bitcoin node on FreeNAS

Follow these steps to run a full Bitcoin node on your FreeNAS box!

Steps

Create a jail with static ip

Forward port 8333 to your jails static ip

SSH into jail and install bitcoin

pkg update

pkg upgrade

pkg install bitcoin

pkg install bitcoin-daemon

Fetch the start script and default config file

fetch -o /etc/rc.d/bitcoind https://raw.githubusercontent.com/bitcoin/bitcoin/master/contrib/init/bitcoind.openrc

fetch -o /usr/local/etc/bitcoin.conf https://raw.githubusercontent.com/bitcoin/bitcoin/master/contrib/debian/examples/bitcoin.conf

Update rpcpassword in /usr/local/etc/bitcoin.conf and set txindex=1. You can generate a suitable password with openssl rand -base64 32

Enable bitcoin to run on startup and start it

sysrc bitcoind_enable=YES

service bitcoind start

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