SwapBlocks — Initial Server Preparation Guide

This article will guide you through the preparation of your server.

To complete this tutorial, you will need:

  • One Ubuntu 16.04 or 17.10 server, with a minimum of 1 CPU core and 2GB ram. But you will need to consider scaling this up as the network demands it. (Not tested to work on 18.04)
  • 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 -y && apt-get upgrade -y && apt-get dist-upgrade -y

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.

In some cases you may need to install UFW (for example time4vps) if so run this command first:

apt install ufw

Testnet Ports

ufw allow 22/tcp
ufw allow
4111/tcp
ufw enable (type y and press enter.)

Alphanet Ports

ufw allow 22/tcp
ufw allow 4100/tcp
ufw enable (type y and press enter.)

The next step, make a user:

adduser yourusername (change yourusername to a name of your choice)
During this step you will also create a new secure password

Just press enter a few times, past the name and contact info, and confirm details are correct with y

usermod -a -G sudo yourusername

Next type the following and press enter.

sudo visudo

Add this line at the end below “#includedir /etc/sudoers.d”:

yourusername ALL=(ALL) NOPASSWD:ALL

Press Ctrl X, then y and Enter to confirm the changes above.

Reboot the server and login using the new user and password you created above.

reboot

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 Alphanet guides by clicking on the links.

Originally published at medium.com


Originally published at medium.com on June 22, 2018.