1.2 Linux Installation
Installing a Linux server is the first step in building infrastructure. Unlike desktop installations, server installs focus on stability, security, and minimal resource usage (no GUI).
Preparation
Section titled “Preparation”Before starting, you need the installation media (ISO): Before starting, you need the installation media (ISO):
You will typically flash this ISO to a USB drive using tools like Rufus, BalenaEtcher, or dd on Linux/Mac.
Installing Ubuntu Server
Section titled “Installing Ubuntu Server”- Boot from Media: Select “Install Ubuntu Server” in GRUB.
- Language & Keyboard: Select your preferences (English is standard for servers).
- Network Connections: The installer will attempt DHCP. For servers, you often want a Static IP (we will cover this in Module 5, but you can set it here).
- Storage Configuration:
- Use an entire disk: Easiest.
- Set up LVM: Recommended for flexibility (resizing volumes later).
- Profile Setup: Create the default user.
- Important: Ubuntu does not enable the
rootaccount password by default. The created user is added tosudoers.
- Important: Ubuntu does not enable the
- SSH Setup: Check “Install OpenSSH server”. Do not skip this.
- Snap Install: You can likely skip pre-installing snaps unless you specifically need them (e.g., Docker, Nextcloud).
- Reboot: Remove the media when prompted.
Installing Rocky Linux (RHEL Clone)
Section titled “Installing Rocky Linux (RHEL Clone)”- Boot: Select “Install Rocky Linux 9”.
- Anaconda Installer: The RHEL installer acts as a “hub”. You must clear warnings on each section.
- Installation Destination:
- Select the disk.
- Choose “Automatic” or “Custom” storage configuration.
- Network & Hostname:
- Set the hostname (e.g.,
server01.example.com).
- User Settings:
- Root Password: Set a strong root password. You can “Allow root SSH login with password” (not recommended for production) or “Lock root account”.
- User Creation: Create a regular admin user and tick “Make this user administrator” (adds to
wheelgroup).
- Software Selection: choose “Minimal Install” for servers. Avoid “Server with GUI” unless strictly necessary.