Setup Linda masternode on Ubuntu 16 Linux

LINDA


Bitcointalk – https://bitcointalk.org/index.php?topic=2002111.0
Website – http://lindacoin.com/
Github – https://github.com/Lindacoin/Linda
Explorer – http://lindachain.com/

You need 30,000,000 Linda.  Exactly 30,000,000 Linda, nothing more or less.  It will not work if it is not 30,000,000 Linda.  It needs to be send as 1 transaction of 30,000,000.  It will not work if you transfer 10,000,000 and nother of 20,000,000

Step 1: Update and Install Dependencies

sudo apt-get update

sudo apt-get install build-essential libtool automake autotools-dev autoconf pkg-config libssl-dev libgmp3-dev libevent-dev bsdmainutils

sudo apt-get install libboost-all-dev

sudo add-apt-repository ppa:bitcoin/bitcoin

sudo apt-get install libdb++-dev

 

Step 2.  Create a swapfile:

Since we will be compiling the Lindad command line daemon, we will need a swapfile, or the compile process will run out of memory. This example will create a 3G sized swapfile which is optimal for a 1G VPS, but will also work for a 512MB VPS as well. This is how we create one:

sudo fallocate -l 3G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

 

Now let’s make this permanent so that if your VPS restarts, the swap will turn on automatically:

echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

3. Now let’s get the Linda source and compile:

cd ~/
git clone https://github.com/Lindacoin/Linda
cd Linda/src
make -f makefile.unix
cp Lindad /usr/local/bin

4. Now that we have Lindad compiled, start it up and let it sync:

Lindad -daemon

This will take 2-6 hours to sync depending on your connection and proximity to other peers.

You can check on the progress of it by typing:

Lindad getinfo

And look for the “blocks” line.  The latest block at the time of writing this was:

"blocks" : 300325, 

5. While your wallet is syncing, let’s create a new account address for address 0, and make a note of it:

Lindad getaccountaddress 0

6. Now send exactly 30000000 Linda to the address you just created.

Wait for 15 confirmations

7. While it’s confirming, generate a masternode key, and make a note of it:

Lindad masternode genkey

8. Encrypt your wallet:

Lindad encryptwallet "your password"

 

***DO NOT LOSE THIS PASSWORD***

 

9. Now stop Linda so you can modify the config.

Lindad stop

10. Edit your config which you will find here:

~/.Linda/Linda.conf

Your config should be edited to look like this:

rpcuser=put-your-rpc-user-here
rpcpassword=put-your-rpc-password-here
rpcport=33821
rpcallowip=127.0.0.1
daemon=1
server=1
staking=0
listenonion=0
masternode=1
masternodeprivkey=put-your-masternode-key-that-you-generated-here
masternodeaddr=put-your-ip-address-of-vps-here:33820
addnode=104.238.159.161
addnode=45.32.77.164

11. Now make sure your VPS firewall has port 33820 open.

sudo apt-get install ufw
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw allow 33820
sudo ufw enable

A warning will prompt you saying that your SSH connection will be disrupted. Since we allowed ssh above, you don’t have to worry, but DO NOT forget to allow ssh or you will lock yourself out of your VM.

12. Start Linda again:

Lindad -daemon

13. Unencrypt your wallet:

Lindad walletpassphrase "the password you set above" 999999999

14. Check to make sure your 30000000 transaction has 15 confirmations:

Lindad listtransactions

15. If it does, start your masternode:

Lindad masternode start

You can check to make sure your MN is enabled:

Lindad masternode list|grep 

If you see this:

":33820" : 1

Then you successfully installed your new Linda masternode on Ubuntu 16 Linux.

Congrats!

16. BONUS STEP: Backup your wallet before you log out of your VPS.

Use any SFTP or SCP program to connect to your VPS, and backup your wallet.dat file to your local desktop or laptop. That file is located here:

~/.Linda/wallet.dat

Leave a Reply

Your email address will not be published. Required fields are marked *