Easy Masternode Setup

This guide is a step-by-step walkthrough on how to set up a single Galactrum masternode on a Ubuntu 16.04 or 18.04 server, which will be controlled from the wallet on your local computer.

Requirements

  1. A minimum of 1,000 ORE (+ transaction fee).
  2. A personal computer which will run the control wallet that holds your 1,000 ORE collateral.
  3. A masternode server (VPS) which will ideally run without interruptions.
  4. An SSH client.

Control Wallet Setup

We will first setup the control wallet which will be used to store the 1,000 ORE collateral. If you do not already have the Galactrum wallet on your PC, you can install the latest release here. Once the wallet has been installed, the blockchain is fully synced and enough ORE is present for the collateral, follow the steps below.

Step 1

First, we will configure a few useful settings.
Go to “Settings” -> “Advanced Settings”:

  1. Check “Enable coin control features”.
  2. Check “Show masternodes Tab”.
  3. Click “Save”.

Step 2

Next, we will create a new address and send exactly 1,000 ORE to it as collateral.

  • Go to “Receive” -> “My Addresses…” -> “New” and give the new address a label (e.g. MN1).
  • Copy the newly generated address and send to it exactly 1,000 ORE. Make sure the “Subtract fee from amount” option is NOT checked.
  • Wait for the transaction to receive at least 15 confirmations before proceeding.

Step 3

Go to “Tools” -> “Console” and type the following:

  1. masternode genkey
    • This will generate a KEY that looks like this: 7rtyHi8B3rf8k1cxvJD27Ffc9HGFCiY1Fy3eNaEMCAkkvQVdDAS.
  2. masternode outputs
    • The first element is the TXID and it looks like this: a2b2cf216d3009df2f632d9cba48c28213f321ea1e7997620124a2f290e1252a.
    • The second element is the VOUT and it is either a 1 or 0.

It is recommended to copy the KEY, TXID and VOUT into a notepad session as they will be needed later in the setup.

Step 4

Go to “Settings” -> “Open Masternode Configuration File”.
This will open a text file. Add a line to the bottom of the file:

ALIAS IP:6270 KEY TXID VOUT


Where ALIAS is any name you give the masternode, IP is the VPS IP address, and KEY, TXID and VOUT are the items generated in the previous step.
This will look as follows:

mn1 159.203.190.13:6270 7rtyHi8B3rf8k1cxvJD27Ffc9HGFCiY1Fy3eNaEMCAkkvQVdDAS a2b2cf216d3009df2f632d9cba48c28213f321ea1e7997620124a2f290e1252a 1

Save the configuration file and close it.

Step 5

NOTE: It is recommended that you create a backup of the wallet before proceeding. To do this, under the “Overview” tab in the wallet, select “Backup Wallet” and save the backup in a secure location (preferably on a separate device).

Step 6

Restart the wallet.

Creating the VPS

If you do not already have an account on a VPS provider, two commonly used providers are:

  1. DigitalOcean
  2. Vultr

Both links above will give you a $10 credit to get you started.
In this guide, DigitalOcean will be used for the setup.
Once an account has been created, follow the steps below.

Step 1

Create a new droplet.

Create droplet

Step 2

Choose the Ubuntu 16.04 x64 or Ubuntu 18.04 x64 distribution. Choose distribution

Step 3

Choose the server size. DigitalOcean's $5/mo option is sufficient.

Choose size

Step 4

Choose the datacenter region of your VPS.

Choose region

Step 5

Give your server a name and create the server.

Choose name

Connecting to the VPS

To connect to the VPS, we need to use an SSH client. A commonly used client is PuTTY.
If you don’t have PuTTY installed, download the latest installer here.
Run the installer and follow the installation instructions.
Once complete, launch the application and follow the steps below.

Step 1

From your DigitalOcean dashboard where you previously created a droplet, copy your VPS IP address.

Copy IP

Step 2

In the PuTTY window, do the following:

  1. Paste the IP address in the “Host Name” field.
  2. Give your login session a name.
  3. Click “Save” to save the information for future use.
  4. Click “Open” to access your VPS.

Setup PuTTY

Step 3

Enter root as the login username.
DigitalOcean will send you an email containing the droplet information, as well as a temporary password for the first login.
Select the password from your email and CTRL + INSERT to copy it. Go to your PuTTY terminal and SHIFT + INSERT to paste it.
On the first login, you will be required to change your password.

VPS Configuration

Once you’ve successfully logged in to the VPS, run the following command in the terminal:

wget https://raw.githubusercontent.com/galactrum/galactrum/master/contrib/masternode/install_masternode.sh && chmod +x install_masternode.sh && ./install_masternode.sh && source ~/.bash_aliases

Note: select the above command and CTRL + INSERT to copy it. Go to the VPS terminal and CTRL + SHIFT to paste it.

  • When prompted, enter your private key which was generated in the control wallet console in a previous step.
  • When prompted, enter the VPS IP address which can be copied from your DigitalOcean dashboard.

The script will ask for a few more recommended options.

Start the Masternode

In your local wallet, there should now be a “Masternodes” tab.
Select your masternode and click “Start alias”.

In your VPS, enter the following command:
galactrum-cli masternode status

If the setup was successful, the output will look as follows:

{
  "outpoint": "a2b2cf216d3009df2f632d9cba48c28213f321ea1e7997620124a2f290e1252a-1",
  "service": "159.203.190.13:6270",
  "payee": "GPmosFT4XsGHGSszgWtmphcyHpM2Rjaa9W",
  "status": "Masternode successfully started"
}


Congratulations! your setup should now be complete! If you experienced any issues, ask for help in Discord.

NOTE: Your masternode will likely start out with a PRE_ENABLED status. This is normal. Please allow at least hour before the status changes to ENABLED.

×

Subscribe

The latest tutorials sent straight to your inbox.