Last active
February 4, 2024 02:19
-
-
Save rjmacarthy/b56497a81a6497bfabb1 to your computer and use it in GitHub Desktop.
Install Bitcoind Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** 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 | |
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).
Got mine from https://bitcoin.org/en/download
sudo add-apt-repository ppa:luke-jr/bitcoincore
Thank you
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
you might fix "bitcoin-cli -getinfo" instead "bitcoin-cli getinfo"
you might fix "bitcoin-cli -getinfo" instead "bitcoin-cli getinfo"
Thanks I updated it, tested on Ubuntu 22.04.2 LTS still working.
thank you, found it quite helpful
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!