Quick Install of Binaries on (Ubuntu 16 and 18)
(keep in mind if you have other coins installed with other scripts there may be conflicts that can't be fixed)
Have a private key ready by going to your (controlling) wallet, to the debug console and typing in
To Install 1 vivo masternode in one shot cut and paste the following line and press enter (as root)
wget -qO- https://raw.githubusercontent.com/coolblock/vpsVIVO/master/utils/vivo/1vivobin.sh | sudo bash
(if you are asked what kind of mail configuration you want, just say none, or no configuration)
once it has finished, in order to confirm that vivo is running, type in
vivod should be in the list on the top right.
To check the status, you can run the following multiple times and the numbers will change and blocks increase
Binary Update (Ubuntu 16 and 18)
To update without building from source you use this line (as root):
wget -qO- https://raw.githubusercontent.com/coolblock/vpsVivo/master/utils/vivo/1vivobinUpdate.sh | sudo bash
This will erase the old binary and install the new one. It will not update your conf files.
Building from Source (Ubuntu 16 or above)
In case you must build from source: (for instance if it does not work with the latest ubuntu)
Newest Technique to install ONE vivo masternode (there are other instructions to install multiple): First time installation as root on ubuntu 16 or above. This will work if there are no other masternodes installed. Otherwise unknown conflicts can occur.
All in one line BUT replace the XXXXX with your private key
Ideally you will have at least a 1 gig ram machine. A 512 might (and might NOT) work but will take half a day to build.
Option 1 Installation with Source
Grab this file and modify and then run it. You grab it by typeing
wget -qO- https://raw.githubusercontent.com/coolblock/vpsVIVO/master/utils/vivo/1vivo.sh | sudo bash
Option 2 Installation with Source
If you have trouble or you want to use multiple commands you can: cd
apt install -y git screen
git clone https://github.com/coolblock/vpsVIVO.git
-- then type in sreen and hit enter twice and enter
/root/vpsVIVO/coinMnInstall.sh vivo 1
Any option will install a vivo masternode using an ip4. It will build the masternode from source. It will run as a service and will be restarted if the vps is restarted. With a 1 gig machine the process will take around 20 minutes.
The vps script will run for 20 minutes and disconnect your ssh session. Putty will show a disconnect error. That means the machine is rebooting. You can restart another session if you want to check the vps.
Set up Cold Wallet and start masternode after VPS has rebooted
Meanwhile set up your cold wallet, the masternode.conf file on your windows machine (if that is where your cold wallet is at).
After the server has rebooted, you will need to start the alias on the cold wallet.
To Update (build from source)
This is updating a system that used this system to install. It will not update any other technique of installation.
option 1 update with Source (Ubuntu 16 or above)
The following is one single line.
wget https://raw.githubusercontent.com/coolblock/vpsVIVO/master/coinMnUpdate.sh;chmod +x coinMnUpdate.sh;./coinMnUpdate.sh vivo 1
This will rebuild vivo
option 2 update with Source (Ubuntu 16 or above)
rm -rf vpsVIVO
git clone https://github.com/coolblock/vpsVIVO.git
/root/vpsVIVO/coinMnUpdate.sh vivo 1
This will also rebuild vivo
Looking at the VPS information
The conf file is located at: /etc/masternodes/vivo_n1.conf
Executables like vivod are in: /usr/local/bin
Data directory is in: /var/lib/masternodes/vivo1
To do an individual run of sentinel: /root/runsentinelnolog1.sh
To do a getinfo: /usr/local/bin/vivo-cli -conf=/etc/masternodes/vivo_n1.conf getinfo
99 percent of the time, if it does not start, the problem is because of invalid private key or a mistake on the the cold wallet (the controlling wallet).
If you have made a mistake with your privatekey,
Go the the bottom and fix it control x to save and then type in
That will restart everything.
Remember you can type in
to restart the system.
The first troubleshooting script to run is
It will tell you what it ran and what the result was.
To see if the deamon is running: service vivo_n1 status
Or you can look at top and see if vivod exists in the list
To start the deamon: service vivo_n1 start
If it does not start, to trouble shoot the "starting":
/sbin/runuser -l masternode -c '/usr/local/bin/vivod -daemon -pid=/var/lib/masternodes/vivo1/vivo.pid -conf=/etc/masternodes/vivo_n1.conf -datadir=/var/lib/masternodes/vivo1'
Look at the output
Many commands are in: /root/mnTroubleshoot/vivo/
(one single line below)
service vivo_n1 stop;/sbin/runuser -l masternode -c '/usr/local/bin/vivod -reindex -pid=/var/lib/masternodes/vivo1/vivo.pid -conf=/etc/masternodes/vivo_n1.conf -datadir=/var/lib/masternodes/vivo1'
To resync with cleared/empty data
For those who want to install multiple masternodes, each masternode has to have its own private key and its own ip to bind to.
The ip of the first masternode was in
The ip of the second masternode should go in
The private key of the first masternode will be in:
The private key of the second masternode should go in:
Now for a total of two masternodes you must run
/root/vpsVIVO/coinMnInstall.sh vivo 2
The 2 at the end means install a total of 2 masternodes. It will use the /root/ip4_1.txt, /root/ip4_2.txt, and /root/pk_vivo_1.txt, /root/pk_vivo_2.txt files.
If you have more files you can run
/root/vpsVIVO/coinMnInstall.sh vivo 3
/root/vpsVIVO/coinMnInstall.sh vivo 4
as many as your system can handle. Remember each has its own database and will take space. Also you will need enough cpu power to run multiple masternodes.
These each will have their separate sentinel installs.