POSEIDON HOT COLD VPS MASTERNODE SETUP
This tutorial shows the steps required to setup your Poseidon (POSQ) master node on a Linux system (VPS) while running a local hot wallet (Windows system here).
In this process we have to install wallet at 2 places, locally on our windows computer and remotely on Ubuntu VPS. The wallet that is installed remotely on the VPS, it will not have funds in it, so it is considered cold, while the wallet installed locally on your windows computer, it will have the funds in it, so it is considered hot. This local hot wallet also acts as a proof that you own the funds, and works as a remote control too.
We would be using Vultr for this tutorial. However you can use Digital Ocean or any other of your choice.
Steps to be performed locally
First we will work on our local wallet to gather some information and then move to VPS.
Download latest QT from the official site
Unzip and run the QT file.
If you wish you can encrypt wallet and can unlock it for configuring your masternode.
Once the QT is up and running, click on tools and the debug console.
Once you are in debug console , type the following commands :-
Step 1 — Type/Run :-
A new receiving address will be generated. Copy address.
Step 2 — Now we need to send the required 10,000 POSQ to run masternode to newly created address. To do so type/run:-
sendtoaddress copied-address 10000
(Replace copied-address above with the address copied earlier in step 1.)
Step 3 — Next Type/run the command
“masternode genkey” without quotes and hit/press enter on your keyboard.
Copy the output alpha numeric, we will use it later.
Step 4 — Next type/run the command “masternode outputs” without quotes.
It will provide you transaction hash and transaction id. Copy complete output, we will use it later.
In the last command your outputidx can return either 0 or 1 and both values are ok.
Once we have all the info we will move to Vultr (VPS)
Signing up for Vultr is simple. First create an account and login. If you haven’t already you can sign up for Vultr here:-
Once you are logged in you need to deploy your server. While Installing server you only need to select
Server Location :- Anyone you like.
Server Type :- Ubuntu 16.04 x64
Server Size :- $2.50/Month or $5 / Month if $2.5 is sold out.
For the first time it will take you to the payment screen. You can pay through various payment options like card, paypal or even Bitcoin.
The process is automatic and it takes less than minute for it to be deployed after making the payment. Once your server is ready we will need putty (local client) to login.
This page contains download links for the latest released version of PuTTY. Currently this is 0.70, released on…www.chiark.greenend.org.uk
Download the putty from above link and install it like you install any software.
To login using putty , you will need 3 things
IP Address of VPS
Username :- “root” by default
All these info is available within your vultr account and can be found by clicking on appropriate server.
Once you click on any server , it will take you to the following screen on which you will have all the info
Now once you have all the info, lets again go to the local windows QT and click on tools and open masternode configuration file. To help you, the masternode configuration file already contains the required syntax , you just need to change the values as per the values we have gathered previously.
Once you will open masternode configuration file you will see the following last 2 lines already there.
# Format: alias IP:port masternodeprivkey collateral_output_txid collateral_output_index
# Example: mn1 127.0.0.2:5510 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0
So we will simply copy paste the last line again and change the values. We will not be including # and Example: in this line . So our next line will look like.
MN01 “The IP address of VPS”:5510 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg(change this with your key) 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c(change this with your tx hash) 0
Change the values above with your values. You can see in this case the last outputidx is 0 , if your’s is 1 write 1. so the same will become
MN01 “The IP address of VPS”:5510 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 1
Now save the notepad file and restart the qt for the changes to take effect.
Lets go to Putty now. Once you start the putty the first thing it will ask for is login IP. It will be the IP of the VPS which you can find from the server info as described above.
Click on open, and for the first time it may or may not give you another small window prompt asking you for a reconfirmation. If it does, You can simply click ok.
It will then take you to the following black screen to put in the login credentials.
Username by default is root and the password you can find on the server information page in your vultr account. You can copy the password from there. To paste the password in putty just do a simple right mouse click and then press enter.
In putty you cannot use ctrl+v to paste instead just a simple right mouse click works, or alternatively you can use Shift+Insert key on your keyboard to paste.
Once logged in you will be at the root command prompt . Now in the putty we will run the following commands one by one to install required dependencies and get our server ready.
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install wget nano unrar unzip libboost-all-dev libevent-dev software-properties-common -y
sudo add-apt-repository ppa:bitcoin/bitcoin -y
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev -y
sudo apt-get install libzmq3-dev libminiupnpc-dev -y
Next we will configure swap to increase our memory. For that we will run following commands
sudo fallocate -l 1500M /mnt/1500MB.swap
sudo dd if=/dev/zero of=/mnt/1500MB.swap bs=1024 count=1572864
sudo mkswap /mnt/1500MB.swap
sudo swapon /mnt/1500MB.swap
sudo chmod 600 /mnt/1500MB.swap
sudo echo '/mnt/1500MB.swap none swap sw 0 0' >> /etc/fstab
As mentioned above , you can simply copy paste these command into the console screen.
Next step is to Open Port for Masternode communication by running following commands:
sudo ufw allow 22/tcp
sudo ufw limit 22/tcp
sudo ufw allow 5510/tcp
sudo ufw logging on
sudo ufw --force enable
Now we will download and install the linux wallet in our VPS so in the console type the following command.
wget https://posq.io/POSQ_Linux.zip --no-check-certificate
Once installed we will , unzip the file by typing
Once the files are unzipped we will move to the POSQ_Linux directory by typing the following command
once you are in the POSQ_linux directry (You can check the command prompt) type.
The dot above is not a typo but mandatory
You will receive an error “To use poseidond, or the -server option to poseidon-qt, you must set an rpcpassword in the configuration file” and this is perfectly fine.
Now we need to update our Poseidon.conf file. We will use the inbuilt nano editor to reach to our conf file by typing.
Once you are in the nano editor . Simply copy paste the below lines. You will need to change few values as defined below. Like username, password, IP , masternode key etc. You can copy the below lines in notepad and then copy paste these in the nano editor after making changes. Remember to paste in putty console you just need to do a right mouse click.
rpcpassword= anypassword go crazy with your keyboard
externalip=IP of VPS:5510
masternodeaddr=IP of VPS:5510
Then using your keyboard press Ctrl+O then enter to save and then Ctrl+X to exit from nano.
Now come back to local Qt . Go to tools and open wallet configuration file.
Paste the following lines.
rpcuser= same as used in VPS above
rpcpassword= same as used in VPS above
Save and close the notepad.
Close and reopen the QT once. Now if you will go to the masternode tab you will see your masternode MN01 listed , however the status as of now will be missing. That is ok. We just need to start it. For that we will again go to debug console and type the following command
startmasternode alias false MN01
If you did all the steps above correctly the masternode will return success. Wait for a while for the status to be changed to enabled under masternodes tab.
Go back to putty console and type/run the following commands
allow it some time to sync and then next run
./poseidon-cli startmasternode local false
You will receive status Masternode succesfully started.
You can also use the following command to check till what block it has synced and compare it with the POSQ explorer.
If you wanna double check type
./poseidon-cli masternode status
And it will give you more details.
And that’s it, you’ve made it! You can feel like a Crypto-GOD, rocking your new Masternode!
If you found my work of any help at all please consider donating. Your donations will help me to keep working and helping the community. My Poseidon(POSQ) donations address is :
Enjoy your rewards !