-
Notifications
You must be signed in to change notification settings - Fork 9
Masternode Linux Guide
Choose a Ubuntu 16.04 VPS from a provider like Digital Ocean or Vultr VPS Server with root access runing Ubuntu 16.04 x64 operation with the following minimum specs:
- 1GHZ CPU Core
- 1GB of ram
- Vultr https://goo.gl/MGm3vD
- Digital Ocean https://goo.gl/Zho7Ts
Vultr Example:
You need 50,000 VTAR plus fee for each Masternode so make sure you have a 50,001+ VTAR (50K for MN +1 to cover minor 0.01 transaction fee) in your desktop cold wallet.
If you purchased a 1GB ram VPS size, please create a swap file, otherwise you can skip this Enter each of the commands into the terminal (in Putty press RIGHT CLICK to Paste):
fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
The aforementioned steps increased Swap memory to 4 GB Learn more here https://goo.gl/iYY7H9
- Click
Settings
->Options
->Display
- Check
Enable coin control features
PressOk
(you will need to restart the wallet)
Go to the Tools
-> Debug console
type:
masternode genkey
You should see a long key that looks like:
123fjsadfkJKLF4sBGLALQZE1Yc1K64xiqgX37t9428HJF
This is your private key; you will need to enter the same key on your VPS’s Vantaur.conf file later.
- Log into your VPS (we recommend using Putty)
If you want to set up your VPS for multiple Masternodes see bottom section of guide (ADVANCE USERS) Copy/paste these commands into the VPS and hit enter one row at a time:
a) sudo apt-get -y update
b) sudo apt-get -y upgrade
c) sudo apt-get install build-essential libssl-dev
d) sudo apt-get install software-properties-common python-software-properties
e) sudo apt-get install libboost-all-dev libqrencode-dev pkg-config
f) sudo apt-get install libminiupnpc-dev qt5-default
g) sudo apt-get install qttools5-dev-tools libgmp3-dev autoconf
h) sudo apt-get install automake libtool
i) sudo add-apt-repository ppa:bitcoin/bitcoin
j) sudo apt-get update
k) sudo apt-get install libdb4.8-dev libdb4.8++-dev
l) git clone https://github.com/vantaur/vantaur
m) cd vantaur
n) cd src
o) make -f makefile.unix
Step O)make -f makefile.unix
** will take a while 10-30mins**
If you get an error at the end most likely you either haven’t installed the above correctly or forget to set up the swap file
p) strip vantaurd
q) sudo cp vantaurd /usr/local/bin
r) mkdir /root/.Vantaur
s) nano ~/.Vantaur/Vantaur.conf
(CASE SENSITIVE make sure V is CAPS)
rpcuser=#PUTANYTHING
rpcpassword=#PUTYOU PSWDNOSPECIALCHARACTERS
rpcport=22812
server=1
listen=1
daemon=1
port=22813
masternode=1
masternodeaddr=XX.XXX.XX.XXX:22813 (YOUR VPS IPADDRESS:PORT)
masternodeprivkey= YOUR PRIVKEYthatyougeneratedabove
addnode=207.148.23.182:22813
addnode=77.81.234.75:22813
addnode=192.241.150.123:22813
addnode=173.249.16.205:22813
addnode=109.248.46.51:22813
addnode=115.68.47.154:22813
addnode=207.148.73.10:22813
addnode=23.95.225.157:22813
addnode=199.247.12.232:22813
addnode=107.191.46.142:22813
addnode=18.217.39.237:22813
addnode=144.202.100.22:22813
addnode=172.245.110.133:22813
addnode=74.208.42.84:22813
addnode=81.106.11.162:22813
addnode=18.220.100.254:22813
addnode=77.220.214.216:22813
addnode=172.245.79.185:22813
Press Ctrl-X
> Type **Y
& > Press [ENTER]
- to save your Vantaur.Conf file.
Start your vantaurd daemon by entering:
vantaurd
or
/usr/local/bin/vantaurd
your binary/executable to launch the daemon.
It should say something like daemon running or started
- Click on Receive and create a New address for your MN (name it whatever you want i.e VTAR-01 or MN01
Unlock your wallet if you have encrypted it and uncheck just for staking
Now send yourself EXACTLY 50,000 VTAR in one transaction to your newly created MN address (no more or less) otherwise the masternode will not function and you will receive a “Could not find suitable coins” error
After sending and waiting for 15 confirmations, go to
HELP
-> DEBUG WINDOW
-> CONSOLE
Type: masternode outputs
{
"wrfdPmW6XTWvTFENuZgH5MRHvdzhsrbNJs7Upq3hdKWjqF3rN" : "1"
}
(this is the Transaction ID or TXHASH for the 50K VTAR you sent, if you have multiple MN that are unlocked you will see multiple entries here so make sure you get the correct ID
Copy the above Transaction Id or Output and note the last digit which will either be 1 or 0
Go to the masternode
tab – MY MASTERNODES
and click on Create
- Alias- is the name you want to give i.e VTAR-MN01 or MN01 etc
- Address: You must put the port number separated by Colon after the ip address. For example: 144.202.85.171:22813
- Privkey that you generated from Cold Wallet Part 1 with masternode genkey
- TxHash: Enter the key from masternode outputs command above (no “” )
- Output Index: Enter either 1 or 0 Leave Reward Address and percent empty/blank (recommended) (unless you want to send MN rewards to another address)
Now click on Update
button and you should your entry like the below:
Click on Start Wait 2-5 minutes and click on Update
.
Your Masternode should be running.
On your VPS (Ubuntu server) you can type: vantaurd masternode debug If it says: “masternode started remotely” then it was successful.
Your first rewards can take between 2/3 days (from last Start) but as long as Masternode is running (Keep an eye) you should be good. If you restart it will be another 2/3 days for a reward
Ubuntu 16.04 servers can use the UFW firewall to make sure only connections to certain services are allowed. We can set up a basic firewall very easily.
Check if the firewall is installed and enabled:
sudo ufw status
Then disable the firewall for further setup:
sudo ufw disable
Let’s allow all needed ports:
sudo ufw default allow outgoing
sudo ufw default deny incoming
sudo ufw allow openssh
sudo ufw allow ssh/tcp
sudo ufw limit ssh/tcp
sudo ufw allow 22812/tcp #RPC port
sudo ufw allow 22813/tcp #For single MN on one VPS
sudo ufw allow 22814/tcp #For multiple MN – each new MN needs new port
sudo ufw allow 22815/tcp #For multiple MN – each new MN needs new port
sudo ufw allow 22816/tcp #For multiple MN – each new MN needs new port
sudo ufw allow 22817/tcp #For multiple MN – each new MN needs new port
sudo ufw allow 228XX/tcp #Keep incrementing for each MN as you need
sudo ufw enable
If you want to see the status of the firewall type the following command:
sudo ufw status
AS user: root you need to create a new user:
adduser vantaur
add it to sudo :
adduser vantaur sudo
- install / compile the vantaurd binary You do this step only once
Copy/paste these commands into the VPS and hit enter one row at a time:
a) sudo apt-get -y update
b) sudo apt-get -y upgrade
c) sudo apt-get install build-essential libssl-dev
d) sudo apt-get install software-properties-common python-software-properties
e) sudo apt-get install libboost-all-dev libqrencode-dev pkg-config
f) sudo apt-get install libminiupnpc-dev qt5-default
g) sudo apt-get install qttools5-dev-tools libgmp3-dev autoconf
h) sudo apt-get install automake libtool
i) sudo add-apt-repository ppa:bitcoin/bitcoin
j) sudo apt-get update
k) sudo apt-get install libdb4.8-dev libdb4.8++-dev
l) git clone https://github.com/vantaur/vantaur
m) cd vantaur
n) cd src
o) make -f makefile.unix (This will take a while 10-30mins)
If you get an error at the end most likely you either haven’t installed the above correctly or forget to set up the swap file
p) strip vantaurd
q) sudo cp vantaurd /usr/local/bin
- put vantaurd in /usr/bin for easy access:
sudo mv vantaurd /usr/bin
- Create New wallet MN Address (as per above steps) and send 50K to MN wait 15 Confirmations
- Create New Masternode Genkey (as per above) for each Masternode
Increment .vantaur01 below for each Masternode i.e. .vantaur01 / .vantaur02 / .vantaur03
Do all the below steps for one MN, then repeat for each Masternode thereafter
Step | Command to paste | Comment / example | Mn02 | MN03 |
---|---|---|---|---|
3 | mkdir /home/vantaur/.vantaur01 | create a directory in the vantaur user like this | ||
vantaur01 | .vantaur02 | .vantaur02 | ||
4 | /.vantaur01 -daemon | start the daemon this creates the files in .vantaurxx | ||
you may get a message unable to bind to 0.0.0.0. just ignore as we update Conf next step | ||||
vantaurd -datadir=/home/vantaur/.vantaur01 stop | #stop the daemon | |||
5 | nano ~/home/vantaur/.vantaur01/Vantaur.conf | vantaur01/ Vantaur.conf | .vantaur02/ Vantaur.conf | .vantaur03/ Vantaur.conf |
rpcuser= | MN01 | MN02 | MN03 | |
rpcport | 22812 | 22814 | 22816 | |
masternodeprivkey= | XXetc | XXetc | XXetc | |
port= | 22813 | 22815 | 22817 | |
masternodeaddress= | YOURIP:22813 | YOURIP:22815 | YOURIP:22817 | |
6 | vantaurd -datadir=/home/vantaur/.vantaur01 -daemon | restart the daemon again do this for each | /.vantaur01, /.vantaur02/ .vantaur03 etc | |
7 | vantaurd -datadir=/home/vantaur/.vantaur01 getinfo | Wait for sync ( check with and see the block info regarding your controller wallet...) |
Ensure you have added a firewall rule for each port you assign to a MN
Update the masternode.conf
file with a new entry for each masternode then open or restart the wallet go to Masternode
Tab- My Masternode - Pressing Update
so the newly entered MN appears in the masternode list
VPS
watch vantaurd -datadir=/home/vantaur/.vantaurXX masternode status
this should return status 2 –
Continue to watch for an update on the VPS which should now show status 9 -To cancel the watch Ctrl
+C
Repeat for each Masternode from STEP 3
Enjoy
Replace 01 with whatever master node you need
vantaurd -datadir=/home/vantaur/.vantaur01 -daemon Start Damon for 01
vantaurd -datadir=/home/vantaur/.vantaur02 –daemon Start Damon for 02 etc
vantaurd -datadir=/home/vantaur/.vantaur01 masternode status
vantaurd -datadir=/home/vantaur/.vantaur02 masternode status
vantaurd -datadir=/home/vantaur/.vantaur01 getinfo Get Info
watch vantaurd -datadir=/home/vantaur/.vantaur01 masternode status Watch the MN status
Ctrl C
to exit
On reboot for example you may have to start each daemon
These will give you a shorthand for your commands for each MN 1)edit Bash to add alias
nano ~/.bashrc
2)add Alias to end of bash-page to end of file and add your alias
alias vtar01_start="vantaurd -datadir=/home/vantaur/.vantaur01 -conf=/home/vantaur/.vantaur01/Vantaur.conf -daemon"
alias vtar02_start="vantaurd -datadir=/home/vantaur/.vantaur02 -conf=/home/vantaur/.vantaur02/Vantaur.conf -daemon"
3)After editing Save and Close nano (ctrl X -> Y
)
source .bashrc
you should be able to use the alias vtar01_start / vtar02_start etc
- Discord https://discord.gg/wq52E2s
- Twitter: https://twitter.com/vantaur?lang=en
- Telegram: https://t.me/VantaurNetwork
- Bitcointalk: https://bitcointalk.org/index.php?topic=2914598.0
- Instagram: https://www.instagram.com/vantaur_crypto/?hl=en
- Facebook: https://www.facebook.com/Vantaur-330663630788882/
If this guide helped you feel free to Tip here
To | VTAR Address |
---|---|
@batfinksuperstar | VSA6dqeUPjLiJxJNFspPxjAVPNB6FNx5re |
@VtarLeadershipteam | VGpaRzedajNxLGZFfkGhrKLRvmhjSpEMpx |
This guide was created by @batfinksuperstar #7237 (DiscordID), if you spot anything that is confusing or notice any errors let me know and we will update.