How to Setup and Secure Your Server
This article will guide you through the preparation of your server for ONZ Coin Node.
To complete this tutorial, you will need:
- One Ubuntu 16.04 server, with a minimum of 1 CPU core and 2GB ram.
- Ideally a KVM based VPS
First of all you’ll need to login into your server using root:
Login as: root
Password: YOUR_VPS_PROVIDERS_ROOT_PASSWORD
Now, you need to complete the following commands:
apt-get update && apt-get upgrade && apt-get dist-upgrade
apt-get install ntp
service ntp stop
apt install ntpdate
service ntp start
apt-get install nano git ufw tar
If you don’t plan to use the Secure Node Guide after this one, you will also need to open the correct ports for testnet or mainnet.
Testnet Ports
ufw allow 22/tcp
ufw allow 10998/tcp
ufw allow 10999/tcp
ufw enable
Mainnet Ports
ufw allow 22/tcp
ufw allow 11000/tcp
ufw allow 11001/tcp
ufw enable
The next step, make a user:
adduser yourusername (create new secure password)
usermod -a -G sudo yourusername
sudo visudo
Add this line at the end below “#includedir /etc/sudoers.d”:
yourusername ALL=(ALL) NOPASSWD:ALL
After editing the file press Ctrl+x and confirm with y and then Enter.Your server is now ready, reboot the server with:
reboot
Wait for few minutes for the server to restart, login using the new user and password you created above.
ssh [email protected]
Please proceed to the Secure Node Installation guide, if you don’t wish to secure the node, then please continue to either the TESTNET or MAINNET guides by clicking on the links.
ONZ TESTNET Node Installation Guide:
https://medium.com/onzcoin/onz-testnet-node-installation-guide-1590248d746d