EscrowCoin - ESCO masternode setup guide

in escrowcoin •  7 years ago 

Linux Guide
×
Step-by-step guide to setup a masternode in a Linux VPS
Introduction
This guide is for a single masternode, on a Ubuntu 16.04 64bit server (VPS). running headless and will be controlled from the wallet on your local computer (Control wallet). The wallet on the the VPS will be referred to as the Remote wallet. You will need your server details for progressing through this guide.
Requirements
EscrowCoin wallet running in your local computer with at least 1500 ESCOs.
The software Putty to connect and send commands through SSH.
The software WinSCP to see your VPS's folders, it will ease the configuration.
A VPS running a Linux distribution.
Configure your masternodes to be controlled remotely with a cold wallet, since it's easier and safer.
Step 1: Setting up EscrowCoin wallet on your local Windows PC
Download the wallet for windows from the following location - https://github.com/Escrow-Coin/WindowsWallet
Open your Windows wallet, go into the console and type:
masternode genkey
Copy the result in a file. This is your masternode private key. You will need to use this string later.
Create a new address to receive your 1500 ESCOs, typing:
getaccountaddress mn01
Send exactly 1500 ESCO to the address you just created and wait for 15 confirmations. Run following command to get proof of transaction.
masternode outputs

copy the output and index.
Now you need to edit the Escrow.conf of your local wallet. For Windows users the file is located in C:\Users\your_name\AppData\Roaming\Escrow. To see this folder you need to make hidden folders visible. If you do not have the Escrow.conf file in your folder, create a txt file name "Escrow.txt" then change the extension to Escrow.conf. We need to edit this file, just copy and update the required values.
rpcuser=SomeRandomString
rpcpassword=EvenLongerRandomString
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
staking=0
logtimestamps=1
Find masternode.conf file in same folder. If you do not have the masternode.conf file in your folder, create a txt file name "masternode.txt" then change the extension to masternode.conf. We need to edit this file, Add the following to masternode.conf file
Name_of_Masternode(mn01) Unique_IP_address:8018 privatekey_generated transaction_proof index_number
Example
mn01 XX.XX.XX.XX:8018 68kAzEd4V7q112jbJdPB9d98Wmd3iqcNxYJh1JXNatWxeg8we1j 4a147c181f353a442f67c0ca5c747c55e6530600c6cc13ff3d162cb9aw9312ff 1
save the file and close
Step 2: Compiling the EscrowCoin wallet on your VPS
Connect to your VPS with the Putty.
Download the wallet to be compilled, with the commands below. Remember the folder where the EscrowCoin will be stored.
sudo apt-get install git
git clone https://github.com/Escrow-Coin/EscrowCoinCore_Linux
Install the dependencies:
sudo apt-get -y update

sudo apt-get -y install build-essential libssl-dev libdb++-dev libboost-all-dev libcrypto++-dev libqrencode-dev libminiupnpc-dev libgmp-dev libgmp3-dev autoconf autogen automake libtool
Access your EscrowCoin folder (~/EscrowCoinCore_Linux) and run the following command:
cd src
sudo make -f makefile.unix
Your VPS will start compiling the wallet. This operation can take more than 1 hour on a Raspberry PI so be patient. If your VPS lacks of RAM to compile, follow this guide to add memory using a Swap file. https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04
After finished, you should see a new file named "Escrowd" in your src folder.
Step 3: Starting and Configuring the wallet
Start the wallet typing the following command in the src folder:
./Escrowd -daemon
Your should get "EscrowCoin server starting". When you start the wallet for the first time a new folder is created with the chain, the conf file and so on. This folder is located in the same repository as the EscrowCoin one. For example if your EscrowCoin folder path is /home/escrowcoin , then the new folder path is /home/.escorice (sometimes its located in the /root folder - /root/.Escrow/Escrow.conf). You won't see it in WinSCP so you need to make hidden folders visible by clicking on the small icon at the bottom right of WinSCP. In case if the wallet doesnt start, create the Escrow.conf file on the path /root/.Escrow/
Now you need to configure your wallet, first we need to close the wallet and edit the conf file:
./Escrowd stop
cd /root/.Escrow/
sudo nano Escrow.conf
The file should look like this, incase not than add the following lines
rpcuser=||random user||
rpcpassword=||random password||
rpcallowip=127.0.0.1
daemon=1
server=1
listen=1
port=8018
rpcport=8017
masternodeaddr=||your VPS IP:8018|| masternode=1 masternodeprivkey=||private key generated on local Wallet||
Save the file, restart the wallet and wait it to get fully synced.
cd ~/EscrowCoinCore_Linux/src
./Escrowd
You can check the progress of the syncronization of the wallet by typing this command:
./Escrowd getmininginfo
Optional - You need to check whether the 8017, 8018 port is open or not on you VPS and local system. In case the ports are block than you must open these ports for wallets to communicate. You can use the online service to check like - http://ping.eu/port-chk/
Now start local windows wallet and go to "Masternodes" option in left menu. Check My Masternodes. mn01 must be listed on the screen. In case it is not available than click update button.
Select the mn01 and click Start button. You should see masternode started successfully.
ALL Done !!!.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thank u for your posting..it will help

Congratulations @sid69! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @sid69! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!