Installing Required OS and Software
Please note that this only describes a "fresh install". For upgrades, please refer to the Lifecycle Management document.
-
Install a clean Ubuntu 18.04 server.
-
The system user name does not matter, except that the name "netrounds" is not allowed since PostgreSQL creates a user with that name (as described in this paragraph).
-
Install only standard components (don't change the default selection).
-
The following disk partitioning is recommended, especially for snapshot backups (but it is up to you as a user to decide):
- Recommended partitioning for lab setup:
/
: Whole disk, ext4.
- Recommended partitioning for production setup:
/
: 10% of disk space, ext4./var
: 10% of disk space, ext4./var/lib/netrounds/rrd
: 80% of disk space, ext4.
- No encryption
- Recommended partitioning for lab setup:
-
Set the time zone to UTC, for example as follows:
sudo timedatectl set-timezone Etc/UTC
-
Set all locales to
en_US.UTF-8
.-
One way to do this is to manually edit the file
/etc/default/locale
. Example:LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LANGUAGE=en_US.UTF-8
-
Make sure the following line is NOT commented out in the file
/etc/locale.gen
:en_US.UTF-8 UTF-8
-
Regenerate the locale files to make sure selected language is available:
sudo apt-get install locales sudo locale-gen
-
-
-
Install NTP:
-
First disable
timedatectl
:sudo timedatectl set-ntp no
-
Run this command:
timedatectl
and verify that
systemd-timesyncd.service active: no
-
Now you can run the NTP installation:
sudo apt-get install ntp
-
Make sure that the configured NTP servers are reachable:
ntpq -np
The output should normally be "all ones" expressed in octal. 1
-
-
Install PostgreSQL and set up a user for Control Center:
sudo apt-get update sudo apt-get install postgresql sudo -u postgres psql \ -c "CREATE ROLE netrounds \ WITH ENCRYPTED PASSWORD 'netrounds' SUPERUSER LOGIN;" sudo -u postgres psql \ -c "CREATE DATABASE netrounds OWNER netrounds \ ENCODING 'UTF8' TEMPLATE 'template0';"
Using an external PostgreSQL server is not recommended.
-
Install and configure an email server.
-
Control Center will send emails to users:
- when they are invited to an account,
- when sending email alarms (i.e. if email rather than SNMP is used for this purpose), and
- when sending periodic reports.
-
Run the command
sudo apt-get install postfix
-
For a simple setup where postfix can send directly to the destination email server, you can set General type of mail configuration to "Internet Site", and System mail name can usually be left as-is. Otherwise, postfix needs to be configured according to the environment. For guidance, refer to the official Ubuntu documentation at https://help.ubuntu.com/lts/serverguide/postfix.html.
-