Sub topic 1
Plan the installation: distribution, release and target
Every later decision in a server install depends on three early choices: which distribution to run, which release of it, and where it will be installed. This chapter covers how to make those choices and how to record them before you boot an installer. Changing them later usually means reinstalling.
Prerequisites
This chapter assumes you can do the following:
- Use the command line: change directories, list files, and edit a file in a terminal editor such as
nanoorvim. - Explain what an operating system, a disk, and a network address are.
- Recognize that Linux distributions differ in package manager and default settings.
- Reach a machine to install on. This can be a physical computer, a virtual machine, or a cloud console.
You do not need earlier Linux server experience. Later chapters cover installation, SSH, firewalls, and updates in order.
What you are deciding
A Linux distribution (distro) bundles the Linux kernel with a package manager, default configuration, a release schedule, and a security update policy. A release is a specific version of that distribution. A target is the place where the system will run: bare metal, a hypervisor, or a cloud provider.
Write the three choices down together with the server's purpose. A short plan prevents the common mistake of picking a distro because it is familiar, then discovering that its support window or tooling does not fit the job.
Choose a distribution
Most server distributions fall into two families. The family decides your package manager, your firewall tool, and the service names used throughout this tutorial.
| Family | Examples | Package manager | Package format | Default firewall front end | Admin group |
|---|---|---|---|---|---|
| Debian | Debian, Ubuntu Server | `apt` | `.deb` | `ufw` (Ubuntu) | `sudo` |
| RHEL | Rocky Linux, AlmaLinux, Fedora Server | `dnf` | `.rpm` | `firewalld` | `wheel` |
Use these criteria to choose:
- Existing skills and tooling. If your team already automates Debian-family systems, a second family adds work. Consistency often matters more than small technical differences.
- Application support. Check the software's documentation. Some commercial products certify only specific distributions and versions, and a vendor may decline support on others.
- Support lifetime. Servers run for years. Compare how long each release receives security fixes.
- Package freshness versus stability. Long-term releases freeze major package versions and backport only fixes. Rolling or short-cycle releases give newer software but require more frequent upgrades.
- Community and documentation. Choose a distribution whose documentation and forums you can search when something fails at 2 a.m.
Where no requirement decides it, pick a long-term-support release of a mainstream distribution. This tutorial shows commands for both families and labels each one.
Choose a release
Distributions publish two kinds of release.
- Long-term support (LTS) or stable releases receive security updates for several years. Use these for servers.
- Interim or short-cycle releases are supported for months. They suit testing and desktops, not production servers.
Before you download anything, look up the end-of-support date on the vendor's lifecycle page. Do not rely on memory or a blog post, because dates change and differ between "standard support" and "extended support" offerings.
A practical rule is to avoid the very newest point release for production work until it has been out for a few weeks, and to avoid any release that reaches end of life within the lifetime you expect for the server.
Choose an installation target
The target shapes your installer options, your boot mode, and your backup options.
| Target | Strengths | Points to check |
|---|---|---|
| Physical machine | Full hardware access, no hypervisor overhead | Firmware mode (UEFI or BIOS), disk and RAID controller support, remote console access |
| Virtual machine on your hypervisor | Snapshots, easy cloning, adjustable resources | Virtual firmware type, virtual disk format, guest drivers |
| Cloud instance | No installer to run, fast to create | You select an image, not an ISO. Provider tools handle first-boot configuration |
Cloud images are prebuilt, so many chapters on the installer apply only to physical and virtual targets. The first-boot chapters (users, SSH, firewall, updates, time) apply to all three.
Size the server
Estimate resources from the workload, then add headroom. Use these questions:
- CPU and RAM. How many concurrent users or requests do you expect? Memory is usually the first limit for databases and caches.
- Disk. How much data do you store now, and how fast does it grow? Logs, package caches, and backups also consume space.
- Network. Does the server need a static address? Will it sit behind a firewall or load balancer?
- Availability. Is a short outage acceptable, or do you need redundancy such as RAID or a second server?
Disk size affects partitioning (covered in a later chapter). It is easier to start with enough space or a layout that can grow than to resize a full disk under load.
Plan access before you install
Decide how you will reach the server after it boots. A server with no usable access path is a wasted install.
- For physical machines, confirm you have a keyboard and monitor, or out-of-band management such as a baseboard management controller (BMC).
- For virtual machines, confirm you can open the hypervisor's console.
- For all targets, plan to use SSH with keys for normal access, as set up later in this tutorial.
- Note the network details you will need: the address (static or DHCP), gateway, DNS servers, and the hostname you intend to use.
Capture the plan
A one-page plan is enough. The example below is a simple template you can keep in a text file or repository.
# server-plan.ini
[server]
hostname = web01
purpose = static website and reverse proxy
[platform]
distribution = Ubuntu Server
release = LTS
target = virtual machine
firmware = UEFI
[resources]
vcpus = 2
memory_gb = 4
disk_gb = 40
[network]
addressing = static
dns = 192.0.2.53
[access]
admin_user = admin
login = ssh key onlyThe addresses above come from a documentation range reserved for examples. Replace them with your own values. Fill in the exact release version and its end-of-support date after you check the vendor's lifecycle page.
Check the plan against the target
Run through this short list before the download:
- The application you plan to run supports your chosen distribution and release.
- The release will stay supported for as long as you expect to run the server.
- The target has enough CPU, memory, and disk for the workload.
- You know how you will reach the console during installation.
- You know the network settings the server will use.
- You have a way to take a snapshot or backup once the baseline is built.
The next chapter downloads the installation image and verifies its checksum, which depends on the distribution and release you just chose.
Common mistakes
- Choosing a short-cycle release for a long-lived server. Support ends within months, forcing an upgrade you did not plan.
- Mixing families without a reason. Different package managers and firewall tools double the commands your team must remember.
- Skipping the support-date check. A release near end of life looks fine on install day and becomes a liability soon after.
- Ignoring console access. If SSH fails during setup and you have no console, you cannot recover without physical or hypervisor access.
- Undersizing the disk. Growing a filesystem is possible but riskier than choosing a layout that leaves room.
Exercise
You must deploy a database server that will run for about five years, and your team already manages Debian-family systems. Which kind of release do you pick, and what must you verify before downloading it?
Show answer
Pick a long-term-support or stable release of a Debian-family distribution, because it receives security updates for years and matches the team's existing tools. Before downloading, check the vendor's lifecycle page to confirm the release stays supported for the five years you expect, and confirm that the database software supports that distribution and release.
Exercise
Name three items you should record in the plan before you boot an installer, and say why each matters.
Show answer
Any three of the following. The release and its end-of-support date, to avoid running an unsupported system. The firmware mode (UEFI or BIOS), because it determines the boot and partition setup. The network settings, so you can configure addressing and DNS during installation. The console or access method, so you can recover if SSH is not yet working. The disk size, because it shapes the partition layout.