Set up your own Levitate MasterNode

 

Before you set up your own Levitate MasterNode, make sure you have:

√ a synched Levitate wallet
√ 250,000 LVT
√ 24/7 online PC, Laptop, Server, VPS or Raspberry pi with 2GB RAM or more


This guide has 3 sections:

A Set up your Levitate MasterNode on Linux Server, VPS or Raspberry Pi

B Set up your Levitate MasterNode on your local Windows system

C Errors and possible solutions

 

 

[A] Setting up your Levitate MasterNode on a VPS or Raspberry Pi

Things to check and do first:

Make sure you have SSH access to your server
Install the SSH program Putty https://putty.org/
Optional: install WinSCP to gain easy access to your server https://winscp.net/

Step 1 – setting up your control wallet on your local PC or Laptop

  1. Open your Levitate wallet and let the wallet synchronize
  2. In the wallet, go to menu Tools, Debug console
  3. Here you will execute all commands in the commandline shown at the bottom with a > . First you have to create a masternode private key by typing the following code and hit [Enter]:

masternode genkey

The output will be shown above the commandline. Copy and paste the output, which is a long line of letters and numbers, and looks like this:

6vtyMv3aKuUJnNBpU959FBqGovuCiUfz1U4U6nbEqMPjrEXehXu

Save this output in a seperate textfile you save on your system.
Next create your collateral address by typing the following code and hitting [Enter]:

getaccountaddress mn01

Copy and paste the output, which is your mn01 address. Save this also in the seperate textfile.

Step 2 – set up your server

Use Ubuntu 16.04 or higher on your server. We advice to use Ubuntu 18.04
For a Raspberry Pi we advice to use Raspbian Jessie

2.1 Update your server

Login to your server shelll with SSH by using Putty and update your server by executing these 2 commands one by one:

sudo apt-get update

sudo apt-get upgrade

2.2 Install the required dependencies

Install the required dependencies by running these 2 commandlines one by one:

sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libboost-all-dev libboost-program-options-dev

sudo apt-get install libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler unzip software-properties-common

2.3 Install the Berkeley Database

Install the Berkeley DB on your server by executing the following 3 commands one by one:

sudo add-apt-repository ppa:bitcoin/bitcoin

sudo apt-get update

sudo apt-get install libdb4.8-dev libdb4.8++-dev

2.4 Install Levitate source code

Execute the following commands one by one:

git clone "https://github.com/levitatecore/Levitate.git"

cd Levitate

find . -name "*.sh" -exec sudo chmod 755 {} \;

chmod +x configure.ac

chmod +x src/leveldb/build_detect_platform

./autogen.sh

./configure                                                                     Getting errors? Click here for possible solutions

make clean

make

cd src

strip levitated

strip levitate-cli

strip levitate-tx

mkdir $HOME/.levitate

sudo cp levitated $HOME/.levitate

sudo cp levitate-cli $HOME/.levitate

sudo cp levitate-tx $HOME/.levitate

2.5 Create the Levitate configuration file on the server

On the server you have to create a levitate.conf file that connects it to your control wallet.

cd $HOME/.levitate

nano $HOME/.levitate/levitate.conf

Next paste the following lines and edit the text marked with *..* with your own data:

rpcuser=rpc_levitate
rpcpassword=*yourrandompassword*
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
maxconnections=32
masternode=1
masternodeprivkey=*paste your MasterNode genkey here which you created in step 1 above*
externalip=*paste the external ip of your server/vps here*

2.6 Starting your Levitate MasterNode

Start your Levitate MasterNode by executing the following command:

./levitated

3 - Setting up your Levitate Masternode Control wallet

  1. Go back to your Levitate control wallet which is running on your PC or Laptop
  2. Send exactly 250,000 LVT to the collateral address you created in step 1
  3. Wait until the transaction has 20 or more confirmations
  4. Next go to the menu Tools, Debug console. Enter the following command:

masternode outputs

You will get output that looks like this:

"txhash": "18d888caf401hndj8kljuy909952a6cec871jnb7shbg67kjenjsj8skn94cshyum",

"outputidx": 1

Copy your own output to the seperate text file you created in step 1

3.1 Edit your masternode.conf file for the control wallet

  1. For the control wallet, you need to edit your masternode.conf file
  2. Go to menu Tools
  3. Select option: Open Masternode Configuration File
  4. In the seperate text file where you saved the masternode genkey and the masternode outputs, create a line like this with your own data and paste it in the Masternode Configuration file you have opened in the wallet:

mn01 81.169.249.203:6518 6vtyMv3aKuUJnNBpU959FBqGovuCiUfz1U4U6nbEqMPjrEXehXu 18d888caf401hndj8kljuy909952a6cec871jnb7shbg67kjenjsj8skn94cshyum 1

The above line is 1 line without line-break. The different values are seperated with 1 space. The values you have to replace out with your own MasterNode data are:

mn01 replace this with the alias you created for your masternode in step 1

81.169.249.203 replace this IP with the external IP of your VPS, server or Raspberry pi

6518 this is the P2P port of Levitate. Leave it as is, sticked to the external IP with a :

6vtyMv3aKuUJnNBpU959FBqGovuCiUfz1U4U6nbEqMPjrEXehXu replace this with your own MasterNode private key which you created in step 1

18d888caf401hndj8kljuy909952a6cec871jnb7shbg67kjenjsj8skn94cshyum 1 replace this with your own txhash and outputidx value you created in step 3

After you have double-checked your edited data, save the file and close it.
Next shutdown your Levitate wallet and restart it.

3.2 Activating your Levitate MasterNode

  1. In your Levitate control wallet, go to menu Settings and click: Unlock Wallet
  2. Enter your wallet passphrase and unlock your wallet
  3. Next go to menu Tools, Debug console
  4. Start your masternode by typing this command:

startmasternode alias false mn01

If this returns a message Succesfully started, you are all set.
It can take some hours before your MasterNode is fully up and running.

 

[B] Setting up your local Levitate MasterNode on a Windows PC

If you have a local PC connected to the internet 24/7 you can run your Levitate MasterNode on it.
Make sure you have a static IP with Firewall ports 6517 and 6518 open for running Levitate.

Step 1 – prepare MasterNode wallet

  1. create a folder for the Levitate MasterNode. In example: levitatemn01
  2. copy file levitate-qt.exe to folder levitatemn01
  3. go to folder levitatemn01 and create subfolder: data
  4. rename levitate-qt.exe to levitate-mn01.exe
  5. press Win+R , type cmd and press [enter]
  6. next type: echo start levitate-mn01.exe -datadir=./data > %homepath%/Desktop/startmn01.cmd
  7. move the created file startmn01.cmd from Desktop to the levitatemn01 folder
  8. run startmn01.cmd and let it load and sync completely
  9. exit this wallet

Step 2 – pepare control wallet

  1. start your Levitate wallet that holds your LVT coins
  2. go to menu File, Receiving Addresses
  3. click button New and type mn01 in Label and click OK
  4. send exactly 250,000 LVT to this new address
  5. wait for 20 confirmations of the transaction
  6. go to Tools, Debug Console and run command: masternode genkey
  7. copy and save the generated key in a seperate text file
  8. run command: masternode outputs and copy the data also to the seperate textfile
  9. go to Tools, Open Masternode Configuration File
  10. In your seperate text file where you saved the masternode genkey and the masternode outputs, create a line like this with your own data and paste it in the Masternode Configuration file you have opened in the wallet:

mn01 81.169.249.203:6518 6vtyMv3aKuUJnNBpU959FBqGovuCiUfz1U4U6nbEqMPjrEXehXu 18d888caf401hndj8kljuy909952a6cec871jnb7shbg67kjenjsj8skn94cshyum 1

The above line is 1 line without line-break. The different values are seperated with 1 space. The values you have to replace out with your own MasterNode data are:

mn01 replace this with the alias you created for your masternode in step 1

81.169.249.203 replace with the external IP your system

6518 this is the P2P port of Levitate. Leave it as it is, sticked to the external IP with a :

6vtyMv3aKuUJnNBpU959FBqGovuCiUfz1U4U6nbEqMPjrEXehXu replace this with your own MasterNode private key which you created in step 2

18d888caf401hndj8kljuy909952a6cec871jnb7shbg67kjenjsj8skn94cshyum 1 replace this with your own txhash and outputidx value created in step 2

After you have double-checked your edited data, save the file and close it.
Next shutdown your Levitate wallet and re-start it.

Step 3 - configure MasterNode levitate.conf file

  1. Go to levitatemn01/data folder
  2. Open levitate.conf in notepad
  3. Next paste these lines and replace the text marked between *....* with your own data:

rpcuser=rpc_levitate
rpcpassword=*yourrandompassword*
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
maxconnections=32
masternode=1
masternodeprivkey= *6vtyMv3aKuUJnNBpU959FBqGovuCiUfz1U4U6nbEqMPjrEXehXu*
externalip= *81.169.249.203:6518*

Step 4 – start your Levitate MasterNode

Start your masternode with:

startmn01.cmd

Go to your control wallet to the Masternodes menu
Click the button: Start all

It can take some hours before your MasterNode is fully up and running.

 

 

[C] Errors and possible solutions

 

./configure and ./make errors

Should you get errors after running ./configure try these solutions:

Check the location of your libboost files and try these commands instead of ./configure :

./configure --with-boost-libdir=/usr/lib/x86_64-linux-gnu

or

./configure --with-boost-libdir=/usr/lib

 

If you get db or boost errors on a Plesk server, try this command instead of ./configure :

./configure CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include -O2" LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib" --with-boost-libdir=/usr/lib64 --enable-upnp-default

 

If you have a Raspberry Pi, try this command instead of ./configure :

./configure CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include -O2" LDFLAGS="-L/usr/local/BerkeleyDB.4.8/lib" –enable-upnp-default

 

./make and autogen.sh errors

Should you get db related errors after running ./make or ./autogen.sh, try this command instead:

./autogen.sh && ./configure --with-incompatible-bdb && make

 

Connection errors

Most connection errors are related to Firewall configuration.
If you server has ufw, run these commands one by one:

sudo ufw status
sudo ufw allow 6517/tcp
sudo ufw allow 6518/tcp

If your server does not have ufw, run these commands one by one:

iptables -I INPUT -p tcp --dport 6517 -m state --state NEW -j ACCEPT
iptables -I INPUT -p tcp --dport 6518 -m state --state NEW -j ACCEPT
iptables-save

 

Back to top of page        Back to A Set up on Linux       Back to B Set up on Windows