Guide: Quickstart to running a node (Ubuntu 16.04) - bitcoin-black-bcb/btcb GitHub Wiki
Notes
- This documentation is intended only for developers of the Btcb Node software, and will not result in a supported configuration. End-users are advised to use releases.
- Using docker has been recommended as a faster method of installation: https://github.com/btcbcurrency/btcb-node/wiki/Docker-node
Install boost library
apt-get update
apt-get install libboost-all-dev
(Optional) Build and Install boost v1.66 instead (Ubuntu repo has v1.58)
Install required dependencies:
sudo apt install g++ git cmake -y
wget https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.bz2
tar --bzip2 -xf boost_1_66_0.tar.bz2
cd boost_1_66_0
./bootstrap.sh
sudo ./b2 install
Download and extract btcb node
cd ~
wget https://github.com/btcbcurrency/btcb-node/releases/download/V11.2/btcb-11.2.0-Linux.tar.bz2
tar xvf btcb-11.2.0-Linux.tar.bz2
Initiate btcb_node to generate ~/Btcb
./btcb-node-11.2.0-Linux/bin/btcb_node --daemon
Press ctrl+c to kill process
Update config.json
btcb ~/Btcb/config.json
Change: "rpc_enable": "true" Save and quit
Find the path of the btcb_node binary, as well as the user it will be run by
cd ~/btcb-node-11.2.0-Linux/bin/
pwd -P
This should output something similar to: /home/stanley/btcb-node-11.2.0-Linux/bin Write down this path for our service file in a future step
ls -l
This should output something similar to: -rwxr-xr-x 1 stanley stanley 8.9M Feb 16 02:25 btcb_node Write down the user and group (in this example, both the user and group is stanley) to the left of btcb_node, this should be the same as your username
Create service file
sudo touch /etc/systemd/system/btcb_node.service
sudo chmod 664 /etc/systemd/system/btcb_node.service
sudo btcb /etc/systemd/system/btcb_node.service
Service file
[Unit]
Description=Btcb node service
After=network.target
[Service]
ExecStart=/home/stanley/btcb-node-11.2.0-Linux/bin/btcb_node --daemon #Update this with the link copied from the last step
Restart=on-failure
User=stanley #This user from the last step
Group=stanley #The group from the last step
[Install]
WantedBy=multi-user.target
Be sure to remove the comments (the parts starting at #) as they may cause problems.
Start the service
sudo service btcb_node start
Enable the node to run on boot
sudo systemctl enable btcb_node
Create a symlink to btcb_node to easily access later
ln -s ~/btcb-node-11.2.0-Linux/bin/btcb_node /usr/local/sbin/btcb_node
Voila!
You should now have a brand new node up and running, and the blocks syncing.
Check Status
btcb_node --debug_block_count
This will show you how far along the node is to syncing the blocks. You can compare this to the current block count at https://www.btcbde.co/blocks to see how far along the syncing process your are