Ubuntu 16.04 Server

20160523 jean@huens.be

Installation

The first test was done with usb netboot (amd). This works but has some disadvantages:

Now instalation is done with ubuntu-16.04-server-amd64.iso (on usb stick)
I see some support for GPT and possibly UEFI but the hardware does not support it yet.

Task selected:

Grub is installed on /dev/sda.  The Grub default does not use quiet or splash and
we get a login prompt on the console.

Extra packages

Avahi (Zeroconf/Bonjour)

Only if you want to have hostnames available as   hostname.local and or have Apple hardware on your net.

# sudo apt-get install avahi-daemon
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libavahi-common-data libavahi-common3 libavahi-core7 libdaemon0 libnss-mdns
Suggested packages:
avahi-autoipd avahi-autoipd | zeroconf
The following NEW packages will be installed:
avahi-daemon libavahi-common-data libavahi-common3 libavahi-core7 libdaemon0 libnss-mdns
0 upgraded, 6 newly installed, 0 to remove and 70 not upgraded.
Need to get 223 kB of archives.
After this operation, 978 kB of additional disk space will be used.

Unattended upgrades

Install

$ sudo apt install unattended-upgrades
[sudo] password for jean:
Reading package lists... Done
Building dependency tree
Reading state information... Done
unattended-upgrades is already the newest version (0.90).
0 upgraded, 0 newly installed, 0 to remove and 65 not upgraded.
Config

  1. /etc/apt.conf.d/50unattended-upgrades
    # diff 50unattended-upgrades /tmp/50unattended-upgrades 
    4c4
    < "${distro_id}:${distro_codename}-updates";
    ---
    > // "${distro_id}:${distro_codename}-updates";
    11d10
    < "sendmail";
  2. /etc/apt/apt.conf.d/10periodic
    # cat 10periodic
    APT::Periodic::Update-Package-Lists "1";
    APT::Periodic::Download-Upgradeable-Packages "1";
    APT::Periodic::AutocleanInterval "7";
    APT::Periodic::Unattended-Upgrade "1";

  3. /etc/apt/sources.list
    # cat /etc/apt/sources.list | egrep -v '^#'



    deb http://be.archive.ubuntu.com/ubuntu/ xenial main restricted

    deb http://be.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

    deb http://be.archive.ubuntu.com/ubuntu/ xenial universe
    deb http://be.archive.ubuntu.com/ubuntu/ xenial-updates universe

    deb http://be.archive.ubuntu.com/ubuntu/ xenial multiverse
    deb http://be.archive.ubuntu.com/ubuntu/ xenial-updates multiverse

    deb http://be.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse


    deb http://security.ubuntu.com/ubuntu xenial-security main restricted
    deb http://security.ubuntu.com/ubuntu xenial-security universe
    deb http://security.ubuntu.com/ubuntu xenial-security multiverse
  4. install apticron
    # sudo apt install apticron
    ...
    # vi /etc/apticron/apticron.conf
    EMAIL="jean"

  5. DOC: https://help.ubuntu.com/lts/serverguide/automatic-updates.html