Latest Tweets
Follow us on Twitter

INSaNeLY easy INSN Masternode VPS guide for Windows

 

Intro

The 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 INSN software. In that case, we recommend redoing everything from scratch.

If you are a bit more advanced in your expertise with servers then this guide most likely is not for you.

Check out the INSN Masternode setup guide here https://github.com/CryptoCoderz/INSN-MN or do your own custom setup.

If you get a VPS with Digital Ocean or Vultr, you can always reset the server and start from scratch. So if something goes wrong during the server setup – feel free to hit the reset button in your Control Panel and start again.

Now, before you get to the server part, start by configuring your local wallet.

 

Part 1 – Local Wallet Preparation

In order to setup the Masternode you first need to prepare your local wallet by transferring 50,000 INSN 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.

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.

 

Transfer 50,000 INSN

Now you need to transfer 50,000 INSN to this address. This needs to be exactly 50,000, not 50,001 or 100,000. The INSN 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.

Masternode transaction details

Next you need to get the transaction details for the 50,000 INSN 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.

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.
  • 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=

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-windows
  • Digital Ocean: https://www.digitalocean.com/community/tutorials/how-to-log-into-your-droplet-with-putty-for-windows-users

Start 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”.

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 :10255 – this is the port on which your INSN Masternode runs. Given the example above, you would fill

10.0.7.12:10255

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:
####################################################
# INSaNeLY easy INSaNe 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 ;)
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 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/.INSN/ && echo -e "rpcuser=insane\nrpcpassword=$RPCP\nrpcallowip=localhost\nrpcport=10257\nport=10255\nexternalip=$MY_IP\nserver=1\nlisten=1\ndaemon=1\nlogtimestamps=1\ntxindex=$TXID\nmaxconnections=500\nmnconflock=1\nmasternode=1\nmasternodeaddr=$MY_IP:10255\nmasternodeprivkey=$MNPRVKEY\nstake=0\nstaking=0\nseednode=insn.cryptocoderz.com" > /root/.INSN/INSaNe.conf && mkdir -p /root/dev && cd /root/dev && git clone https://github.com/CryptoCoderz/INSN.git && cd /root/dev/INSN/src && make -f makefile.unix USE_UPNP= && strip INSaNed && mv INSaNed /usr/local/bin/ && cd /root/ && echo "@reboot root /usr/local/bin/INSaNed" >> /etc/crontab && reboot
###################################################
## GOOD BYE AND GOOD LUCK
###################################################

 

INSANE CRYPTO SYSTEMS LTD, 71-75 Shelton Street, Covent Garden, London, WC2H 9JQ. Company Certificate. Contact by email or digital correspondence only please, we are a paper free company. Website Disclaimer
.