DIGIMONEYMULTIPLE MASTERNODE ON THE SAME VPS SETUP

HOT WALLET ON LINUX VPS

This tutorial shows the steps required to setup multipleDigimoney Masternodes using the same external IP address on a Linux server, using the same VPS.

REQUIREMENTS

• 2500 DGM for each Masternode

Linux and network knowledge, if you don’t have basic linux and network ask some friend who you trust because the process includes sensitive information.

• SSH Client to connect to your server + root access

• VPS Linux server

UBUNTU 16.0.4 64 Bits operating system Recommended

1 GHZ CPU

1 GB RAM

Fixed Ip address, if you have a dynamic you have to reconfigure the parameters if it change.

VERY IMPORTANT : FIREWALL MUST ALLOW CONNECTIONS ON ALL PORTS USED FOR MASTERNODES33290,33390,etc

Create Swap file if you have less than 2GB RAM, follow the bellow procedures using root user.

dd if=/dev/zero of=/swapfile bs=1024 count=2097152

chmod 0600 /swapfile

mkswap /swapfile

swapon /swapfile

edit /etc/fstab to include the following entry:

/swapfile swap swap defaults 0 0

PREPARING THE MASTERNODE SERVER(VPS LINUX)

Open a shell and type the following commands to install the dependencies needed for the

digimoney daemon:

sudo apt-get update

sudo apt-get install build-essential libtool automake autoconf

sudo apt-get install autotools-dev autoconf pkg-config libssl-dev

sudo apt-get install libgmp3-dev libevent-dev bsdmainutils libboost-all-dev

sudo add-apt-repository ppa:bitcoin/bitcoin

sudo apt-get update

sudo apt-get install libdb4.8-dev libdb4.8++-dev

sudo apt-get install libminiupnpc-dev

sudo apt-get install git

INSTALLING THE DEAMON(VPS LINUX)

It is recommended to build your wallet from source available on Github.

For the purpose of this tutorial, we will install the digimoney deamon from Github.

Type the following commands:

git clone

After finishing go to the digimoney folder and execute the commands:

cd digimoney/

cd src/

make -f makefile.unix

strip digimoneyd

cp digimoneyd /usr/bin

Now you have digimoneyd on main path to be used for all MN users

CREATING LINUX USERS

Create 1 user for each masternode ex.

adduser dgm1

adduser dgm2

CONFIGURE DAEMON FOR EACH USER

su - dgm1

Create the file

/home/dgm1/.digimoney/digimoney.conf

use your favorite editor vi, nano, vim, etc

include the lines: feel free to change username and password

rpcuser=digimoneyrpc

rpcpassword=anypassword

rpcallowip=127.0.0.1

listen=1

server=1

daemon=1

masternode=1

Important information here:

If your VPS provider assign an internal(non valid) IP to your network interface you have to include the parameter:

masternodeaddr=yourexternalip:33290

Examples:

Amazon AWS – parameter required because an internal IP (172.31.x.x) is assigned to the network interface

Vultr – parameter NOT required because the valid external IP is assigned to the network interface

Save and start the daemon for the 1st time

digimoneyd

Digimoney server starting

Wait for sync

digimoneyd getinfo

{

"version" : "v1.0.0.3-60010-dgm1",

"protocolversion" : 60010,

"walletversion" : 60000,

"balance" : 0.00000000,

"darksend_balance" : 0.00000000,

"newmint" : 0.00000000,

"stake" : 0.00000000,

"blocks" : 7320,

"timeoffset" : 0,

"moneysupply" : 575305.00000000,

"connections" : 3,

"proxy" : "",

"ip" : "0.0.0.0",

"difficulty" : 4658.41159174,

"testnet" : false,

"keypoololdest" : 1516739225,

"keypoolsize" : 101,

"paytxfee" : 0.00001000,

"mininput" : 0.00000000,

"errors" : ""

}

Generate MN key

digimoneyd masternode genkey

Take note of the key

Edit /home/dgm1/.digimoney/digimoney.conf file and include the parameter :

masternodeprivkey=(Insert your masternode key we generated above)

stop and start daemon

digimoneyd stop

digimoneyd

VERY IMPORTANT : FIREWALL MUST ALLOW CONNECTIONS ON PORT33290

Before proceed you have to make sure the firewall is ok.

You can use put your vps ip address and port 33290

If you have firewall problems fix before proceeding to the next step.

PREPARING THE WALLET

Generate the first masternode address

getnewaddress MN1

Send EXACTLY 2500DGM to the earlier generated address and wait 15 confirmations.

Start the first masternode

digimoneyd masternode start

Result : Now you have the first MN running on user dgm1 using port 33290

CONFIGURE 2nd MASTERNODE using dgm2 user

su - dgm2

Create the file

/home/dgm2/.digimoney/digimoney.conf

use your favorite editor vi, nano, vim, etc

include the lines: feel free to change username and password

rpcuser=digimoneyrpc

rpcpassword=anypassword

rpcallowip=127.0.0.1

listen=1

server=1

daemon=1

masternode=1

Important information here:

If your VPS provider assign an internal(non valid) IP to your network interface you have to include the parameter:

masternodeaddr=yourexternalip:33390

Examples:

Amazon AWS – parameter required because an internal IP (172.31.x.x) is assigned to the network interface

Vultr – parameter NOT required because the valid external IP is assigned to the network interface

Save and start the daemon for the 1st time

Important here, we are using different user ( dgm2 ) and different port, every daemon command must be executed with different parameters ex.

digimoneyd -port=33390 -rpcport=33391

digimoney server starting

Wait for sync

digimoneyd -port=33390 -rpcport=33391getinfo

{

"version" : "v1.0.0.3-60010-dgm1",

"protocolversion" : 60010,

"walletversion" : 60000,

"balance" : 0.00000000,

"darksend_balance" : 0.00000000,

"newmint" : 0.00000000,

"stake" : 0.00000000,

"blocks" : 7320,

"timeoffset" : 0,

"moneysupply" : 575305.00000000,

"connections" : 3,

"proxy" : "",

"ip" : "0.0.0.0",

"difficulty" : 4658.41159174,

"testnet" : false,

"keypoololdest" : 1516739225,

"keypoolsize" : 101,

"paytxfee" : 0.00001000,

"mininput" : 0.00000000,

"errors" : ""

}

Generate MN key

digimoneyd -port=33390 -rpcport=33391masternode genkey

Take note of the key

Edit /home/dgm1/.digimoney/digimoney.conf file and include the parameter :

masternodeprivkey=(Insert your masternode key we generated above)

stop and start daemon

digimoneyd -port=33390 -rpcport=33391stop

digimoneyd-port=33390 -rpcport=33391

VERY IMPORTANT : FIREWALL MUST ALLOW CONNECTIONS ON PORT33390

Before proceed you have to make sure the firewall is ok.

You can use put your vps ip address and port 33390

If you have firewall problems fix before proceeding to the next step.

PREPARING THE WALLET

Generate the first masternode address

digimoneyd -port=33390 -rpcport=33391getnewaddress MN2

Send EXACTLY 2500DGM to the earlier generated address and wait 15 confirmations.

Start the first masternode

digimoneyd -port=33390 -rpcport=33391 masternode start

Result : Now you have the second MN running on user dgm2 using port 33390

Notes:

If you have more MNs to run on the same VPS/IP create another user dgm3 , dgm4, dgm5, etc for example and increment the port like 33490 and 33491 , 33590 and 33591 etc

Follow the same procedure for the other users.