Masternode Setup Instructions Linux Server
Use the following instructions to setup a Novacash masternode on Ubuntu Server 18.04 or higher.
NOTE: Make sure your wallet is encrypted!
Prepare your VPS
Install Ubuntu Server 18.04 on a VPS.
Update your Ubuntu machine:
sudo apt-get update
sudo apt-get upgrade
Install the required dependencies:
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libboost-all-dev libboost-program-options-dev
sudo apt-get install libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler unzip software-properties-common
Install Berkeley DB:
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
Download the daemon and tools:
wget "http://novabit.cash/downloads/novacash-daemon-linux64.tar.gz" -O novacash-daemon-linux64.tar.gz
wget "http://novabit.cash/downloads/novacash-core-linux64.tar.gz" -O novacash-core-linux64.tar.gz
Extract the tar files:
tar -xzvf novacash-daemon-linux64.tar.gz
tar -xzvf novacash-core-linux64.tar.gz
Install the daemon and tools:
sudo mv novacashd novacash-cli novacash-tx /usr/bin/
Create the config file:
mkdir $HOME/.novacash
nano $HOME/.novacash/novacash.conf
Paste the following lines in examplecoin.conf:
#===
rpcuser=rpc_novacash
rpcpassword=laz59maro7zzfiz83o89kiv29343clwpxp71qf33
rpcallowip=127.0.0.1
#===
listen=1
server=1
daemon=1
maxconnections=64
#===
#masternode=1
#masternodeprivkey=
externalip=xxx.xxxx.xxx.xxx
#===
Change the rpcpassword.
Leave the fields “masternode” and “masternodeprivkey” commented out.
Replace the text “xxx.xxx.xxx.xxx” with the external IP address of your VPS.
Start your node with the following command:
novacashd
Wait until the daemon has finished downloading the blockchain.
Send the collateral
Open your wallet and wait until your wallet has downloaded the blockchain.
Go to “Tools”.
Click “Debug console”.
This is the console where you will execute all commands.
Create a new masternode private key:
createmasternodekey
Example output:
75H4ExZwdcVMDBt4rKMnB1sYys24pxgyi2A34ZwcAB2BQmc8L3A
Show your collateral address:
getaccountaddress "MN1"
Example output:
NVbiwjDNK8mQsFJAWroYizYc12iGspPs7s
Transfer the required amount of coins (10,000) to the “collateral address” that you created using the command <getaccountaddress "MN1">.
Wait until the transaction has the required masternode confirmations (15).
Go to “Tools”.
Click “Debug console”.
Enter the following command:
getmasternodeoutputs
Example output:
[
{
"txhash": "506a242ccbfd2555bcd9cff5f4041752c911f39cb2905acc83ccfe0cf8808df9",
"outputidx": 1
}
]
Go to “Tools”.
Click “Open Masternode Configuration File”.
Modify the following line and paste it into your text editor:
MN1 xxx.xxx.xxx.xxx:15548 75H4ExZwdcVMDBt4rKMnB1sYys24pxgyi2A34ZwcAB2BQmc8L3A 506a242ccbfd2555bcd9cff5f4041752c911f39cb2905acc83ccfe0cf8808df9 1
MN1 - Alias for your masternode.
xxx.xxx.xxx.xxx - External IP address of your VPS.
75H4ExZwdcVMDBt4rKMnB1sYys24pxgyi2A34ZwcAB2BQmc8L3A - Masternode private key from the command “createmasternodekey”.
506a242ccbfd2555bcd9cff5f4041752c911f39cb2905acc83ccfe0cf8808df9 - Value “txhash” from the command “getmasternodeoutputs”.
1 - Value “outputidx” from the command “getmasternodeoutputs”.
Save the file and close notepad.
Close your wallet.
Register your masternode
Place the masternode private key in the config file of your masternode and uncomment the values “masternode” and “masternodeprivkey”.
Example config:
#===
rpcuser=rpc_novacash
rpcpassword=laz59maro7zzfiz83o89kiv29343clwpxp71qf33
rpcallowip=127.0.0.1
#===
listen=1
server=1
daemon=1
maxconnections=64
#===
masternode=1
masternodeprivkey=75H4ExZwdcVMDBt4rKMnB1sYys24pxgyi2A34ZwcAB2BQmc8L3A
externalip=xxx.xxxx.xxx.xxx
#===
Restart your masternode using the following commands:
novacash-cli stop
novacashd
Open your wallet.
Go to “Settings”.
Click “Unlock Wallet”.
Enter your wallet passphrase and unlock your wallet.
Go to the "Masternode" tab.
Select the desired masternode (e.g. "MN1" in our example).
Press the "Start alias" button.
Confirm starting masternode, and re-enter wallet passphrase if requested.
Your masternode is now registered and will appear in the masternode list.
You can check the status of your masternode using the command "getmasternodestatus":
novacash-cli getmasternodestatus
Example output
{
"txhash": "506a242ccbfd2555bcd9cff5f4041752c911f39cb2905acc83ccfe0cf8808df9",
"outputidx": 1,
"netaddr": "xxx.xxx.xxx.xxx:15548",
"addr": "NVbiwjDNK8mQsFJAWroYizYc12iGspPs7s",
"status": 4,
"message": "Masternode successfully started"
}