How to install bitcoind (Bitcoin Core) on Ubuntu?

0

I want to install a command line-only full node bitcoind on a mini PC with 4GB RAM and Ubuntu. What are the steps to do it and how can I check if it works?

(I will post an answer myself, also as a reminder on how to set it up. I will refine the answer.)

Ben

Posted 2019-11-25T10:15:31.003

Reputation: 245

Answers

0

  1. useradd bitcoin and passwd bitcoin`
  2. link /home/bitcoin/.bitcoin to external HDD with chown -R bitcoin:bitcoin
  3. git clone bitcoin core in /home/USER/GitStuff
  4. add bitcoin ppa repository
  5. sudo apt install libdb4.8-dev && sudo apt install libdb4.8++-dev
  6. /autogen.sh in /home/USER/GitStuff/bitcoin
  7. /configure --withoug gui
  8. make
  9. make install 10 su bitcoin
  10. start bitcoind (as user bitcoin)
  11. curl -sL https://bitnodes.earn.com/api/v1/nodes/me-8333 | jq

Ben

Posted 2019-11-25T10:15:31.003

Reputation: 245

0

There is a guide in the docs of the bitcoin source code that goes over how to build bitcoin as well as the dependencies needed. Within that same directory of the source (doc/) there are various other guides and explanations that you may find useful as well.

Linux build doc

presstab

Posted 2019-11-25T10:15:31.003

Reputation: 166

Thanks, I actually would have added this and others once I refine my answer. I just wanted to put it out there for a start yesterday.Ben 2019-11-26T06:52:04.823

0

Dependencies

To get add-apt-repository, which we will use later to add the bitcoin PPA:

sudo add-apt-repository ppa:bitcoin/bitcoin

sudo apt-get update

sudo apt-get install bitcoind

Configuration

Before starting bitcointd you'll want to create directory and the bitcoin.conf configuration file:

cd ~/ mkdir .bitcoin cd .bitcoin vim bitcoin.conf

In bitcoin.conf these content are important :

server=1 testnet=1 rpcuser=UNIQUE_RPC_USERNAME rpcpassword=UNIQUE_RPC_PASSWORD

If you wish to use this installation on the regular bitcoin network, remove testnet=1

John Melelr

Posted 2019-11-25T10:15:31.003

Reputation: 1