Skip to content

Instantly share code, notes, and snippets.

@toschdev
Forked from rjmacarthy/bitcoind-ubuntu-install
Last active June 16, 2019 19:20
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 toschdev/0a317c18ff7c1729b3dd7106faa1ccb4 to your computer and use it in GitHub Desktop.
Save toschdev/0a317c18ff7c1729b3dd7106faa1ccb4 to your computer and use it in GitHub Desktop.
Install Bitcoind Ubuntu
** Add repository and install bitcoind **
sudo apt-get install build-essential
sudo apt-get install libtool autotools-dev autoconf
sudo apt-get install libssl-dev
sudo apt-get install libboost-all-dev
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind
mkdir ~/.bitcoin/ && cd ~/.bitcoin/
nano bitcoin.conf
** Add config to bitcoin.conf file **
rpcuser=username
rpcpassword=password
testnet=1
rpcport=8332
rpcallowip=127.0.0.1
rpcallowip=195.154.11.93
server=1
** Start bitcoind **
bitcoind &
** If bitcoind is already started **
ps -e | grep bitcoin // returns pid
kill -9 <pid>
bitcoind &
** Test bitcoind is running and working **
bitcoin-cli getblockcount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment