Easy Masternode setup for GanjaCoin
Free month VPS when u use my referral link https://m.do.co/c/883864bdd098The goal of this guide is to allow you to setup a Masternode on a VPS without much knowledge of a Linux server. After you have completed the installation you will not have to touch the VPS again unless there is an upgrade to the MRJA software. In that case, we recommend redoing everything from scratch.
Part 1 – Local Wallet Preparation
In order to setup the Masternode you first need to prepare your local wallet by transferring 30,000 MRJA in a special way. Here is how to do it.
First you need to create a dedicated address for your masternode and also create a private key that will act as an identifier between your local wallet and the VPS wallet.
Masternode Address and Key
Open your wallet and enter the debug console (Help->Debug Window->Console). From here you will have to issue a few commands to initialize the masternode in the wallet.
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.ganjacoinpro.com%2Fdownloads%2Fmasternode1.png&t=665&c=X_525TCh336x5g)
You have to enter 2 commands and copy the output from these commands into a text file so you keep track of them. The 2 commands are:
getaccountaddress mn01
and
masternode genkey
Copy those values into the text document for future perusal. If you are installing multiple masternodes simply change the mn01 to something else. It has to be a unique identifier, but ensure it is one word, no spaces allowed.
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.ganjacoinpro.com%2Fdownloads%2Fmasternode2.png&t=665&c=iGSrU1S0wQRNww)
Transfer 30,000 MRJA
Now you need to transfer 30,000 MRJA to this address. This needs to be exactly 30,000, not 30,001 or 100,000. The MRJA wallet will add the fee automatically. As you are transferring these coins to yourself, within your wallet from one address to another, you will only see the Transaction fee in your transaction list.
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.ganjacoinpro.com%2Fdownloads%2Fmasternode3.png&t=665&c=BDmMSgP1RRPuWQ)
Masternode transaction details
Next you need to get the transaction details for the 30,000 MRJA transaction. This information will be used to link Private Key, Address and Transaction together between the local wallet and the VPS wallet. The command required for this is
masternode outputs
Copy those values into the same text document. Masternode outputs will have a long cryptic looking text field and a number.
The text field is the transaction id, the number is the output index. Remember those for later.
NOTE: You will have to wait for 1 confirmation on the transaction before masternode outputs displays anything.
![](https://ip.bitcointalk.org/?u=https%3A%2F%2Finsanecoin.com%2Fwp-content%2Fuploads%2F2017%2F04%2FScreen-Shot-2017-07-23-at-8.23.00-PM.png&t=665&c=lvoClkZzzRyj8g)
Server setup
Now you have completed the first part of setting up the Masternode. Next you will install the VPS. For this you will need:
A Ubuntu 16.04 x64 VPS with 512MB Ram and 1 CPU.
Both Vultr and Digitalocean are confirmed to work fine
Vultr:
http://www.vultr.com/ – current cost $2.50 if available, else $5.00
Digital Ocean:
https://www.digitalocean.com – current cost $5.00
Access to your VPS as root
Putty to connect to your server
The VPS install script from below.
First, you need to copy the setup script into notepad so you can modify it. Don’t worry, the modifications you have to make are minor.
Specify Output Index and Masternode Key
All you need now is the output index and the private key. Find the 2 lines
TXIDX=
MNPRVKEY= GENKEY
And add the output index and private key directly after the = sign. For example this is what mine looks like:
TXIDX=1
MNPRVKEY=2sErYLSpQa8K6mVJ2ZTEp4ifkDmLp227uvKd24ifbhJ6mwhwZw9
That is all. Leave the file open, you will need to copy and paste it later.
Connect to the server
Now open putty and connect to your VPS. Both Vultr and Digital Ocean provide guides on how to accomplish this:
Vultr:
https://www.vultr.com/docs/connecting-to-your-server-with-ssh-via-putty-on-windowsDigital Ocean:
https://www.digitalocean.com/community/tutorials/how-to-log-into-your-droplet-with-putty-for-windows-usersStart installation on the VPS
Once connected all that remains is to copy the text file with the setup script and paste it into your Putty console. In order to paste in Putty, you need to right click into the black screen.
Your VPS will now configure and install the INSN software and restart. The whole process will take between 20 to 30 minutes.
Complete Wallet setup
In the meantime, you can prepare your Wallet Masternode. Open the Masternode screen and click “Create”.
NOTE I KNOW IT SAYS 50k MRJA and PORT 10255 please ignore that as its 30000 and port 10559
![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fwww.ganjacoinpro.com%2Fdownloads%2Fmasternode4.png&t=665&c=nKJsfX1JCTbE5w)
A screen pops up where you fill in all the details you collected in the previous steps. One field is new: Address.
The Address is the IP address of your VPS server plus the port used for the masternode. This is quite easy to get, we will use the VPS provider to get the correct details. Check in the control panel of your provider – the IP address of your server will be listed there, for example 10.0.7.12. Add to this :10559 – this is the port on which your INSN Masternode runs. Given the example above, you would fill
10.0.7.12:10559
Into Address field of your Masternode setup screen.
Start Masternode
Once you have filled in the details ensure the following:
Your Server setup is finished and the server has completed a restart
Your transaction has 15 confirmations
Congrats! You are now ready to start your Masternode.
VPS installation script
VPS Install Script:
####################################################
# GanjaCoin VPS Installation
####################################################
# 1. Copy everything into a text file
# 2. Modify TXID and MNPRVKEY below as per guide
# 3. Connect to your server with Putty as root
# 4. Copy/Paste from your textfile into putty
# NOTE: To paste into putty, right click
# 5. Wait until your server reboots
# 6. Start your MN wallet
####################################################
TXID=
MNPRVKEY=
####################################################
####################################################
####################################################
####################################################
####################################################
####################################################
####################################################
# DO NOT TOUCH ANYTHING BELOW
MY_IP=`ip route get 1 | awk '{print $NF;exit}'`
RPCP=$(date +%s | sha256sum | base64 | head -c 32
![Wink](https://bitcointalk.org/Smileys/default/wink.gif)
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=insn.cryptocoderz.com" > /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
###################################################
## GOOD BYE AND GOOD LUCK
###################################################