POSEIDON HOT COLD VPS MASTERNODE SETUP

Hello Everyone,

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

https://posq.io/POSQ_Win.zip

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 :-

getnewaddress MN01

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:-

https://www.vultr.com/

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.

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

Password

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

unzip POSQ_Linux.zip

Once the files are unzipped we will move to the POSQ_Linux directory by typing the following command

cd POSQ_Linux

once you are in the POSQ_linux directry (You can check the command prompt) type.

./poseidond

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.

nano /root/.poseidon/poseidon.conf

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.

rpcuser=anyusername
rpcpassword= anypassword go crazy with your keyboard
rpcport=5511
server=1
daemon=1
maxconnections=250
masternode=1
externalip=IP of VPS:5510
masternodeaddr=IP of VPS:5510
masternodeprivkey=generated previously
addnode=192.243.103.201
addnode=192.243.103.202
addnode=80.111.218.44
addnode=192.243.101.179
addnode=192.243.100.6
addnode=192.243.100.65
addnode=192.243.102.48
addnode=165.227.226.176
addnode=159.89.19.161
addnode=185.248.140.13
addnode=84.200.24.120
addnode=37.228.224.37
addnode=91.39.113.78
addnode=196.52.39.22
addnode=140.82.61.65
addnode=91.39.113.78
addnode=63.140.89.8
addnode=203.220.144.229
addnode=216.117.128.40
addnode=18.222.88.154
addnode=173.30.75.11
addnode=110.232.112.81
addnode=85.15.190.106
addnode=82.142.153.162
addnode=45.77.148.21
addnode=173.239.218.20
addnode=159.65.20.209
addnode=172.245.185.184

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
rpcallowip=127.0.0.1
listen=0
server=1
daemon=1
logtimestamps=1
maxconnections=256

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

./poseidond

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.

./poseidon-cli getinfo

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 :

Qerg7TTLxWzuwxJmWHFLsgAwumjwA1cSN3

Enjoy your rewards !