Setting up a Zcoin Masternode/Znode

Vultr

CentOS

Anyways are you cheaper than a college student pirating textbooks? Fear not! The $5 node aka “The vultr shitty” is something for you.

$ ssh root@ip-addr-here

update machine

# su -c 'yum update' -y
# su -c '/sbin/chkconfig --level 345 yum on; /sbin/service yum start'

Zcoin binaries

# wget https://github.com/zcoinofficial/zcoin/releases/download/0.13.6.6/zcoin-0.13.6.6-linux64.tar.gz
# tar -xvzf zcoin-0.13.6.6-linux64.tar.gz
# cd zcoin-0.13.6/bin/
# sudo cp -f zcoind /usr/bin/zcoind
# sudo cp -f zcoin-cli /usr/bin/zcoin-cli
# sudo fallocate -l 4G /swapfile
# sudo chmod 600 /swapfile
# sudo mkswap /swapfile# sudo swapon /swapfile
# echo “/swapfile swap swap sw 0 0” >> /etc/fstab

Swapiness

# sudo sysctl vm.swappiness=10
# echo “vm.swappiness = 10” >> /etc/sysctl.conf
 # getenforce

Computer/Laptop side

{
"7SomeRandomLongAssStringHere" : "0"
}

Znode/Masternode zcoin.conf configuration

echo "Enter your znode genkey (starts with 8): "
read genkey
sudo mv .zcoin/zcoin.conf .zcoin/zcoin.bak
touch .zcoin/zcoin.conf
IP=$(curl http://checkip.amazonaws.com/)
PW=$(date +%s | sha256sum | base64 | head -c 32 ;)
echo "==========================================================="
pwd
echo "daemon=1" > .zcoin/zcoin.conf
echo "rpcuser=zcoinrpc">> .zcoin/zcoin.conf
echo "rpcpassword="$PW >> .zcoin/zcoin.conf
echo "rpcallowip=127.0.0.1" >> .zcoin/zcoin.conf
echo "listen=1" >> .zcoin/zcoin.conf
echo "server=1" >>.zcoin/zcoin.conf
echo "externalip=$IP:8168" >>.zcoin/zcoin.conf
echo "logtimestamps=1" >> .zcoin/zcoin.conf
echo "maxconnections=64" >> .zcoin/zcoin.conf
echo "txindex=1" >> .zcoin/zcoin.conf
echo "znode=1" >>.zcoin/zcoin.conf
echo "znodeprivkey="$genkey >>.zcoin/zcoin.conf
#Start Zcoind to begin sync
zcoind
Start all
Znode is running

Extra — — —

Fail2ban

--

--

--

derivatives trader

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to light it up

4 Lessons Learned from 10+ Years as a Developer

Introduction of JAVA

How to virus scan a ZIP archive in Python

CS373 Spring 2022: Dinesh Krishnan Balakrishnan

CodeWorld as a Haskell Playground: Call for Package Requests

Using Animations in Timeline

You think open source software is bad cause consultants say so.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Romano RNR

Romano RNR

derivatives trader

More from Medium

How I Lost $140,000 on Amazon Stocks

Weekly Research Report #106: Bitcoin Miner Selling Off

A Swarms Beekeeper Discovers a Journal about the Rogue A.I. that Speaks to Us Through our Dreams

The Tao of D.A.O. Part IV