How to setup a GanjaCoin Masternode (GanjaCoin / MRJA Masternodes)

ganjacoin masternode setup

Guide / Tutorial on how to setup a remote GanjaCoin masternode to earn GanjaCoin / MRJA yield.

Prerequisites:

  • Ubuntu VPS from VULTR (cheapest VPS is enough)
  • GanjaCoin Wallet on local Computer

Definitions:
Controllers Wallet = Wallet on local Computer
Masternode Wallet = Wallet on remote VPS Server

GanjaCoin Controllers Wallet Setup

First open the GanjaCoin wallet and create a new address called “mn01”.

Then open Debug Window.

In this debug window, go to “Console” and type in “masternode genkey”. Save the output to a text file called “masternode.txt”.

Then, go to tab “send” and send EXACTLY 30,000 MRJA to the “mn01″address.

Open the debug window again and type in “masternode outputs”. Save both values in the masternode.txt file.

Ubuntu VPS Setup

If you don’t have a VPS already, get the 1GB Ram VPS from Vultr:  Rent VPS

Install Ubuntu OS onto it. (Ubuntu 16.04 x64 for example)

Connect to your Ubuntu VPS via SSH and update & upgrade the server first.

apt-get update
apt-get upgrade

Now add a user and add him in the sudoers group so he has root access.

adduser ganjaman
adduser ganjaman sudo

Now change to user “ganjaman” and setup SSH keys for enhanced Security.

su ganjaman

ssh-keygen -b 4096
cd .ssh
cat id_rsa.pub >> authorized_keys

Now save the private key “id_rsa” to your clients computer so you can authenticate to the server with the SSH Certificate. (You must convert id_rsa to a “.ppk file in order to use the privatekey with Putty)

Restart the SSH Server and test if the authentication with the private key works.

sudo service ssh restart

If it works, edit the SSH config file to disable password authentication & root login.

sudo nano /etc/ssh/sshd_config

Change following Values in the file.

PasswordAuthentication no
UsePAM no
PermitRootLogin no

GanjaCoin Masternode Setup

Now we install GanjaCoin onto the ubuntu vps server.
Copy the setup script below into a text file and modify / edit the “TXID=” & “MNPRVKEY= ” to your Values.
Simply input the values right after the “=”.

TXID = 2. value of output from “masternode outputs” command in debug window
MNPRVKEY =
output of “masternode genkey” command

####################################################
TXID=
MNPRVKEY=
####################################################
MY_IP=ip route get 1 | awk '{print $NF;exit}' RPCP=$(date +%s | sha256sum | base64 | head -c 32 ;) export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get -y upgrade && apt-get -y install libwww-perl build-essential libtool automake autotools-dev autoconf pkg-config libssl-dev libgmp3-dev libevent-dev bsdmainutils libdb++-dev libminiupnpc-dev libboost-all-dev libqrencode-dev unzip && fallocate -l 4G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && echo "vm.swappiness=10" >> /etc/sysctl.conf && echo "/swapfile none swap sw 0 0" >> /etc/fstab && mkdir -p /root/.MRJA/ && echo -e "rpcuser=ganjamasternode\nrpcpassword=$RPCP\nrpcallowip=localhost\nrpcport=10560\nport=10559\nexternalip=$MY_IP\nserver=1\nlisten=1\ndaemon=1\nlogtimestamps=1\ntxindex=$TXID\nmaxconnections=500\nmnconflock=1\nmasternode=1\nmasternodeaddr=$MY_IP:10559\nmasternodeprivkey=$MNPRVKEY\nstake=0\nstaking=0\nseednode=138.197.44.71" > /root/.MRJA/GanjaProject.conf && mkdir -p /root/dev && cd /root/dev && git clone https://github.com/legends420/GCFORK.git && cd /root/dev/GCFORK/src && make -f makefile.unix USE_UPNP= && strip Ganjad && mv Ganjad /usr/local/bin/ && cd /root/ && echo "@reboot root /usr/local/bin/Ganjad" >> /etc/crontab && reboot ###################################################

After you edited the Setup Script above, copy the modified setup Script and connect to your VPS via Putty and paste it into your VPS. You must run the Setup Script as root!

Final GanjaCoin Masternode Setup Step

Back on the local Computer, open GanjaCoin Wallet and go to “masternodes” tab.
Click “Create..” and input all the values. The last 3 values are the ones you stored in the “masternode.txt” file.

 

Alias = Name of Masternode
Address = IP address & port of remote ubuntu masternode vps. port = 10559 
PRIVKEY = output of “masternode genkey” command
TXHASH  = 1. value of output of “masternode outputs” command
Output Index = 2. value of output from “masternode outputs” command in debug window

Now click “Start” and the Masternode should start successfully!

I hope i could help you on how to setup a GanjaCoin Masternode! 🙂
If questions, please comment below 🙂

You May Also Like

About the Author: n1njawtf

Serial Crypto Entrepreneur with a variety of Crypto related Websites. Passive Income, Lead Generation & Investing is my passion. My name is Markus Fleischli, I am 19 years old and currently living in Switzerland. Coming from an IT Background, I discovered Bitcoin in 2014. Bitcoin and Altcoin Investor since then. Operator of multiple Cryptocurrency Masternodes.

5 Comments

  1. How do you check masternode status from debug console? My masternode only received one payment over several days and looks like it is turning off when I close my control wallet.

  2. Hi,
    i successfully started my masternode but from time to time it stops running. Sometimes the wallet is locked (although i had it unlocked), sometimes not. Do you know what could be causing the masternode to stop running?

  3. Can you help me pls. If i type this comand line:

    su ganjaman

    ssh-keygen -b 4096
    cd .ssh
    cat id_rsa.pub >> authorized_keys

    Then iget this error message:

    root@63978:~# su ganjaman
    ganjaman@63978:/root$ ssh-keygen -b 4096
    Generating public/private rsa key pair.
    Enter file in which to save the key (/home/ganjaman/.ssh/id_rsa): cd .ssh
    Enter passphrase (empty for no passphrase):
    Enter same passphrase again:
    Saving key “cd .ssh” failed: Permission denied

    why it denied and how can i fix it

    1. You entered “cd .ssh” as the file destination

      I am guessing you are a windows user. In which case, create the key from windows power shell, then issue an scp to send that file that ends up in your pc’s “c:\users\{name}/.ssh/id_ed25519.pub to the VPS to “/home/{user}.ssh/id_ed25519.pub”

      In this example, I started in the c:\user\{name}\.ssh directory:
      scp id_ed25519.pub {vpsuser}@{vps.ip.address.sample}:/home/{username}/.ssh/id_ed25519.pub

      Next, login as the user to which you send above /home/{username} and enter the /.ssh directory.

      enter:
      cat id_ed25519.pub >> authorized_keys

      followed by:
      sudo service ssh restart

      Exit and try to login as that user. Windows ssh should pickup the key and log in with just the user name with:
      ssh -i id_ed25519 {user}@{vps.ip.address.sample}

Leave a Reply

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