How to Install Ubuntu Server 24.04 | Full Setup with Disk Partitioning, Static IP & SSH Access

Installing a server OS is more than just clicking ‘Next.’ To ensure your new server is optimized for performance and network stability, you need to make critical choices during the installation process, especially regarding network configuration and storage layout.

This guide will walk you through installing Ubuntu Server 24.04 LTS (Noble Numbat) and show you how to set a static IP and manage disk space correctly during the setup process.

1. Starting the Installation

After booting from your USB or mounting the ISO (in a hypervisor like Proxmox):

  1. Language and Installer: Select your language (English) and choose to Continue without updating to save time, as updates can be run post-installation.

  2. Keyboard and Installation Type: Confirm your keyboard layout, and select Ubuntu Server for the default, full installation. You can also choose the minimal version to reduce the operating system size.

2. Setting a Static IP Address (Crucial Step)

Relying on DHCP is risky for a server. To ensure your server’s IP never changes, you must set it statically during the installation.

  1. Enter Network Settings: On the Network Connections screen, highlight your network interface (ens18, eth0, etc.) and hit Enter.

  2. Change Method to Manual: Select IPv4 and change the method from Automatic to Manual

  3. Define Subnet: Enter the full network address with the CIDR suffix (e.g., 10.0.0.0/8). This is the network range, not the subnet mask.

  4. Enter IP Details:

    • Address: Your desired static IP (e.g., 10.0.0.21).

    • Gateway: Your router’s IP address.

    • Name servers: Use reliable public DNS (e.g., Google’s 8.8.8.8).

  5. Save and confirm the configuration is now listed as Manual.

3. Fixing Disk Partitioning

The installer often defaults to using less than the full disk space, which is an error you must correct before proceeding.

  1. Choose Disk Layout: On the Storage Configuration screen, select Use an entire disk and hit Done.

  2. Review the Layout (And Fix It): The default layout often incorrectly shows the root partition (/) size as half of the total disk space (e.g., 48GB instead of 97GB).

  3. Edit the Disk: Scroll down to Used Devices and select Edit.

  4. Maximize Space: Find the largest partition (ext4) and change the New size field to use the full available space (e.g., 97.996G). Hit Save.

    • (Optional: If you need to manually partition, you can choose Custom storage layout and define partitions for /boot and / manually).

  5. Confirm and Continue: Hit Done to accept the final, correctly sized disk layout.

    4. Finalizing the Installation

    1. Profile and SSH: Enter your username, server name, and password.

    2. Install OpenSSH Server: Crucially, ensure you check the box to install OpenSSH server. This allows you to remotely access and manage your server using PuTTY or any SSH client.

    3. Featured Snaps: Skip the suggested snaps (like Docker or Nextcloud) if you prefer to install and configure software manually .

    4. Reboot: Wait for the installation to complete, then select Reboot Now .

    Your Ubuntu server is now installed with a stable static IP, correctly sized disk space, and remote SSH access enabled!

Leave a Reply

Your email address will not be published. Required fields are marked *