Skip to content

Instantly share code, notes, and snippets.

@rjmacarthy
Last active February 4, 2024 02:19
Show Gist options
  • Star 55 You must be signed in to star a gist
  • Fork 30 You must be signed in to fork a gist
  • Save rjmacarthy/b56497a81a6497bfabb1 to your computer and use it in GitHub Desktop.
Save rjmacarthy/b56497a81a6497bfabb1 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:luke-jr/bitcoincore
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
rpcallowip=127.0.0.1
server=1
[test]
rpcport=8332
** Start bitcoind **
bitcoind --daemon
** If bitcoind is already started **
ps -e | grep bitcoin // returns pid
kill -9 <pid>
bitcoind --daemon
** Test bitcoind is running and working **
bitcoin-cli -getinfo
@Belial-public
Copy link

ppa:bitcoin/bitcoin is dead

sudo add-apt-repository ppa:luke-jr/bitcoincore

@arjunparakh
Copy link

I keep getting unable to find package on Ubuntu any version. CentOS any version, Debian any version. I have tried everything can't seem to find an answer to why am I getting this error. Can anyone help?

@arjunparakh
Copy link

Bitcoind doesn't work anymore, tried so many things on so many os, and I keep getting unable to find package. What is the solution to this. Is digitaocean who is blocking it? or is the sudo apt-get install bitcoind command primitive and help would be highly appreciated!

@Zwilla
Copy link

Zwilla commented Jan 4, 2021

only use this:
https://bitcoincore.org/en/download/

NOT MAINTAINED. The OS-library linking packages here had a series of issues.

PLEASE DOWNLOAD DIRECTLY FROM bitcoincore.org (and verify the signatures of said files).

@GlenCooper
Copy link

@lhzehl
Copy link

lhzehl commented Apr 16, 2021

sudo add-apt-repository ppa:luke-jr/bitcoincore

Thank you

@jreiners
Copy link

jreiners commented Apr 30, 2022

while true; do echo `bitcoin-cli getblockcount 2>&1`/`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null`/`tail -n1 /mnt/blockchain/debug.log | cut -f9 -d " " -`; sleep 20; done

will give date run, current block / block count / and approximate date from the log, just change log location

@crypto-axis
Copy link

you might fix "bitcoin-cli -getinfo" instead "bitcoin-cli getinfo"

@rjmacarthy
Copy link
Author

you might fix "bitcoin-cli -getinfo" instead "bitcoin-cli getinfo"

Thanks I updated it, tested on Ubuntu 22.04.2 LTS still working.

@opeolluwa
Copy link

thank you, found it quite helpful

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