Set up node on a VPS

Jonathan edited this page Jan 20, 2018 · 4 revisions

Requirements:

  • Basic understanding of the linux ecosystem
  • Connect to the VPS via ssh

VPS requirements:

  • minimum 2 Core's
  • at least 4 GB RAM
  • at least 50 GB disk space
  • a lot of bandwidth (don't start unless you have at least 2 TB bandwidth)

What VPS do I recommend:

I recommend using the 60GB SSD VPS from vultr. If you use the following ref URL, I can assure you, I'll use the profits towards supporting the dogecoin community https://www.vultr.com/?ref=7274718

How to set up a Dogecoin Core Full Node

  1. Make sure your system is up to date:
apt update && apt upgrade
  1. Get the binary files:
wget https://github.com/dogecoin/dogecoin/releases/download/v1.10.0/dogecoin-1.10.0-linux64.tar.gz
  1. Unpack the tar.gz:
tar -zxvf dogecoin-1.10.0-linux64.tar.gz
  1. Create .dogecoin:
mkdir ~/.dogecoin
  1. Set a rpcuser and rpcpassword in ~/.dogecoin/dogecoin.conf:
echo "rpcuser=jdgjg
rpcpassword=dgskgdsk" >> ~/.dogecoin/dogecoin.conf
  1. Download the torrent file:
wget http://jrn.me.uk/dogecoin_torrents/bootstrap_2018-01-09.dat.torrent
  1. Install aria2:
apt install aria2
  1. Download/Torrent the bootstrap:
aria2c --dir=/root/.dogecoin/ --seed-time=10 bootstrap_2018-01-09.dat.torrent
  1. Start up dogecoind:
~/dogecoin-1.10.0/bin/dogecoind &
  1. You can check the status of your core wallet using:
~/dogecoin-1.10.0/bin/dogecoin-cli getinfo
  1. If the connections in getinfo is greater then 8, you are successfully running a full core node!

Alternative

I've set up a script which allows you to do everything mentioned above in a lot less commands:

wget https://raw.githubusercontent.com/greenbigfrog/full-node-scripts/master/dogecoin.sh
chmod +x dogecoin.sh
./dogecoin.sh
echo 'done'

Be aware though, that running this script is a "security risk", and you should rather be executing the commands one by one!

Tips (most tips are integrated into the install script)

  • To prevent dogecoind from stopping as soon as you close the ssh connection: apt install tmux TL;DR
  • To make your VPS more secure, set up a firewall: apt install ufw (eg. ufw allow 22, ufw allow 22556, ufw enable
  • If you have space issues you can get rid of the old bootstrap file. Shutdown the wallet first though: ~/dogecoin-1.10.0/bin/dogecoin-cli stop && rm ~/.dogecoin/bootstrap.dat.old
  • Enable a swap file if your VPS has < 4GB Ram:
fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
cp /etc/fstab /etc/fstab.bak
echo '/swapfile none swap sw 0 0' >> /etc/fstab

Setting up multiple nodes

I recommend setting up one VPS, and then creating a bootstrap, from which you then can create even more VPSs which don't have to sync with the blockchain anymore.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.