Ubuntu Server 26.04/20.04

HowTO setupUbuntu Server 26.04/20.04

INTRO - OBJ

Setup a full fleged Ubuntu server (web, file, email, etc)

BOOKs

UNIX and Linux System Administration Handbook (5th Edition)
A Practical Guide to Linux Commands, Editors, and Shell Programming (4th Edition)

DOCs

OFFICIAL Ubuntu Server documentation
Ubuntu Server automatic-updates (Official)
How to Configure Automatic Security Updates on Ubuntu 26.04 | linuxconfig.org

VIDs


CONFIGs

/etc/apt/apt.conf.d/50unattended-upgrades  (Options for the behavior of the tool, such as if a reboot should be scheduled or not, or which packages are blocked from being upgraded)
/etc/apt/apt.conf.d/20auto-upgrades  (Enable/Disable unattended-upgrades, and how often it should run)
/var/log/unattended-upgrades  (detailed logs of each unattended upgrade run)

-- Prerequisites

A functioning server/machine

-- Update

-- Install 'unattended-upgrades'

-- Backup Original configs

-- Enabling and disabling unattended upgrades (default is enabled)

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";

-- Backup Original configs

--

  Unattended-Upgrade::Allowed-Origins {
  "${distro_id}:${distro_codename}";
  "${distro_id}:${distro_codename}-security";
  // Extended Security Maintenance; doesn't necessarily exist for
  // every release and this system may not have it installed, but if
  // available, the policy for updates is such that unattended-upgrades
  // should also install from here by default.
  "${distro_id}ESMApps:${distro_codename}-apps-security";
  "${distro_id}ESM:${distro_codename}-infra-security";
  "${distro_id}:${distro_codename}-updates";   ;EDIT line, remove comments //
// "${distro_id}:${distro_codename}-proposed";
// "${distro_id}:${distro_codename}-backports";
};