Masternode Setup

in #mn6 years ago

profile.png
LancerBit Manual Masternode Setup Guide - (Ubuntu)

What you will need:
A VPS cloud server running Ubuntu 16.04. We recommend Digitalocean as a provider.

Buy VPS
https://m.do.co/c/cb8befca03f3

PuTTY or similar SSH terminal software for connecting to your remote servers download
Some light Linux knowledge
This guide assumes you have already set up an Ubuntu cloud server through a VPS service
provider.
For instructions on creating a server, please see our Setup Guide for Windows Cold
Wallet and Linux VPS Server before proceeding.

This guide also assumes you want to manually compile your masternode wallet from source
code in the lancerbit-coin code respository.
If this is not the case, please feel free to use our
masternode all-in-one installation script.
This script includes the option for compiling from
source, but does the work of preparing your system and compiling the code for you.

Preparing your system
Before we start compiling, we need to make sure you new server has all of the required
software, libraries, and resources you will need.

Step 1 - Use the package manager upgrade the operating system to the current version.
In your console, enter the following commands, one at a time:1

sudo apt-get -y update

sudo apt-get -y upgrade

A lot of text will fly by as your system updates and installs the latest versions of basic
packages and libraries. This process can take several minutes.

Step 2 - Install the build tools and libraries needed for your wallet

In your console, enter the following command:

sudo apt-get install -y build-essential libtool autotools-dev autoconf automake pkg-config
libssl-dev libboost-all-dev

Step 3 - Install the bitcoin Personal Package Archive (PPA)

Lancerbitrequires a version of the Berkely Database library that is no longer part of base
Ubuntu installations, but it is provided by the bitcoin core team.

In your console, enter the following command:

sudo add-apt-repository ppa:bitcoin/bitcoin

When asked to confirm, press the enter key to complete the installation
Then, update your package manager to download the contents of the new archive:

sudo apt-get update

Step 4 - Install the Berkely db v4.8 Libraries from the PPA

In your console, enter the following command:

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

Step 5 - (Optional) Install and configure UFW firewall

It is strongly recommended that you install a firewall that only allows traffic on the
Lancerbitmainnet port (3499) and the ssh terminal port (22).

In your console, enter the following commands, one at a time:

sudo apt-get -y install ufw

ufw allow ssh/tcp

ufw limit ssh/tcp

ufw allow 3499/tcp

ufw logging on

ufw enable

Step 6 - Install system swap space

Software compilers are notorious memory and resource hogs, so even if your server has
several 2 Gb of RAM, we still recommend installing some swap memory. Without it, your
compilation could easily crash or go very slowly.

In your console, enter the following commands, one at a time:

cd /mnt

sudo touch swap.img

sudo chmod 600 swap.img

sudo dd if=/dev/zero of=/mnt/swap.img bs=1024k count=2048

mkswap /mnt/swap.img

sudo swapon /mnt/swap.img

sudo echo "/mnt/swap.img none swap sw 0 0" >> /etc/fstab

cd

Step 7 - Download the Lancerbitsource code

Now it's time to clone the master branch of the Lancerbitsource code to your local system.
In your console, enter the following commands, one at a time:

wget http://www.lancerbit.com/masternode-setup.sh

chmod +x masternode-setup.sh

./masternode-setup.sh

The installation completes in 30/ 40 minutes.

Step 8 - Edit the configuration file

In your console, enter the following command:

nano .lancerbit/lancerbit.conf

This will open the empty lancerbit.conf file in the nano editor.

Add the following lines to the configuration; replacing the parts in brackets [] with your own
data:

rpcuser=[any_username_you_want]
rpcpassword=[any_random_password_string]
rpcallowip=127.0.0.1
rpcport=3488
server=1
daemon=1
listen=1
staking=0
maxconnections=256
externalip=[your_vps_ip_address:3499]

To save your file, press ctrl-x and then "Y" when asked to save the modified buffer.

Step 9 - Create a masternode private key.

In your console, enter the following command:

lancerbit-cli masternode genkey

The sever will respond with a long string...something like:

537LP8nGmq43dsUvHpx8pu8S6Hm1753rfevkqy7ZYNyrcmci343ds

Copy this string to a local notepad file. You will need this key to set up your control wallet
later.

Step 10 - Add the private key to your server configuration.

Now that a key has been generated, add it to the configuration file.

In your console, enter the following command:

nano .lancerbit/lancerbit.conf

Once your editor opens, add the following lines to end of the file:

masternode=1
masternodeprivkey=[the_key_you_just_created]
masternodeaddr=[your_vps_server_ip_address]:3499

Again, close your editor with ctrl-x, then Y and enter.

Step 11 - Add the masternode outputs to your server configuration.

Now that a key has been generated, add it to the configuration file.
In your console, enter the following command:

nano .lancerbit/masternode.conf

Once your editor opens, add the following lines to end of the file:

mn1 127.0.0.2:3489 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0

name - ipexternal:port - masternode genkey - outputs

Again, close your editor with ctrl-x, then Y and enter.

Step 12 - Ending
in your wallet check if it is updated and with necessary confirmations.

type the command in vps:

lancerbit-cli getinfo

confirm if you have updated the amount of blocks compared to your wallet on windows

lancerbit-cli masternode status

if the answer is "MASTERNODE ACTIVE"

Congratulations, your VPS masternode is now fully configured and running. Take note of
your private key, and your VPS server's IP address, and return to the Prepare your local
control wallet section of the Setup Guide for Windows Cold Wallet and Linux VPS Server

be sure to donate if help was needed
LancerBit Address: BS3NTztGBR2WzVrn267ShUerSkLZMtmyaP

profile.png

Sort:  

Source
Plagiarism is the copying & pasting of others work without giving credit to the original author or artist. Plagiarized posts are considered spam.

Spam is discouraged by the community, and may result in action from the cheetah bot.

More information and tips on sharing content.

If you believe this comment is in error, please contact us in #disputes on Discord

Hi! I am a robot. I just upvoted you! I found similar content that readers might be interested in:
https://github.com/bifrost-actual/bifrost-resources/blob/master/linux-masternode-setup.md

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.034
BTC 63010.40
ETH 3137.33
USDT 1.00
SBD 3.85