Masternode Server Setup

A step by step guide howto create own SnowGem Masternode Server

(Windows wallet & Linux VPS)

There are many different ways to set-up a masternode. This method requires a Virtual Private Server, eliminating the need to run your own computer 24/7. Your funds are also safely stored on your local wallet, not the VPS. The following requirements are needed to set-up a Masternode using this guide.

Requirements

1 Masternode will work on 1024 RAM or more, 1 Core CPU, 20 GB or more HDD.

Image
1

A fully synced local wallet

You need to download wallet from Downloads section and wait for sync.
2

10,000 XSG + 1 XSG for transaction fees

We recommend to have the funds in your wallet from the beginning
3

A Virtual Private Server (VPS)

We recommend to purchase from Vultr or Time4VPS.eu
There are 2 ways how to setup Masternode server. First option is to use our automated script, which can be downloaded here. Second option is configure it manually. Both options are designed for Ubuntu OS.
#1 Create a MasterNode Address (ALIAS) & send collateral

Open the Simple wallet, copy collateral address to notepad (do not use z address).

Next you will need to send the collateral (EXACTLY 10000 XSG) to this address.

If you have “bad-txns-oversize” error when sending the coin, please following the guide from https://snowgem.org/faq

 

send coin

Wait for 15 confirmations, you can check the transaction on https://insight.snowgem.org/ or https://explorer.snowgem.org/

#2 Get Masternode Private Key

Go to Masternode tab (On the wallet which you received 10000 XSG) and click on “Get MN Priv Key” button, then copy the private key to notepad.

The privakey looks like this: 5JJaWWprqeNLwEYd5JucbUne68m51yumu5Peen5j5hrg4nrjej4

privkey

#3 Get Masternode Outputs

Click on “Get Outputs” button, then copy outputs to notepad

The outputs looks like this: 8b70363be7e585dde357124e67b182da25053d2f45c8454t4t45e4r5edddgdr4 0


outputs

#4 Configure Masternode

Click on “Configure Masternode” button then put your data here – Alias name must not contain white space

Then Click on Configure. A restart message will be appeared and you need to restart your wallet to apply the new configuration.


configure

Excellent, you’ve just done the local setup, your MN will be listed under Masternode tab.
First stage done!
#5 Prepare VPS

Open Putty then put your VPS IP address and login with VPS credentials

putty 300x293

Run following commands:

sudo apt-get update
sudo apt-get -y install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip
sudo apt-get -y install git python python-zmq zlib1g-dev wget bsdmainutils automake curl unzip nano vim
mkdir ~/.snowgem
touch ~/.snowgem/snowgem.conf
nano ~/.snowgem/snowgem.conf

#6 Copy snowgem.conf data

Back to local machine, Click on Tools -> Copy snowgem.conf data

snowgemconf 1


Paste it to putty window

conf 1


Then use combo Ctr + X, then type Y then Enter

#6 Create alias data

Go to putty (shell) and run the following commands:

touch ~/.snowgem/masternode.conf
nano ~/.snowgem/masternode.conf

Back to local machine, click on your alias, right click and choose “Copy alias data”

alias data 1


Paste it to putty window

masternode


Then use combo Ctr + X, then type Y then Enter


Almost done the configuration, let’s move to the next part.

#6 Compile wallet

Go to putty (shell) and run the following commands:

wget https://github.com/Snowgem/SimpleWallet/releases/download/2.0.0f/snowgemparams.zip -N
unzip -o snowgemparams.zip -d ~/

Setup virtual memory:

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

Making Swap file permanent (optional): We have our swap file enabled, but when we reboot, the server will not automatically enable the file. We can change that by modifying the fstab file:

sudo nano /etc/fstab

At the bottom of the file, you need to add a line that will tell the operating system to automatically use the file you created:

/swapfile none swap sw 0

Build the binary (We suggest to build the binary to get the most compatible wallet version with your system):

git clone https://github.com/Snowgem/Snowgem.git snowgem-wallet
cd snowgem-wallet
chmod +x zcutil/build.sh depends/config.guess depends/config.sub autogen.sh share/genbuild.sh src/leveldb/build_detect_platform
./zcutil/build.sh --disable-rust

Take a coffee then waiting for the build, it takes 10-20 mins, depends on your VPS

Run the following command to start the wallet:

./src/snowgemd -daemon

Wait for the sync finish.

Run the following command to check masternode syncing process:

./src/snowgem-cli masternodedebug

If the response is: “Not capable masternode: Hot node, waiting for remote activation.” you can move to next step.

#7 Start Masternode

In your local wallet, select your Alias then click on Start masternode button.


startmn


You will get the success message

Then click on Start Alias button:


startalias


You will get another success message.

Your masternode is up and runs.

Wait for some minutes, your masternode will be listed.

 

Go to VPS, run the following command:

./src/snowgem-cli masternodedebug

If the response is: “Masternode successfully started“, you’re finished.
DONE! :)

As an additional service, you can look to setup monitoring of your Masternode VPS. See our other guides for details.

snowgem footersm2

SnowGem maintains that there is no central authority, the system’s decisions will be controlled by nodes in the network. The network is open to anyone, anywhere in the world. We are looking forward to a future where transferring money is no longer complicated and troublesome. 

Recent Posts

Jul 10, 2018 We are on CMC!
Jul 07, 2018 Security update
Jul 05, 2018 Fork Celebration