Tutorial - Install Masternode on Ubuntu Server 22.04
Upgrade your coin to make use of this tutorial.
Install a masternode for your coin on Ubuntu Server 22.04 with the following tutorial.
Open your Windows wallet.
Go to Tools -> Debug console.
Type the following RPC command to create a 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"` in the "Pay To:" field. (Example: TRPLV4dXmEFMSgXg2Xu6skN9pmw8TAo4N5)
Enter the following amount of coins in the "Amount:" field: 1000
Press on the "Send" button.
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:15038 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 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 cmake libminiupnpc-dev libevent-dev libzmq3-dev unzip -y
Download Boost with the following command:
wget https://boostorg.jfrog.io/artifactory/main/release/1.65.1/source/boost_1_65_1.tar.gz
Extract the tar file with the following command:
tar -xzvf boost_1_65_1.tar.gz
Install Boost with the following commands:
cd boost_1_65_1
./bootstrap.sh --prefix=/usr/local
./b2
sudo ./b2 install
Type the following command to open your home directory:
cd $HOME
Download Berkeley DB with the following command:
wget http://download.oracle.com/berkeley-db/db-4.8.30.zip
Unzip the file with the following command:
unzip db-4.8.30.zip
Install Berkeley DB with the following commands:
cd db-4.8.30
sed -i 's/__atomic_compare_exchange/__atomic_compare_exchange_db/g' dbinc/atomic.h
cd build_unix/
../dist/configure --prefix=/usr/local --enable-cxx
make
sudo make install
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
Type the following command to open your home directory:
cd $HOME
Download OpenSSL with the following command:
wget https://www.openssl.org/source/openssl-1.1.1t.tar.gz
Extract the tar file with the following command:
tar -xzvf openssl-1.1.1t.tar.gz
Install OpenSSL with the following commands:
cd openssl-1.1.1t
./config
make
sudo make install
Create symlinks with the following commands:
cd /usr/lib/x86_64-linux-gnu
sudo ln -s libminiupnpc.so /usr/lib/x86_64-linux-gnu/libminiupnpc.so.10
sudo ln -s libevent_pthreads.so /usr/lib/x86_64-linux-gnu/libevent_pthreads-2.1.so.6
sudo ln -s libevent.so /usr/lib/x86_64-linux-gnu/libevent-2.1.so.6
Type the following command to open your home directory:
cd $HOME
Download the Linux daemon for your wallet with the following command:
wget https://dl.walletbuilders.com/download?
customer=212c2ed32b088c0200b9ea8c19b732029b6779185b653147c9&filename=dale-daemon-linux.tar.gz " -O dale-daemon-linux.tar.gz
TExtract the tar file with the following command:
tar -xzvf dale-daemon-linux.tar.gz
Download the Linux tools for your wallet with the following command:
wget "https://dl.walletbuilders.com/download?customer=212c2ed32b088c0200b9ea8c19b732029b6779185b653147c9&filename=dale-qt-linux.tar.gz" -O dale-qt-linux.tar.gz
OExtract the tar file with the following command:
tar -xzvf dale-qt-linux.tar.gz
Type the following command to install the daemon and tools for your wallet:
sudo mv daled dale-cli dale-tx /usr/bin/
Create the data directory for your coin with the following command:
mkdir $HOME/.dale
Open nano.
nano $HOME/.dale/dale.conf -t
Paste the following into nano.
rpcuser=rpc_dale
rpcpassword=dR2oBQ3K1zYMZQtJFZeAerhWxaJ5Lqeq9J2
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
staking=0
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:
daled
Open your Windows wallet.
Go to Tools -> Debug console.
Type the following RPC command, to start your masternode:
startmasternode alias false MN1