Skip to content

Instantly share code, notes, and snippets.

@makevoid
Last active November 10, 2023 10:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save makevoid/6fc843b7846baf38f0c0 to your computer and use it in GitHub Desktop.
Save makevoid/6fc843b7846baf38f0c0 to your computer and use it in GitHub Desktop.
Install bitcoin - bitcoind - v 0.19.0.1 - from binary - bitcoin.org - quick install
set -xe
mkdir ~/tmp
cd ~/tmp
wget https://bitcoin.org/bin/bitcoin-core-0.19.0.1/bitcoin-0.19.0.1-x86_64-linux-gnu.tar.gz --no-check-certificate
# check the shasum
tar xvf bitcoin-0.19.0.1-x86_64-linux-gnu.tar.gz
mv bitcoin-0.19.0.1 ~/bitcoin
~/bitcoin/bin/bitcoind
# let it run for 5 seconds
# kill it (ctrl C)
# edit the main conf
vim ~/.bitcoin/bitcoin.conf
# add options for RPC connections and txindex (for block explorer API usage), add optional pruning
#
# txindex=1
# # rpcuser=bitcoinrpc
# # rpcpassword=CHANGE-ME-538bb162ac1c696246167fd30bf9dd
# rpcauth=bitcoinrpc:..... # generate this via https://raw.githubusercontent.com/bitcoin/bitcoin/master/share/rpcauth/rpcauth.py
#
# # optimizations
# dbcache=1000
# maxmempool=4000
#
# # enable RPC access
# server=1
# rpcbind=1.2.3.4 # machine public ip (for a public node) or local network range
# rpcallowip=2.3.4.5 # your App's IP or local network range
~/bitcoin/bin/bitcoind
# enjoy!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment