read

Deutsch
This guide will cover the basic setup of an Azure account, including signing up, the creation of a vps, and configuring the network.

To create an Azure account you need:
- email address
- credit card (prepaid cards don't work, read more)
- phone number

To follow this guide you will need to (download) some additional software.
- putty.exe for SSH connection
- puttygen.exe to create keys for login
- pageant.exe to load the created keys

Key creation

Before we start with Azure, let's create our login keys with puttygen.exe
puttygen 1. Start puttygen.exe, choose RSA and 2048 bits from the bottom.
2. Click on "Generate"
3. Choose a "Key comment" (for example: name of your node)
4. Choose a "Key passphrase" and confirm it
5. Save the public key & private key files
6. Copy the content of the box on the top to a text file, we need this later
7. Close puttygen

Signup

Open the Azure sign up website https://azure.microsoft.com/free and click start.

Start Choose "Create a new Microsoft Account" from the bottom of the page.

sign up Fill out all the fields, verify your identity, agree to the terms of services and sign up.

details

Creating a VPS

Once you have signed up, you can log into https://portal.azure.com.

dashboard Go to "New", search for "Debian 8" and select it from the list.

new Choose "Debian 8 Jessie" and click create.

debian 8 Fill in the basic information and create a new resource group.

For "Authentication type" choose "SSH public key" and paste in the key you have created with puttygen and saved in a text file. The VPS location is based in the same location as the resource group.

If you want to find out more about resource groups, you can read about it here.

create vps Go to "Size", select "View all"

create vps For this guide, we will choose an "A1 Basic" sized VPS. Basically, anything with at least 1 CPU Core and 1.5GB RAM will work.

create vps Go to "Settings", leave everything default besides "Public IP Adress". Monitoring is optional.

create vps Click on "Public IP address" and change the assignment to "static". If you leave it to dynamic, the VPS will have a new IP after every shutdown from the Azure Dashboard

create vps Check the "Summary" and click "OK"

create vps The notification area will show the progress of the deployment. This can take from 5 to 15 minutes.

create vps If the deployment succeeds, you will be notified.

create vps

Configuring Network

The VPS is now created, so let's move on to the network settings.

From the left of the dashboard choose "All resources" and click on your "Network Security Group". In this case, the security group is called "Supernode". Choose "Inbound security rules" from the left.

configuration Click on "Add" and enter the name, priority, and port similar to the screenshot.

configuration You have to do this 3 times for NIS, servant, and Lightwallet.

Ports:
- 7890 for NIS
- 7880 for servant
- 7778 for Lightwallet

When you are done it should look like:

configuration

Connect to VPS

After setting up the network we will try to connect to our VPS.
Go to "All resources" again and choose the network interface. Write down the "Public IP address".

connect

Start pageant.exe and open "View Keys" from the tray icon.

pageant pageant

Click on "Add Key" and select your saved private key (.ppk) you created earlier with puttygen. After the key is loaded, you can minimize pageant to the tray (but don't shut it down, it needs to run in the background).

pageant

Start putty and navigate to "Connection - SSH - Auth". Browse for your private key file (.ppk)

putty

Navigate to "Connection - Data" and input your username in the "Auto-login username" field.

putty

Go to "Session" and enter your IP in the "Host Name" field. Save the session (optional) and click "Open".

putty A console will open. Username and password is not needed, it will automatically load your username from putty and your key from pageant!

Root access

By default the user root is deactivated. To activate, log in as a standard user.
Type the following in the console:

sudo su -  

Set a root password with:

passwd  

After setting a password the root user is activated. To login to your VPS you still need the standard user (with RSA-key login) but as soon as you are logged in, you can change to root with:

su  

Install Supernode

The VPS is now ready for installation.
For the installation, we will use Paul's guide (click here), since it has covered everything.

There is 1 value which you have to change: 1.3 from:

Java -Xms768M -Xmx768M  

to:

Java -Xms1024M -Xmx1024M  

Other than that you can follow the guide and your supernode will be set up correctly!

The NEM team would like to thank Patrick for this blog.

Blog Logo

A Nember


Published


Image

NEM

Official Blog of NEM/XEM

Back to Overview