Codego - Install masternode on Ubuntu Server 18.04

Crypto Cards Crypto cards

Install masternode on Ubuntu Server 18.04 Tutorials

Tutorial - Install masternode on Ubuntu Server 18.04

Install a masternode for your coin on Ubuntu Server 18.04 with the following tutorial.

Open your Windows wallet.

Go to Tools -> Debug console.

Type the following RPC command, to create private key for your masternode:

createmasternodekey

Example output

75eqvNfaEfkd3YTwQ3hMwyxL2BgNSrqHDgWc6jbUh4Gdtnro2Wo

Type the following RPC command, to create an address for the masternode amount fee:

getaccountaddress "MN1"

Example output

TRPLV4dXmEFMSgXg2Xu6skN9pmw8TAo4N5

Go back to your wallet overview

Press on the toolbar button "Send".

Enter the address from the RPC command “getaccountaddress "MN1"” behind the text "Pay To:". (Example: TRPLV4dXmEFMSgXg2Xu6skN9pmw8TAo4N5)

Enter the following amount of coins behind the text "Amount:": 1000

Press on the button "Send".

Wait until the transaction is confirmed by 15 blocks.

Go back to the console of your wallet.

Identify the transaction with the following RPC command:

getmasternodeoutputs

Example output

{
 "fdab9dff1ff9caf5d291905ad43b9f7d69775189d4d22cb085d7fedd94ea1c6a": "0"
}


Go to Tools -> Open Masternode Configuration File.

Paste the following text into notepad.

MN1 203.0.113.53:7596 75eqvNfaEfkd3YTwQ3hMwyxL2BgNSrqHDgWc6jbUh4Gdtnro2Wo 06e38868bb8f9958e34d5155437d009b72dff33fc28874c87fd42e51c0f74fdb 0

MN1 - Alias for your masternode.

203.0.113.53 - External IPv4 address of your VPS.

75eqvNfaEfkd3YTwQ3hMwyxL2BgNSrqHDgWc6jbUh4Gdtnro2Wo - Private masternode key from the RPC command “createmasternodekey”.

06e38868bb8f9958e34d5155437d009b72dff33fc28874c87fd42e51c0f74fdb - Transaction hash from the RPC command “getmasternodeoutputs”.

0 - Single digit from the RPC command “masternode outputs”.

Save and close notepad.

Close your wallet.

Open putty and connect using SSH with your Ubuntu 18.04 server.

Update your Ubuntu server with the following command:

sudo apt-get update && sudo apt-get upgrade -y

Install the required dependencies with the following command:

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 libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler unzip software-properties-common cmake -y

Install the repository ppa:bitcoin/bitcoin with the following command:

sudo add-apt-repository ppa:bitcoin/bitcoin

Confirm the installation of the repository by pressing on the enter key. enter

Install Berkeley DB with the following command:

sudo apt-get update && sudo apt-get install libdb4.8-dev libdb4.8++-dev -y

Download the Linux daemon for your wallet with the following command:

wget "https://dl.walletbuilders.com/download?customer=e0c4c365643856a5435f8bef12ce8c16854d74699caab93286&filename=codego-daemon-linux.tar.gz" -O codego-daemon-linux.tar.gz

Extract the tar file with the following command:

tar -xzvf codego-daemon-linux.tar.gz

Download the Linux tools for your wallet with the following command:

wget "https://dl.walletbuilders.com/download?customer=e0c4c365643856a5435f8bef12ce8c16854d74699caab93286&filename=codego-qt-linux.tar.gz" -O codego-qt-linux.tar.gz

Extract the tar file with the following command:

tar -xzvf codego-qt-linux.tar.gz

Type the following command to install the daemon and tools for your wallet:

sudo mv codegod codego-cli codego-tx /usr/bin/

Create the data directory for your coin with the following command:

mkdir $HOME/.codego

Open nano.

nano $HOME/.codego/codego.conf -t

Paste the following into nano.

rpcuser=rpc_codego
rpcpassword=dR2oBQ3K1zYMZQtJFZeAerhWxaJ5Lqeq9J2
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
maxconnections=64
masternode=1
masternodeprivkey=0acbf6f183d0c9b794b9bc0dba25f8a1a1eca21aa4f2e4a86ecd3120a59efb35
externalip=203.0.113.53


203.0.113.53 - External IPv4 address of your VPS.

0acbf6f183d0c9b794b9bc0dba25f8a1a1eca21aa4f2e4a86ecd3120a59efb35 - Private masternode key from the RPC command “createmasternodekey”.

Save the file with the keyboard shortcut ctrl + x.

Type the following command to start your daemon:

codegod

Open your Windows wallet.

Go to Tools -> Debug console.

Type the following RPC command, to start your masternode:

startmasternode alias false MN1