-
Notifications
You must be signed in to change notification settings - Fork 792
Guide: Quickstart to running a node (Ubuntu 16.04)
Brad Kilshaw edited this page Feb 19, 2018
·
27 revisions
apt-get update
apt-get install libboost-all-dev
cd ~
wget https://github.com/nanocurrency/raiblocks/releases/download/10.0.1/rai-10.0.1-Linux-x86_64.tar.bz2
tar xvf rai-10.0.1-Linux-x86_64.tar.bz2
./rai-10.0.1-Linux/bin/rai_node --daemon
Press ctrl+c to kill process
vim RaiBlocks/config.json
Change: "rpc_enable": "true"
Save and quit
sudo touch /etc/systemd/system/rai_node.service
sudo chmod 664 /etc/systemd/system/rai_node.service
sudo nano /etc/systemd/system/rai_node.service
cd ~/rai-10.0.1-Linux/bin/
pwd -P # Example: /home/stanley/rai-10.0.1-Linux/bin <= write down this path
ls -l #Example: -rwxr-xr-x 1 **stanley stanley** 8.9M Feb 16 02:25 rai_node <= write down the user and group to the left of rai_node, this should be the same as your username
[Unit]
Description=RaiBlocks node service
After=network.target
[Service]
ExecStart=/home/stanley/rai-10.0.1-Linux/bin/rai_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
sudo service rai_node start
sudo systemctl enable rai_node
ln -s ~/rai-10.0.1-Linux/bin/rai_node /usr/local/sbin/rai_node
You should now have a brand new node up and running, and the blocks syncing.
rai_node --debug_block_count #This will show you how far along the node is to syncing the blocks