Linux VPS guide 2018-01-10T14:37:10+00:00

MASTERNODE SETUP DOCUMENTATION

BEFORE YOU BEGIN, YOU WILL NEED:

– 12,000 PHILS
– The latest Philscurrency wallet, which can always be found here: https://github.com/philscurrency/philscurrency/releases
– Windows program PuTTY: http://www.putty.org/
– A VULTR account, which can be found here: https://www.vultr.com/ (or any VPS of your choice if you know what you are doing)
– An ability to follow instructions to the letter

PREPARING YOUR VPS: at vultr you can setup your vps for 5$
Sign up or Login to https://my.vultr.com/
From your home page —>Instances—->Deploy a new server
Select the following options
Primary location–>your choice
Server type–>Ubuntu 16.04 or higher
Server Size –>Min 1 Gb Ram, 25 gb SSD.
click Deploy Now
Wait for a while until it is installed completely.
When the status shows Running, click the manage button
Make a note of Username and password from the overview page

Now install the PuTTY on your computer
Enter the Ip address of your vps in the Hostname and leave the port as 22
click open, you will see a console like your Dos Command prompt
Enter your username and password from your vps overviewpage to login

From here on, whenever you see text in italics, you can copy paste the commands and hit ENTER after each individual line, HAPPY CODING!!

Since the password of your vultr is automatically generated you need to create a new username and password, enter the following commands. Hit ENTER after each command.

adduser USERNAME

I used test as an example

create a new password and retype new password. You can leave user information default, click ENTER 6 times

Now close your putty and reopen it and login with the new username and password you just created.

wget  https://github.com/philscurrency/philscurrency/releases/download/v1.2/philscurrency-1.0.0-linux64.tar.gz

tar -zxvf philscurrency-1.0.0-linux64.tar.gz

cd philscurrency-1.0.0/bin

./philscurrencyd

It will prompt you for a config file

cd

cd .philscurrency

cat >philscurrency.conf

Copy below 6 lines to the conf file, replacing xxx with username and password of your choice

rpcuser=XXXXXXXXXXXXX
rpcpassword=XXXXXXXXXXXXXXXXXXXXXXXXXXXX
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1

now press control + D

cd

cd philscurrency-1.0.0/bin

./philscurrencyd

./philscurrency-cli getinfo

./philscurrency-cli getnewaddress

Copy this address, to send your collateral 12,000 PHILS

./philscurrency-cli masternode genkey

This is the private key for your masternode

Send 12,000 PHILS to the address you got in the previous step

./philscurrency-cli masternode outputs

./philscurrency-cli stop

cd

nano .philscurrency/philscurrency.conf

Copy below 4 lines to the conf file

maxconnections=64
masternode=1
masternodeprivkey=4w7nc4Ema2MPmB8rZvJmfYBL9stFXX22fDPScW5VSsRLoj1tkPy
externalip=xx.xx.xxx.xx:36003

ctrl+x

shift+Y

ENTER

nano .philscurrency/masternode.conf

Copy below line to the conf file

MN1 xx.xx.xxx.xx:36003 4w7nc4Ema2MPmB8rZvJmfYBL9stFXX22fDPScW5VSsRLoj1tkPy 4ef76b6b7b66c7ac18f2d1944f5397f217ddbba0b4994581c525f5f7ad6680e6 0

ctrl+x

shift+Y

ENTER

When editing masternode.conf

LABEL: A one word name you make up to call your node (ex. MN1)
MN IP : PORT: Your masternode VPS’s IP, and the port is always 36003
MASTERNODEPRIVKEY:  answer of masternode genkey
TRANSACTION HASH: answer of masternode outputs
INDEX: The Index is always 0 or 1.

cd

cd philscurrency-1.0.0/bin

./philscurrencyd

./philscurrency-cli getinfo

./philscurrency-cli masternode start-alias MN1

You can check your masternode status from any wallet using debug console

masternode list

Lastly, lets add crontab to keep your daemon running no matter what

cd

crontab -e

enter option 2

Copy below line to the conf file

@reboot ./philscurrency-1.0.0/bin/philscurrencyd

ctrl+x

shift+Y

ENTER

HAPPY MASTERNODING

If you still have any trouble with the setup, kindly contact us on slack or write an email, we will get back to you soon and give the assistance you need