LITECLOUD HOT COLD VPS MASTERNODE SETUP
A complete step by step Litecloud Masternode setup will be discussed in this tutorial. This shows all the steps required to setup your LiteCloud (LTCL) master node on a Linux system (VPS) while running a local hot wallet on a Windows PC.
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 Contabo, Scaleway 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.
Once the QT is up and running, click on tools and the debug console.
Once you are in debug console ,
Step 1 — Type/Run :-
Type the following command.
A new receiving address will be generated. Copy that address and put it in a notepad.
Step 2 —
Now we need to send the required 10,000 LTCL to run masternode to newly created address. To do so enter the following command and hit ENTER.
sendtoaddress “copied-address” 10000
(Replace copied-address above with the address copied earlier in step 1.)
Step 3 —
Next type the following command and hit enter.
“masternode genkey” without quotes and hit/press enter on your keyboard.
Copy the output alpha numeric, we will use it later. This is also known as the masternode private key.
Important Note: Now wait for about 10 to 15 minutes for the transaction to get enough confirmations and then move on to the step 4 below.
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 Okay.
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.
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.
# Masternode config file
# Format: alias IP:port masternodeprivkey collateral_output_txid collateral_output_index
# Example: MN01 127.0.0.2:51474 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”:18651 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”:18651 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg (change this with your key) 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c(change this with your tx hash) 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.
Copy the following each line at a time and paste it into the console and hit enter. At times you might have to accept certain changes by typing either ‘y’ or ‘a’ and hit enter to proceed. Wait for each line command to complete before you proceed with the next one.
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 18651/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.
sudo wget http://iamtrending.net/wp-content/uploads/2018/06/LiteCloud.zip
Once installed we will , unzip the file by typing
sudo unzip LiteCloud.zip
Change permissions to make the files executable, by typing
sudo chmod +x ltcl-cli ltcld
Now type the following command:
You will receive an error “Error: To use ltcld, or the -server option to ltcl-qt, you must set an rpcpassword in the configuration file:”
Now we need to update our ltcl.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.
rpcuser=”TYPE ANYTHING YOU WANT”
rpcpassword=”TYPE ANYTHING YOU WANT”
externalip=[TYPE YOUR VPS IP ADDRESS]:18651
masternodeprivkey=”This is the Genkey you copied earlier”
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
./ltcl-cli startmasternode local false
If you wanna double check type
./ltcl-cli masternode status
And it will give you more details.
And that’s it, you’ve made it! You are a proud owner of a LiteCloud Masternode now!
Enjoy your masternode rewards!!!