Categories: TutorialsUbuntu

Software and technical overview of Ubuntu server 22.04 LTS

Ubuntu server 22.04 LTS server edition offers the following software and versions:

Software

  • linux kernel – 5.15.0 – 5.15.0-33-generic
  • System
    • linux-firmware – 20220329.git681281e4-0ubuntu3. Apparently, this is a git clone on 29 March 2022.
    • libc – 2.35 – 2.35-0ubuntu3
    • GNU GCC – multiple versions available – 9.4.0, 10.3.0, 11.2.0 and 12-20220302. The exact versions – 9.4.0-5ubuntu1, 10.3.0-15ubuntu1, 11.2.0-19ubuntu1 and 12-20220319-1ubuntu1
    • OpenSSL – 3.0.2 – 3.0.2-0ubuntu1.2
    • coreutils – 8.328.32-4.1ubuntu1
    • apt – 2.4.5
    • rsyslog – 8.2112.0 – 8.2112.0-2ubuntu2.2
  • Servers
    • Apache – 2.4.52 – 2.4.52-1ubuntu4
    • Nginx – 1.18.0 – 1.18.0-6ubuntu14.1
    • MySQL server – 8.0.298.0.29-0ubuntu0.22.04.2
    • MariaDB server – 10.6.7 – 1:10.6.7-2ubuntu1
    • PostgreSQL – 14+238
  • Programming
      LTS the user may install
    • PHP – 8.1 – 2:8.1+92ubuntu1
    • python – 3.10.4
      Sponsored
      (3.10.4-0ubuntu2) and also includes 2.7.18-3
    • perl – 5.34.0 (5.34.0-3ubuntu1)
    • ruby – 3.0 – 1:3.0~exp1
    • OpenJDK – includes multiple versions – 8u312-b07, 11.0.15, 17.0.3 and 18~36ea-1. The exact versions are 8u312-b07-0ubuntu1, 11.0.15+10-0ubuntu0.22.04.1, 17.0.3+7-0ubuntu0.22.04.1 and 8u312-b07-0ubuntu1
    • Go lang – multiple versions – 1.13.8, 1.17.3 and 1.18.1. The exact versions – 1.13.8-1ubuntu2, 1.17.3-1ubuntu2 and 1.18.1-1ubuntu1.
    • Rust – 1.58.1 – 1.58.1+dfsg1~ubuntu1-0ubuntu2
    • Subversion – 1.14.1 – 1.14.1-3build4
    • Git – 2.34.1 – 1:2.34.1-1ubuntu1.2
    • llvm – multiple versions – 11.1.0, 12.0.1, 13.0.1 and 14. The exact versions – 1:11.1.0-6, 1:12.0.1-19ubuntu3, 1:13.0.1-2ubuntu2 and 1:14.0.0-1ubuntu1
  • Graphical User Interface
    • Xorg X server – ??? – 1.22.1.1
    • GNOME (the GUI) – 42.0 – Gnome Shell – 42.0 (42.0-2ubuntu1)

Note: Not all of the above software comes installed by default. The versions above are valid as of May 2022, these are the minimum versions you get with Ubuntu server 22.04 LTS now, and updating it after the initial date may update some of the above packages with newer versions.
The installation procedure you can find here – link.
Installed packages are 617 occupying 2.3G space:. Note, this is Ubuntu server 22.04 LTS, not the minimalistic install (used for embedded systems). This server install includes OpenSSH server.

root@srv:~# dpkg-query -l|wc -l
617
[root@srv ~]# df -h /
Filesystem                         Size  Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-ubuntu--lv   57G   11G   44G  20% /
root@srv:~# du -h -d 1 -x /
36K     /root
2.2G    /usr
4.0K    /opt
5.4M    /etc
432M    /var
64K     /tmp
4.0K    /mnt
16K     /lost+found
28K     /home
4.0K    /media
4.0K    /srv
24K     /snap
11G     /

The swap file is 8G, so the real occupying space by the Ubuntu server 22.04 LTS is around 2.3G.

Security

  1. Mandatory Access Control (MAC) system – AppArmor is in enforce mode.
    root@srv:~# apparmor_status
    apparmor module is loaded.
    29 profiles are loaded.
    29 profiles are in enforce mode.
       /snap/snapd/15534/usr/lib/snapd/snap-confine
       /snap/snapd/15534/usr/lib/snapd/snap-confine//mount-namespace-capture-helper
       /usr/bin/man
       /usr/lib/NetworkManager/nm-dhcp-client.action
       /usr/lib/NetworkManager/nm-dhcp-helper
       /usr/lib/connman/scripts/dhclient-script
       /usr/lib/snapd/snap-confine
       /usr/lib/snapd/snap-confine//mount-namespace-capture-helper
       /{,usr/}sbin/dhclient
       lsb_release
       man_filter
       man_groff
       nvidia_modprobe
       nvidia_modprobe//kmod
       snap-update-ns.lxd
       snap.lxd.activate
       snap.lxd.benchmark
       snap.lxd.buginfo
       snap.lxd.check-kernel
       snap.lxd.daemon
       snap.lxd.hook.configure
       snap.lxd.hook.install
       snap.lxd.hook.remove
       snap.lxd.lxc
       snap.lxd.lxc-to-lxd
       snap.lxd.lxd
       snap.lxd.migrate
       snap.lxd.user-daemon
       tcpdump
    0 profiles are in complain mode.
    0 profiles are in kill mode.
    0 profiles are in unconfined mode.
    0 processes have profiles defined.
    0 processes are in enforce mode.
    0 processes are in complain mode.
    0 processes are unconfined but have a profile defined.
    0 processes are in mixed mode.
    0 processes are in kill mode.
    
  2. Network firewall – ufw – Uncomplicated Firewall – https://ubuntu.com/server/docs/security-firewall Despite the ufw service is loaded, the ufw by default is initially disabled.
    root@srv:~# ufw status
    Status: inactive
    root@srv:~# ufw app list
    Available applications:
      OpenSSH
    root@srv:~# ufw app info OpenSSH
    Profile: OpenSSH
    Title: Secure shell server, an rshd replacement
    Description: OpenSSH is a free implementation of the Secure Shell protocol.
    
    Port:
      22/tcp
    

Storage

Default installation on a single disk, which has only free space on your disk or you reclaimed all the occupied space during installation. Ubuntu 22.04 LTS needs around 11G of space for the default installation, so if you select a destination disk, which has less than 11G of space you should delete existing partitions to free up space or let Ubuntu 22.04 LTS installer to do default installation asking you to reclaim the disk space. We used the whole disk for the installation.
By default Ubuntu 22.04 LTS server uses.

  1. ext4 – file system
  2. 3 separate partitions – boot efi, /boot and root.
  3. root, home and swap partitions. No device mapper or LVM2.
  4. /boot, root and home on the same partition.
  5. vfat – boot efi partition.

Ubuntu server 22.04 LTS

  1. Disk layout
    root@srv:~# parted -l
    Model: ATA KINGSTON SNV425S (scsi)
    Disk /dev/sda: 128GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Disk Flags: 
    
    Number  Start   End     Size    File system  Name  Flags
     1      1049kB  1128MB  1127MB  fat32              boot, esp
     2      1128MB  3276MB  2147MB  ext4
     3      3276MB  128GB   125GB
    
  2. Mounted Partitions
    root@srv:~# df -h
    Filesystem                         Size  Used Avail Use% Mounted on
    tmpfs                              3.2G  1.9M  3.2G   1% /run
    /dev/mapper/ubuntu--vg-ubuntu--lv   57G   11G   44G  20% /
    tmpfs                               16G     0   16G   0% /dev/shm
    tmpfs                              5.0M     0  5.0M   0% /run/lock
    /dev/sda2                          2.0G  126M  1.7G   7% /boot
    /dev/sda1                          1.1G  5.3M  1.1G   1% /boot/efi
    tmpfs                              3.2G  4.0K  3.2G   1% /run/user/1000
    
  3. Partitions in configuration:

    Sponsored
    root@srv:~# cat /etc/fstab 
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    #                
    # / was on /dev/ubuntu-vg/ubuntu-lv during curtin installation
    /dev/disk/by-id/dm-uuid-LVM-YBz6gVGe8mgaW5WAvSgW6eZAf33cj5KhC9H3PxgqQdPBHUpFC7C7czyhiIUOzh7z / ext4 defaults 0 1
    # /boot was on /dev/sda2 during curtin installation
    /dev/disk/by-uuid/8b79275c-1990-47b9-a419-fe5987ddd0af /boot ext4 defaults 0 1
    # /boot/efi was on /dev/sda1 during curtin installation
    /dev/disk/by-uuid/455B-5CA3 /boot/efi vfat defaults 0 1
    /swap.img       none    swap    sw      0       0
    
  4. File system layout
    root@srv:~# ls -al /
    total 8388684
    drwxr-xr-x  19 root root       4096 May 25 12:47 .
    drwxr-xr-x  19 root root       4096 May 25 12:47 ..
    lrwxrwxrwx   1 root root          7 Apr 21 00:57 bin -> usr/bin
    drwxr-xr-x   5 root root       4096 May 25 12:44 boot
    drwxr-xr-x  21 root root       4880 May 25 13:11 dev
    drwxr-xr-x  99 root root       4096 May 25 12:50 etc
    drwxr-xr-x   3 root root       4096 May 25 12:50 home
    lrwxrwxrwx   1 root root          7 Apr 21 00:57 lib -> usr/lib
    lrwxrwxrwx   1 root root          9 Apr 21 00:57 lib32 -> usr/lib32
    lrwxrwxrwx   1 root root          9 Apr 21 00:57 lib64 -> usr/lib64
    lrwxrwxrwx   1 root root         10 Apr 21 00:57 libx32 -> usr/libx32
    drwx------   2 root root      16384 May 25 12:43 lost+found
    drwxr-xr-x   2 root root       4096 Apr 21 00:57 media
    drwxr-xr-x   2 root root       4096 Apr 21 00:57 mnt
    drwxr-xr-x   2 root root       4096 Apr 21 00:57 opt
    dr-xr-xr-x 467 root root          0 May 25 12:49 proc
    drwx------   4 root root       4096 May 25 13:04 root
    drwxr-xr-x  29 root root        860 May 25 13:05 run
    lrwxrwxrwx   1 root root          8 Apr 21 00:57 sbin -> usr/sbin
    drwxr-xr-x   6 root root       4096 Apr 21 01:02 snap
    drwxr-xr-x   2 root root       4096 Apr 21 00:57 srv
    -rw-------   1 root root 8589934592 May 25 12:44 swap.img
    dr-xr-xr-x  13 root root          0 May 25 12:49 sys
    drwxrwxrwt  12 root root       4096 May 25 12:50 tmp
    drwxr-xr-x  14 root root       4096 Apr 21 00:57 usr
    drwxr-xr-x  13 root root       4096 Apr 21 01:01 var
    
  5. LVM configuration
    [root@srv ~]# lvmdiskscan -l 
      WARNING: only considering LVM devices
      /dev/sda3      [     116.19 GiB] LVM physical volume
      0 LVM physical volume whole disks
      1 LVM physical volume
    [root@srv ~]# pvscan
      PV /dev/sda3   VG ubuntu-vg       lvm2 [
    

Memory

Idle system for several hours with no additional software installed except the OpenSSH server, which is running, occupies around 518 Mbytes of RAM.

root@srv:~# free
               total        used        free      shared  buff/cache   available
Mem:        32713832      531392    31642820        1948      539620    31715836
Swap:        8388604           0     8388604

Processes

Here is the default started processes when logged using ssh:

systemd─┬─ModemManager───2*[{ModemManager}]
        ├─agetty
        ├─cron
        ├─dbus-daemon
        ├─irqbalance───{irqbalance}
        ├─multipathd───6*[{multipathd}]
        ├─networkd-dispat
        ├─polkitd───2*[{polkitd}]
        ├─rsyslogd───3*[{rsyslogd}]
        ├─snapd───30*[{snapd}]
        ├─sshd───sshd───sshd───bash───sudo───sudo───su───bash───pstree
        ├─systemd───(sd-pam)
        ├─systemd-journal
        ├─systemd-logind
        ├─systemd-network
        ├─systemd-resolve
        ├─systemd-timesyn───{systemd-timesyn}
        ├─systemd-udevd
        ├─udisksd───4*[{udisksd}]
        ├─unattended-upgr───{unattended-upgr}
        └─wpa_supplicant

Processes detailed:

[root@srv ~]# ps axufww
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root           2  0.0  0.0      0     0 ?        S    12:49   0:00 [kthreadd]
root           3  0.0  0.0      0     0 ?        I

Kernel

Kernel version:

[root@srv ~]# uname -a
Linux srv 5.15.0-33-generic #34-Ubuntu SMP Wed May 18 13:34:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

The post Software and technical overview of Ubuntu server 22.04 LTS first appeared on Any IT here? Help Me!.

Ubuntu Server Admin

Recent Posts

How to Install nvidia-smi on Ubuntu or Debian Linux

In this article, we will see how to install nvidia-smi on Ubuntu or Debian Linux.…

5 hours ago

How to Install clang tool on Ubuntu or Debian Linux

In this article, we will see how to install clang tool on Ubuntu or Debian…

1 day ago

How to resolve Ubuntu 20.04 Container Signature Errors on Raspberry Pi ARM Devices

When working with Docker containers on Raspberry Pi devices, you might encounter frustrating signature verification…

2 days ago

How to fix DNS Resolution Issues with OpenVPN on Ubuntu 18.04

You’ve recently upgraded to Ubuntu 18.04 and found that your OpenVPN connection no longer resolves…

2 days ago

How to Fix Ubuntu 18.04 System Monitor Launch Issues

Have you ever tried to open System Monitor on your Ubuntu 18.04 system only to…

3 days ago

What is System Hardening? Essential Checklists from OS to Applications

System hardening means locking down a system and reducing its attack surface: removing unnecessary software…

3 days ago