TRINITY logoTRINITYMonitoring

TRINITY Monitoring / Documentation / 2. Ubuntu Server 26.04

2. Base setup of every Ubuntu server

Install Ubuntu Server 26.04 LTS, set a static address with netplan, time from the domain controllers with chrony, ufw, and verify signed TRINITY packages.

Download the packages
Documentation pages

Do this on every TRINITY server: pg01, trinity01–03, ntfy01–02, rs01–02, cs01–02, gw01–02.

2.1 Create the virtual machine

Download Ubuntu Server 26.04 LTS (ubuntu-26.04-live-server-amd64.iso) from ubuntu.com and create a VM with the size from Sizes: UEFI firmware, VirtIO disk and network on Proxmox (VMXNET3 / PVSCSI on VMware), the QEMU guest agent enabled. Put the two nodes of each pair on different hypervisor hosts.

2.2 Run the installer

Screen Choose
Language, keyboard your choice
Type of install Ubuntu Server (not minimized)
Network DHCP for now (the static address follows in 2.3)
Proxy, mirror as in your network
Storage Use an entire disk, Set up this disk as an LVM group; in the summary, edit ubuntu-lv to use all free space
Profile a temporary name, your admin user and password
Ubuntu Pro skip
SSH Install OpenSSH server
Featured snaps none

2.3 Name and static address

Sign in over SSH (DHCP address). Set the two values for this server, then run the block in the same session. It sets the host name and writes the static address; it changes nothing on the network yet.

NAME=trinity01; ADDR=10.0.10.33
GW=10.0.10.1; PREFIX=24; DNS1=10.0.10.5; DNS2=10.0.10.6; DOMAIN=corp.example.com
if [ -n "$NAME" ] && [ -n "$ADDR" ]; then
  sudo hostnamectl set-hostname $NAME
  IF=$(ip -o -4 route show to default | awk '{print $5}' | head -n1); echo "interface $IF"; ls /etc/netplan
  echo 'network: {config: disabled}' | sudo tee /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg >/dev/null
  sudo rm -f /etc/netplan/50-cloud-init.yaml
  sudo tee /etc/netplan/00-installer-config.yaml >/dev/null <<EOF
network:
  version: 2
  ethernets:
    $IF:
      addresses: [$ADDR/$PREFIX]
      routes:
        - to: default
          via: $GW
      nameservers:
        search: [$DOMAIN]
        addresses: [$DNS1, $DNS2]
EOF
  sudo chmod 600 /etc/netplan/00-installer-config.yaml && sudo netplan generate && echo "syntax ok: $NAME $ADDR"
else echo 'Set NAME and ADDR first'; fi

For the gateways in the DMZ use their own GW (e.g. 172.16.10.1) and the DNS servers they may reach. Then, in the hypervisor console of the VM (not over SSH: the address changes and an SSH session would hang):

sudo netplan try          # press Enter when it asks, within 120 s

Connect over SSH to the new address. hostname -f must print the full name (e.g. trinity01.corp.example.com).

2.4 Updates, time and firewall

sudo apt update && sudo apt -y full-upgrade
sudo apt install -y chrony curl ca-certificates openssl ufw qemu-guest-agent
printf 'server dc1.corp.example.com iburst\nserver dc2.corp.example.com iburst\n' | sudo tee /etc/chrony/sources.d/ad-dc.sources
echo 'maxdistance 16.0' | sudo tee /etc/chrony/conf.d/ad-dc.conf
sudo mv /etc/chrony/sources.d/ubuntu-ntp-pools.sources /etc/chrony/sources.d/ubuntu-ntp-pools.sources.off
sudo systemctl restart chrony && sleep 10 && chronyc sources
sudo timedatectl set-timezone Europe/Bucharest      # your time zone
sudo ufw allow 22/tcp && sudo ufw --force enable && sudo ufw status
sudo reboot

chronyc sources must show a domain controller marked ^* or ^+. Each chapter below opens only the ports its role needs. On VMware use open-vm-tools instead of qemu-guest-agent. If the root volume did not get all the disk: sudo lvextend -r -l +100%FREE /dev/ubuntu-vg/ubuntu-lv.

2.5 Copy and check the packages

From your workstation, copy the package of each role with the checksum list, its signature and the release key (from the download page), e.g. for the portal nodes:

$u = Read-Host 'Linux admin user'
foreach ($ip in '10.0.10.33','10.0.10.34','10.0.10.35') {
  scp TRINITY-1.2.1-Linux.tar.gz TRINITY-1.2.1-SHA256SUMS.txt TRINITY-1.2.1-SHA256SUMS.txt.sig trinity-release-signing.pub "${u}@${ip}:"
}

On the server:

cd ~
openssl base64 -d -A -in TRINITY-1.2.1-SHA256SUMS.txt.sig -out sums.sig
openssl dgst -sha256 -verify trinity-release-signing.pub -signature sums.sig TRINITY-1.2.1-SHA256SUMS.txt
sha256sum -c --ignore-missing TRINITY-1.2.1-SHA256SUMS.txt

Verified OK, then OK for every copied file. Anything else: do not install it.

Names, addresses and accounts in the examples (corp.example.com, 10.0.x.x, CORP\…) are examples: use your own. TRINITY 1.2.1, December 2026.