For V2, we recommend a VPS, with Ubuntu 18.04 as its OS. Since syncing the node for the first time is very CPU intensive, we recommend to use a VPS with at least 2CPU's For an optimal P2P connection, we like all nodes to be located in Europe.
Log in to your VPS
Enter the following command to apply the latest updates to your system
sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y
sudo adduser qredit sudo usermod -a -G sudo qredit
su - qredit
git clone https://github.com/qredit/core-control cd core-control ./ccontrol.sh install core
After running Core-Control for the first time, the script creates an alias called "ccontrol". After doing a reboot, you can use this alias from within any directory on your server. After the reboot, log into your qredit user again
sudo reboot su - qredit
OPTIONAL If you have a locally maintained snapshot, this is the time to restore it. Place the snapshot-folder in
~/.local/share/qredit-core/mainnet/snapshots, with the correct format (which is
1-blockheight at time of the snapshot).
Then, run this command:
ccontrol snapshot restore
ccontrol start relay
ccontrol logs relay
ccontrol snapshot create
When installing a node using core-control, this step is performed automatically
pm2 save pm2 startup
The last command will echo a command back. Copy, paste and run that command.
That is it, you now have set up a new Relay Node on the Qredit Platform!
If you want to become a Qredit delegate and start a Forging Node, please continue your setup here
When you install a Qredit Full Node using Core-Control, it automatically sets an UFW Firewall, only allowing the neccesary ports for Qredit (which are port 22 for SSH access, and ports 4101-4108 for the Qredit processes). When / if you are using the server for other things, please remember to open the necessary ports.