Would you like to learn how to do a Bitcoin node installation? In this tutorial, we are going to show you how to install a Bitcoin node using a computer running Ubuntu Linux.

Hardware List:

The following section presents the list of equipment used to create this Bitcoin tutorial.

Every piece of hardware listed above can be found at Amazon website.

Bitcoin Related Tutorial:

On this page, we offer quick access to a list of tutorials related to Bitcoin.

Tutorial - Bitcoin Node Installation

On the Ubuntu Linux console, use the following commands to install the BerkleyDB package:

# add-apt-repository ppa:bitcoin/bitcoin
# apt-get update
# apt-get install libdb4.8-dev libdb4.8++-dev

You must use BerkleyDB version 4.8 for everything to work.

Use the following commands to install the required libraries and the required packages:

# apt-get install libboost-all-dev libzmq3-dev libminiupnpc-dev
# apt-get install curl git build-essential libtool autotools-dev
# apt-get install automake pkg-config bsdmainutils python3
# apt-get install software-properties-common libssl-dev libevent-dev

Create a directory to the node software and download the Bitcoin package.

# mkdir /downloads
# cd /downloads
# git clone https://github.com/bitcoin/bitcoin.git

Compile and install the Bitcoin node software.

# cd bitcoin
# ./autogen.sh
# ./configure
# make
# cd src
# install -sv bitcoind bitcoin-cli /usr/local/bin/

Create a Bitcoin configuration file and choose a username and a password.

# mkdir ~/.bitcoin
# vi $HOME/.bitcoin/bitcoin.conf

rpcuser=virtualcoin2018
rpcpassword=kamisama123

In our example, we choose the username virtualcoin2018 and the password kamisama123.

Start the Bitcoin node daemon using the following command:

# bitcoind -daemon

Wait for the synchronization of the blockchain to end.

The blockchain synchronization might take days or weeks.

Use the following command to verify the status of the blockchain synchronization:

# tail -f ~/.bitcoin/debug.log

Use the following command to stop the Bitcoin node service:

# bitcoin-cli stop

Here is a list of useful commands:

# bitcoin-cli -getinfo
# bitcoin-cli getblockchaininfo
# bitcoin-cli getnetworkinfo
# bitcoin-cli getwalletinfo
# bitcoin-cli getpeerinfo