DECENTR Mainnet node setup

This guide has been updated for use with the current version, 1.5.7

Woohoo, DECENTR Mainnet has arrived!!!

This guide is a compressed version of the original medium post by DEC, you can find that here, and mostly a copy of the DECENTR Testnet node setup guide.

Get yourself an Ubuntu 20.04 VPS from your favorite VPS provider conforming to the minimum requirements. Start putty and connect with the information provided by your VPS provider.

Remember, pasting in putty is done with Right-Click of the mouse, copying you do by selecting the text with your mouse (nothing else, just selecting).

Ok, here we go:

  1. Add the node user and update the system:
adduser decnode
adduser decnode sudo
su - decnode
sudo apt-get update
sudo apt-get upgrade
  1. Install Go:
sudo apt install software-properties-common nano git make ufw snapd
sudo snap install go --classic
export PATH=$PATH:$HOME/go/bin
echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.bashrc
  1. Install Decentr testnet node:
git clone -b v1.5.7
cd decentr/
make install
  1. Initialize & configure your node:

Now we need to initialize the node, replace <NODE_NAME> below with a name of your choosing, just make sure it doesn’t have any spaces:

decentrd init <NODE_NAME>
  1. Change config.toml:
sudo nano ~/.decentrd/config/config.toml

find the seeds line down near the end of the document and replace it with this:

seeds = ",,,,,,,,,"

Save and exit from nano (Ctrl-X and then Y). We’re almost done.

  1. Download the genesis.json:
wget -O $HOME/.decentrd/config/genesis.json

And start your node:

decentrd start

If everything went ok you should mostly see stuff like this:

It will take a little bit for the node to catch up, but that’s no problem. You can cancel the node with Ctrl-C and restart it with decentrd start again.

  1. To make things a bit easier you can also set the node up as a service:

First we’ll create the service file:

sudo nano /lib/systemd/system/dec_node.service

Paste this and save and exit again (Ctrl-X, Enter and Y):

Description=Decentr Daemon

ExecStart=/home/decnode/go/bin/decentrd start


Now all we need to do is enable and start it:

sudo systemctl enable dec_node
sudo systemctl start dec_node

To check if the service has started correctly use:

sudo journalctl -u dec_node.service -f

And that’s it. You’re running a Decentr mainnet node. Make sure to check in the telegram channel regularly for any updates: DecentrBetaTesters & Node Runners

Leave a comment