Rapids - Masternode Setup Guide
Contents
- Introduction
- Choose a VPS
- Cold Wallet - installation
- Cold Wallet - configuration
- VPS Remote/Hot wallet - installation
- VPS Remote/Hot wallet - configuration
- Start your masternode
Introduction
This guide is for a single masternode, on a Ubuntu 16.04 server (VPS) and will be controlled from the wallet on your local computer. (Cold Wallet)
The wallet on the the VPS will be referred as the Remote wallet.
- 10,000,000 RPD
- A local computer – This will run the cold wallet, hold your collateral of 10,000,000 RPD and can be turned on and off without affecting the masternode.
- A masternode Server (VPS – The server that will be on 24/7)
We are going to use some variables in this guide, you will find them in red and bold. You have to replace this variables with your own information
- Name of Masternode
- IP Address
- Masternode Address
- Masternode Private Key
- Collateral Output TXID
- Collateral Output Index
- RPC Username
- RPC Password
Choose a VPS
We will use OVH (OVH VPS) as an example of a VPS, but you can use any provider you prefer, you can check Vultr, Amazon AWS, Google Cloud.1) Choose a VPS type, VPS SSD 1 can be use to run a masternode 2) Configure your VPS, with operating system only, and choose Ubuntu 16.04 Server 3) Skip the optional option
Cold Wallet - installation
1) From Github, download the latest QT wallet, on your local computer.2) Run the cold wallet and wait for a full sync, you can check the sync status on the bottom right corner

(Settings -> Options -> Wallet) check: Show Masternode Tab

Cold Wallet - configuration
1) Using the cold wallet, enter the debug console (Tools > Debug console) and type the following commandIn output, you get the variable Masternode Private Keymasternode genkey

In output, you get the variable Masternode Addressgetaccountaddress Name of Masternode


In output, you get the variables Collateral Output TXID and Collateral Output Indexmasternode outputs

(Tools -> Open Masternode Configuration File)
Example:"Name of Masternode" "IP address":28732 "Masternode Private Key" "Collateral Output TXID" "Collateral Output Index"
MN1 1.2.3.4:28732 892WPpkqbr7sr6Si4fdsfssjjapuFzAXwETCrpPJubnrmU6aKzh c8f4965ea57a68d0e6dd384324dfd28cfbe0c801015b973e7331db8ce018716999 1
VPS Remote/Hot wallet - installation
1) Download PuTTY to establish a SSH connection to the server.Go to the PuTTY Download Page and select the appropriate MSI installer for your system.
2) With putty, connect to your VPS using IP Address, and use your credential, provide by OVH 3) Update your VPS with the following command
4) Install some software needed for running your masternodeapt-get update -y
apt-get upgrade -y
5) add a new user, we are using the coin name for our userapt-get install wget nano python python-virtualenv virtualenv git -y
6) Configure server memory swapadduser rapids
7) Configure the firewall for allowing masternode connectionfallocate -l 1500M /mnt/1500MB.swap dd if=/dev/zero of=/mnt/1500MB.swap bs=1024 count=1572864 mkswap /mnt/1500MB.swap swapon /mnt/1500MB.swap chmod 600 /mnt/1500MB.swap echo '/mnt/1500MB.swap none swap sw 0 0' >> /etc/fstab
ufw allow ssh/tcp ufw limit ssh/tcp ufw allow 28732/tcp ufw logging on ufw --force enable
VPS Remote/Hot wallet - configuration
Install the latest version of rapids wallet onto your masternode. The latest version can be found here: https://github.com/RapidsOfficial/Rapids/releases1) Now, log in to the VPS with your new user "rapids"
2) From your home directory, download the latest version from the rapids GitHub repositorysu - rapids
3) We can now extract the latest version and place the files in your home folder[ -f /home/rapids/sources.tar.gz ] && rm -f /home/rapids/sources.tar.gz wget -q -O /home/rapids/sources.tar.gz https://github.com/RapidsOfficial/Rapids/archive/aa4e5a8.tar.gz [ -d /home/rapids/temp_sources ] && rm -fr /home/rapids/temp_sources
4) launch the compilation withmkdir /home/rapids/temp_sources cd /home/rapids/temp_sources tar zxf /home/rapids/sources.tar.gz --strip-components=1 -C /home/rapids/temp_sources
5) Edit the rapids.conf by typingcd /home/rapids/temp_sources ./autogen.sh ./configure make mkdir /home/rapids/bin > /dev/null 2>&1 mv /home/rapids/temp_sources/src/rapidsd /home/rapids/bin mv /home/rapids/temp_sources/src/rapids-cli /home/rapids/bin
mkdir /home/rapids/.rapids > /dev/null 2>&1 cd /home/rapids/.rapids nano rapids.conf
Press Ctrl + X to close the editor and Y and Enter to save the file.rpcuser="RPC Username" rpcpassword="RPC Password" rpcallowip=127.0.0.1 server=1 daemon=1 logtimestamps=1 maxconnections=256 masternode=1 externalip=IP Address masternodeprivkey=Masternode Private Key
6) You can create a service for automatic startup of daemon
Add the following lines in this filesudo nano /etc/systemd/system/rapids.service
Press Ctrl + X to close the editor and Y and Enter to save the file.[Unit] Description=RPD_MN After=network.target [Service] User=rapids ExecStart=/home/rapids/bin/rapidsd -daemon -datadir=/home/rapids/.rapids -conf=/home/rapids/.rapids/rapids.conf ExecStop=/home/rapids/bin/rapids-cli -datadir=/home/rapids/.rapids -conf=/home/rapids/.rapids/rapids.conf stop TimeoutSec=10min Type=forking Restart=on-failure PrivateTmp=true ProtectSystem=full NoNewPrivileges=true PrivateDevices=true [Install] WantedBy=default.target
7) Now, you need to finally start the wallet service with the following command
8) You have now waiting for the blockchain synchronization, you can check the status withsystemctl enable rapids systemctl start rapids
/home/rapids/bin/rapids-cli mnsync status
Start your masternode
1) From the cold wallet debug console (Tools > Debug console)The following should appearstartmasternode alias false Name of Masternode
2) Back in the Remote Wallet, start the masternode“overall” : “Successfully started 1 masternodes, failed to start 0, total 1”, “detail” : [ { “alias” : “Name of Masternode”, “result” : “successful”, “error” : “” }
A message “masternode successfully started” should appear/home/rapids/bin/rapids-cli startmasternode local false
3) Use the following command to check status
You should see something like/home/rapids/bin/rapids-cli masternode status
Congratulations! You have successfully created your masternode!{ “txhash” : “Collateral Output TXID”, “outputidx” : Collateral Output Index, “netaddr” : “IP Address:28732, “addr” : “Masternode Address”, “status” : 4, “message” : “Masternode successfully started” }
You can now check the status of the node and monitoring it on
