Installation-Guide

From BlockChainTeleCom wiki
Jump to: navigation, search

New Ubuntu Linux Server 16.04 LTS installation and configuration

Installation of Ubuntu 16.04 Server Edition

Ubuntu Server 16.04, also named Xenial Xerus, has been released by Canonical and it’s now ready for installation. This topic will guide you on how you can install Ubuntu 16.04 Server Edition with Long Time Support on your machine.

Requirements

Minimal Requirements:

Intel® Core i7 CPU

16GB or more of RAM

128GB of available hard-disk space

Recomended Requirements:

Intel® Xeon Processor E5504 CPU

128GB or more of RAM

512G SSD of available hard-disk space

LAN(Internet) connection required

Ubuntu 16.04 Server ISO Image

Install Ubuntu 16.04 Server Edition

On the first step visit the above link and download the latest version of Ubuntu Server ISO image on your computer. Once the image download completes, burn it to a CD or create a bootable USB disk using Unbootin (for BIOS machines) or Rufus (for UEFI machines). Place the bootable media intro the appropriate drive, start-up the machine and instruct the BIOS/UEFI by pressing a special function key (F2, F11, F12) to boot-up from the inserted USB/CD drive. In a few seconds you will be presented with the first screen of Ubuntu installer.

Ubuntu-start.png

Select your language to perform the installation and hit Enter key to move to the next screen.

Ubuntu-install-start.png
Ubuntu-select-language.png

Choose Ubuntu 16.04 Server Installation Language

On the next series of screen choose your physical location from the presented list. If your location is different than the ones offered on the first screen, select other and hit Enter key, then select the location based on your continent and country. This location will be also used by the timezone system variable. Use the below screenshots as a guide.

Choose Location for Ubuntu 16.04 Server

Ubuntu-region.png

Select Country Region

Ubuntu-location.png

Select Area Location

Assign the locales and keyboard settings for your system as illustrated below and hit Enter to continue the installation setup.

Configure Locales

Ubuntu-locales.png

Configure Keyboard Layout

Ubuntu-keyboard.png
Ubuntu-keyboad-configure.png

The installer will load a series of additional components required for the next steps and will automatically configure your network settings in case you have a DHCP server on the LAN. Because this installation is intended for a server it’s a good idea to setup a static IP address for your network interface. To do this you can interrupt the automatic network configuration process by pressing on Cancel or once the installer reaches hostname phase you can hit on Go Back and choose to Configure network manually.

Set Ubuntu 16.04 Hostname

Configure Network Manually

Enter your network settings accordingly (IP Address, netmask, gateway and at least two DNS nameservers) as illustrated on the below images.

Set Static IP Address on Ubuntu 16.04

Ubuntu-configure-network-ip.png

Configure Network Gateway for Ubuntu 16.04

Ubuntu-network-gateway.png

Configure Network DNS on Ubuntu 16.04

Ubuntu-DNS.png

On the next step setup a descriptive hostname for your machine and a domain (not necessary required) and hit on Continue to move to the next screen. This step concludes the network settings.

Set Ubuntu 16.04 Server Hostname

Ubuntu-hostname.png

Set Ubuntu 16.04 Domain Name

On this step the installer prompts you to setup a username and a password for your system. This username will be granted by the system with sudo powers, so, technically, this user will be the supreme administrator next to root account (which is disabled by default). Thus, choose an inspired username, maybe hard to guess for security reasons, with a strong password and hit on Continue. Choose not to encrypt your home directory and press Enter to continue further.

Setup User and Password

Ubuntu-login-password.png
Ubuntu-password.png

Next, the installer will automatically set your clock based on the physical location configured earlier. In case the location is correctly chosen hit on Yes to continue to disk partition layout.

Configure System Clock

On the next step you can choose the method that will be used to slice up your disk. For instance, if you need to create custom partition scheme (such as /home, /var, /boot etc) choose Manual method. For a general purpose server you can stick to Guided with LVM method as illustrated below, which automatically creates the partitions on your behalf.

Select Partition Method

Ubuntu-partition-disk.png

Next, select the disk that will be used by the installer to create partitions and press Enter key.

Select Disk Partition

Answer with Yes at the next screen in order to commit changes to disk scheme and hit on Continue to use the entire disk space for guided partitions.

Add Disk Partition Size

Confirm Disk Partition Changes

Finally, approve for the last time the changes to be written to disk by pressing on Yes and the installation will now begin. From this step on all the changes will be committed to disk.

Confirm Disk Partition Changes

Ubuntu-partition-set.png

Installing Ubuntu 16.04 Server

In case your system is behind a proxy or a firewall use the next screen to bypass the network restrictions, otherwise just leave it black and hit on Continue.

Configure System Package Manager

Next, the installer will configure apt repositories and will install the selected software. After it finishes the installation tasks a new screen will appear which will ask you how to manage the upgrade process. Select No automatic updates for now (you will manually select what updates are necessary) and hit Enter key to continue.

Manage Ubuntu 16.04 Upgrades

On the next step you will be asked to select what software to install. Select only standard system utilities and OpenSSH server (if you require remote access) by pressing the spacebar key and hit on Continue.

System Software Selection

Once the installer finishes installing the software, a new screen will prompt you whether to install the Grub boot loader to hard disk MBR (first 512 byte sector). Obviously without the GRUB you can’t boot up your system after restart, so hit on Yes to continue with the installation.

Install Grub Boot Loader

Finally, after the boot loader is written to Hard Disk MBR, the installation process finishes. Hit on Continue to reboot the machine and remove the installation media.

Finish Ubuntu 16.04 Server Installation

After reboot, login to your system console using the credentials configured during the installation process and you’re good to go on production with your server.

Ubuntu 16.04 Server Login Prompt

That’s all!

Keep in mind that this version of Ubuntu has official maintenance support from Canonical until 2021 for hardware, bugs, software and security updates.

New blockchain node installation and configuration

New account registration and configuration

Use node_config tool to automate a new account registration and configuration.

Before running this tool ensures that witness_node and cli_wallet services are properly configured and running at your server.

Then run

'python node_config.zip'

and follow instructions

There are 3 steps which must be completed to finish your registration. Steps 1 and 3 are done on the side of new account holder. Step 2 must be executed by authenticated registrar account.

Step 1. I want to prepare data for my new account registration

This is a first step of registration procedure done by new account holder, generating your public and private keys.

Run python node_config.zip and type '1' when prompted to select option

1. I want to prepare data for my new account registration

When prompted, specify new account name (for-example, "super-telecom" ) and URL of your associated website ( such as "www. super-telecom.com" )

If everything done correctly you will finally see the following prompt:


Files
'node_private_keep_in_secret.json'
'node_puplic.json'
were successfully created
'node_private_keep_in_secret.json'contains sensitive account information, including your private keys.
Backup this file and keep it in a secured safe place.
Loosing or leaking information contained in this file leads to lose control over your account.
'node_puplic.json'contains public data which can be safely distributed.
Send this file to the authenticated registrar to register your account in the blockchain.


Locate 2 files in your working directory node_private_keep_in_secret.json and node_puplic.json Copy them into safe storage and double-backup them to insure that under no condition those filers can be lost or leaked.

node_private_keep_in_secret.json file contains your private keys along with your account details. Keep this file secretly, never send this file to anyone. Anyone who get information contained in this file will have a full control over your account.

node_puplic.json files contain public information and public key of your new account. You need to send this public file to authenticated registrar to register your new account on the blockchain.

You can use any plain text editor to view the content of both files.

Registrar continues registration procedure by executing step 2.

Step 2. I want to register a new account in favor of another user

Authenticated registrar executes the second step of registration procedure. To do that registrar need public key data obtained from new account holder. Registrar just registers new account in the blockchain, it has no access to new account control operations, such as transferring funds or making orders.

Before starting it is recommended to place node_puplic.json file obtained from new account holder into your working directory (typically directory where node_config.zip is located )

Run python node_config.zip

When prompted type '2' to select option 2. I want to register a new account in favor of another user

If program can find node_puplic.json file it prompts to confirm to use the file found. Otherwise you need to specify the full path to file with public account data.

When prompted review details of new account and confirm registration by typing 'Y'

If everything works fine you will see confirmation of registration:

New account was successfully registered Notify account owner

Step 3. My account was already registered in the blockchain. I want to finish configuration of my account

After reserving notification from registrar about successful registration of new account a new account holder proceeds with step 3 to finalize his registration.

Before starting it is recommended to put node_private_keep_in_secret.json file generated at step 1 and stored in secured backup into your working directory (typically directory where node_config.zip is located )

Run python node_config.zip

When prompted type '3' to select option

3. My account was already registered on the blockchain. I want to finish configuration of my account

If program can find node_private_keep_in_secret.json file it prompts to confirm to use file found. Otherwise you need to specify the full path to file with private account data.

Review details of your new account and confirm registration by typing 'Y'

Follow other instructions if necessary to finish your registrations.

If everything works fine you will see confirmation of registration:

Congratulations!
Your new account 'super-telecom' have been successfully registered and is ready to use.

Ensure that you securely backup node_private_keep_in_secret.json and remove this file from any unsecured locations.