Sub topic 8
Installers and Out-of-the-Box Defaults
Assume you can use a Linux shell, install packages, work with systemd services, and understand basic users, permissions, and firewalls. This chapter focuses on what happens before your first application is deployed: how each distribution is installed and which services and security controls are enabled afterward.
Three installer approaches
Ubuntu Server uses the Subiquity installer. It provides a text-based interface for manual installations and supports automated installations through an autoinstall configuration. Ubuntu images commonly target cloud and virtual-machine use. Cloud images use cloud-init, which applies settings such as the hostname, SSH keys, users, and network configuration during the first boot.
Debian uses the Debian Installer, often called d-i. It supports both interactive and automated installations. Debian offers many installation images and lets you choose a relatively small base system. Its defaults tend to be conservative. You usually add only the services you need.
Rocky Linux uses Anaconda, the installer also used by other Red Hat Enterprise Linux-compatible systems. Anaconda exposes storage, network, software, and security choices during installation. Rocky Linux is commonly installed with a graphical or text interface, a kickstart file for automation, or a cloud image.
The installer determines more than the files copied to disk. It can choose the boot mode, partition layout, filesystem, hostname, network manager, enabled repositories, and initial security policy.
Default services and network behavior
A minimal installation is usually safer and easier to maintain than a general-purpose installation because it has fewer packages and listening services. Check the result instead of assuming that a service is absent or disabled.
Ubuntu Server commonly uses systemd for service management, Netplan for declaring network configuration, and NetworkManager or systemd-networkd to apply that configuration, depending on the image and release. Ubuntu cloud images also commonly use cloud-init.
Debian also uses systemd by default on standard installations. Network configuration can be managed through several methods, including traditional configuration files, NetworkManager, or systemd-networkd. The selected installation task and administrator choices matter.
Rocky Linux uses systemd and NetworkManager. Network profiles are managed with tools such as nmcli. A standard server installation commonly includes firewalld and SELinux. SELinux is normally enforcing unless the installation or later administration changes that setting.
The phrase “default installation” is therefore incomplete. A cloud image, a minimal virtual-machine image, and a full installer installation can produce different results within the same distribution.
# Review the identity and active security-related services.
. /etc/os-release
printf 'System: %s %s\n' "$NAME" "$VERSION_ID"
printf '\nListening sockets:\n'
sudo ss -tulpn
printf '\nEnabled services:\n'
systemctl list-unit-files --state=enabled --type=service
printf '\nFirewall checks:\n'
command -v ufw >/dev/null && sudo ufw status || true
command -v firewall-cmd >/dev/null && sudo firewall-cmd --state || trueInstaller defaults that affect administration
Storage defaults deserve special attention. Ubuntu may offer guided layouts using LVM and, on some installations, encrypted storage. Debian lets you choose guided partitioning, LVM, encryption, or manual layouts. Rocky Linux commonly uses LVM-based layouts and offers encryption during installation.
These choices affect later expansion, recovery, and automation. A guided layout is quick and useful for a disposable server. A planned layout is better when logs, databases, container data, or backups need separate capacity or recovery rules.
The initial user setup also differs in emphasis. Cloud images commonly disable direct password login and expect SSH keys. Installer-based systems ask you to create an administrative user. The root account may be locked, usable directly, or managed according to the installation choices. Test the intended administrative path before closing your console session.
Make defaults deliberate
Record the image name, installer configuration, partition plan, package sources, enabled services, and security mode. Store automated installation files with the rest of your infrastructure code. Repeating the same choices reduces configuration drift, which occurs when supposedly identical servers slowly acquire different settings.
For a new workload, compare the defaults with its requirements:
- Use a minimal image when the server has one clear role.
- Choose a filesystem and volume layout that matches expected growth.
- Decide whether SSH keys, passwords, or an external identity system will provide access.
- Confirm which firewall frontend and network manager your operations team will support.
- Verify the mandatory access control mode before deploying software that needs custom permissions.
Exercise
You install a Rocky Linux cloud image and expect Ubuntu commands such as ufw and Netplan to configure the host. What should you do first?
Show answer
Identify the image and inspect its defaults. Use NetworkManager tools such as nmcli, check whether firewalld is active, and confirm SELinux status with getenforce before changing configuration.