Monaco Coin Masternode Setup with VPS - 89% ROI

Great Tutorial on how to setup your Monaco Coin Masternode.

Intro Video on it!

Things Needed:

VPS From Vultr (5$ Vps perfect . You can add more than 1 masternode on there. (Not the same masternode tho) ) : https://goo.gl/mxcb24
1000 Tokens from Cryptopia : https://goo.gl/auqctL
FTP : fillezilla
Putty : http://www.putty.org/

Once you have created and launched your masternode VPS, login as root and create a new user:
( also remember to do your security updates and make use of RSA ssh keys. ( will do a video on all of this )

Step 1
Run these commands:

adduser newUsername
usermod -aG sudo newUsername

Step 2:
Run these commands to make a swapfile (for small VPS) :

sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
sudo mkswap /var/swap.img
sudo swapon /var/swap.img

Run free again to confirm you now have a swapfile. Note: If you chose a different server
option from Vultr, with less RAM, you’ll need a LARGER swapfile, i.e. set the count
parameter to something larger like 2048, 4096 etc. If the compilation steps fails partway
through this is usually the reason.

To make the swap file persist when the server is rebooted:

sudo chmod 0600 /var/swap.img
sudo chown root:root /var/swap.img
sudo nano /etc/fstab

Append the following line to the end of the file:

/var/swap.img none swap sw 0 0

Save the file and exit

Step 3: Firewall ( can do this step at anytime )

sudo ufw allow OpenSSH
sudo ufw allow 24157
sudo ufw allow ssh/tcp
sudo ufw limit ssh/tcp
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw enable

Step 4 install dependencies ( can do this with root if you want )

sudo apt-get install git

sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libboost-all-dev unzip libminiupnpc-dev python-virtualenv
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils

Step 4.1

add-apt-repository ppa:bitcoin/bitcoin
If you have error message : "add-apt-repository: command not found"
Install :
apt-get install software-properties-common && add-apt-repository ppa:bitcoin/bitcoin
apt-get update
apt-get install libdb4.8-dev libdb4.8++-dev

Step 5 Install the software
wget https://github.com/monacocoin-net/monacoCoin-Core/releases/download/0.12.1.5.1/monacoCoinCore-0.12.1.5.1-linux64-cli.taz.gz
tar xzvf monacoCoinCore-0.12.1.5.1-linux64-cli.taz.gz
chmod +x monacoCoind monacoCoin-tx monacoCoin-cli
./monacoCoind

Then stop the node :
./monacoCoin-cli stop

Now we need to edit the conf:
cd
nano .monacoCoinCore/monacoCoin.conf

Then copy and paste the following:
rpcuser= rpc user name
rpcpassword = rpc password
masternodeprikey = Private key generate before with command “masternode genkey”
externalip = Your VPS Public IP address

Now we save then restart the wallet and we wait it the get fully synced

Step 6 When your wallet is synced, you need to setup the masternode

./monacoCoin-cli masternode genkey (save to text File )

Step 7 Lets create a new receiving address

./monacoCoin-cli getaccountaddress 0 (save to text File )

This address will receive your coins. Save also this one in the txt file.
Open your Windows wallet if it isnt yet and send exactly 1000 crave to this address. You'll have to pay a fee in addition.
You now need to wait for 10 confirmations before we continue.

Now we need to edit the conf again:
./monacoCoin-cli stop
cd
nano .monacoCoinCore/monacoCoin.conf

Make sure it looks like this:

rpcuser=USER HERE
rpcpassword=PASSWORD HERE
rpcallowip=127.0.0.1
server=1
listen=1
daemon=1
maxconnections=24
masternode=1
masternodeprivkey=PRIV KEY HERE
externalip=YOUR VPS PUBLIC IP HERE

save and start node
./monacoCoind

Now lets check to see that its operationsal and Sync:
./monacoCoin-cli mnsync status

You should see: "AssetID: 999" then you good to go.

Step 8 Now we need to setup Sentinel.
cd
git clone https://github.com/monacocoin-net/sentinel.git && cd sentinel
virtualenv ./venv
./venv/bin/pip install -r requirements.txt

Now Customize the config.
nano sentinel.conf

#specify path to monacoCoin.conf or leave blank
#default is the same as monacoCoinCore
monacoCoin_conf=/home/YOUR HOME DIRECTORY/.monacoCoinCore/monacoCoin.conf
#valid options are mainnet, testnet (default=mainnet)
network=mainnet
#network=testnet
#database connection details
db_name=database/sentinel.db
db_driver=sqlite

Save and exit

Now lets check if its valid:
./venv/bin/py.test ./test

Should say collect 20 Items - passed!

Lets install the crontab now:
crontab -e
*****cd /home/YOURUSERNAME/sentinel && ./venv/bin/python bin/sentinel.py >/dev/null 2>&1

save and exit

Now lets Activate the Masternode:

./monacoCoin-cli masternode outputs

Copy the code that appears

(ex : 09d8f080sdjsdoijdfdsdfsdjsjopsfdijfpsodfpsdf7986fs9dfs07fs) ->This corresponds to the id of your transaction 1000MCC see

Now edit the conf
nano .monacoCoinCore/masternode.conf

Format: alias IP:port masternodeprivkey collateral_output_txid collateral_output index

#Masternode config file
#Format: alias IP:port masternodeprivkey collateral_output_txid collateral_output_index
#Example: mn1 127.0.0.2:19999 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0
mn1 IP HERE:24157 df9df9dflsd9080asdasdasdasdasdadfasfsafasfasfffsaf 09d8f080sdjsdoijdfdsdfsdjsjopsfdijfpsodfpsdf7986fs9dfs07fs 0

Save file and restart your wallet

Now run

./monacoCoin-cli masternode start-alias mn1

You can check if its running with :
./monacoCoin-cli masternode status

I will do a full video on this next week. Please reach out if you guys get stuck! Peace and love guys

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now