SwapBlocks — Initial Server Preparation Guide

May 4, 2018 · 2 min read

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

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.


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.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store