Masternode Setup Guide - ARCHIVE (Still works)
There are many different ways to set-up a masternode. This method requires a Virtual Private Server, eliminating the need to run your own computer 24/7. Your funds are also safely stored on your local wallet, not the VPS.
The following requirements are needed to set-up a Masternode using this guide.
A fully synced local wallet - download from www.solariscoin.com
1,000 XLR + 1 XLR for transaction fees (I recommend having the funds in your wallet from the beginning)
A Virtual Private Server (VPS). Any VPS should work. Ubuntu 16.04 is good - I recommend to purchase from: https://www.time4vps.eu/?affid=2300
Another VPS provider: http://Vultr.com
An S VPS (from time4vps.eu) server is enough for 1 masternode.
1 Masternode will work on 1 GB RAM, 1 Core CPU, 20 GB HDD.
Download and install Putty from: www.putty.org
Mac users can user Terminal to connect: https://apple.blogoverflow.com/2012/02/how-to-use-ssh-on-mac-os-x/
Desktop Notepad for record keeping
An ability to follow instructions :)
After Purchasing the VPS, you will need to install an OS by Clicking Install OS button. Select Ubuntu 16.04 (64-bit) from the list, Select YES and hit Continue.
Wait until the installation is complete (approx. 5 minutes). Hit the Installation Results button and record the IP address of the VPS in Notepad. I will refer to this as VPS_IP.
Launch Putty and log into the VPS using the VPS_IP.
You may see a certificate warning, since this is the first time you are connecting to this server. You can safely click Yes to trust this server in the future.
You are now connected to the server and should see a terminal window. Begin by logging into your server with the user root and password supplied by the hosting provider.
You can now minimize the Putty window or just close it and come back to it after we complete the next steps.
Create a MasterNode Address (ALIAS) & send collateral
Open the Solaris wallet, go to File > Receiving Addresses > New
Name the Label and hit OK, (Make it 1 word). The Label is your masternode ALIAS.
While you are still in the Receiving Addresses table, select the address you just created and hit the Copy button. Close this window.
Next you will need to send the collateral (EXACTLY 1000 XLR) to this address. Do so by going to the Send tab and pasting the Address you just copied to the Pay To: field. The Label should automatically show up as the one you just named. Enter exactly 1000 into the amount field and hit Send. This address belong to your account, you essentially send money to yourself. Your funds will stay in your account.
Now go to the Transactions tab and double click on the Transaction you just made. Record the TRANSACTION_ID in Notepad, it will be required in the next step. You also need to wait until 15+ confirmations on this transaction before continuing .
MasterNode private key & Index ID
Go to Tools>Debug Console
Type the following command and copy the generated key to Notepad, this will be your PRIVATE_KEY
While in debug console, type in the following and copy the "outputidx" digit this will be your INDEX_ID
Edit configuration files locally
On your local machine, go to this folder:
You can do so by opening Explorer and typing that into the path field.
To find the folder on Mac:
put: ~/Library/Application Support/Solaris
then click GO
Open file “masternode.conf” with Notepad. (right click>open with>notepad)
Add a line containing this information: make sure to include the port after the IP address (:60020)
ALIAS VPS_IP:60020 PRIVATE_KEY TRANSACTION_ID INDEX_ID
It should look like this:
Save this file, but do not close it. It will be require in the next step.
Next, Open “solaris.conf” with Notepad and copy&paste the following into it:
rpcallowip=127.0.0.1 rpcuser=ANY_LONG_USERNAME rpcpassword=ANY_LONG_PASSWORD staking=0 server=1 listen=1 port=60020
Save and close the file.
Open Putty and log back into the VPS.
Copy the next command and paste it into the Putty screen. To paste in the Putty, Right Click the mouse button.
Copy the next command and paste it into the Putty screen.
sudo bash solaris0.sh
This will run an automated script that will perform most of the steps required on the VPS, like creating required folders and installing the Solaris wallet.
Click “Y” and then Enter when you are asked to continue.
Next, you will see the screen like below. It is the masternode.conf file on your vps.
You need to copy the line you just created in your masternode.conf on the local machine, and paste it into the Putty window by clicking the Right Mouse button.
Save and exit this file by pressing:
The next screen that you will see is the solaris.conf file on the VPS.
You need to change the VPS_IP:60020 and PRIVATE_KEY with your own details. You the arrow keys on your keyboard and backspace to delete the text in Putty and to add your own details. Make sure to leave no empty spaces after any of the lines.
Save and exit this file by pressing:
Next you want to wait for the block height to sync up fully with the blockchain. You can check the progress entering the following commands into the VPS:
And now the getinfo command. You are interested in the "blocks" number. Enter the command to update the number and track the progress.
To check the current block height of the Solaris blockchain, go to https://solaris.blockexplorer.pro/ .
You can now close the Putty window once the VPS is synced.
Close and save the solaris.conf and masternode.conf files if you haven't already. Close and start the local Qt wallet to activate the changes.
In your local wallet, go to Tools>Debug Console and type:
startmasternode alias false mn1
If you get an Error: "Please enter the wallet passphrase with walletpassphrase first (code -13)" . You need to Unlock your wallet bu going to Settings > Unlock Wallet.
After successful start:
Check in your Wallet>Masternodes tab. If the Status is ENABLED, your masternode is running.
You can now close your local wallet. The VPS will do all the work for you!