Install Ubuntu Server 24.04 LTS (Noble Numbat)

Install Ubuntu Server 24.04 on a local computer or remote VPS, then configure networking, SSH and essential services.

Install Ubuntu Server 24.04 LTS (Noble Numbat)

Ubuntu 24.04 LTS (Noble Numbat) receives standard security maintenance through May 2029. This guide covers installation and initial configuration on a local computer; on a VPS, use the provider’s installer or ISO console where available.

System requirements

Plan for a dual-core 2 GHz CPU, 4 GB RAM and 25 GB of disk space; 8 GB RAM and 50 GB of disk provide more room for services. A local installation needs a USB drive of at least 4 GB. For critical workloads, plan backups and suitable disk redundancy.

Prepare installation media

Download the Ubuntu Server 24.04 ISO from the official download page. On Windows, open Rufus, select the USB drive and ISO, choose GPT for UEFI or MBR for legacy BIOS, then start writing. This erases the USB drive.

ISO: https://ubuntu.com/download/server — Rufus: https://rufus.ie/

Install Ubuntu Server

Boot from the USB drive using your computer’s boot menu and select the Ubuntu Server installer. The exact menu labels can vary. Choose your language, keyboard layout, and standard or minimized installation.

Ubuntu Server installation

Configure networking with DHCP or enter a static address, subnet, gateway and DNS servers. Select guided disk partitioning, optionally with LVM, or a custom layout. Review the destination disk before confirming because installation can erase it.

Create a server name, user and strong password. Import an SSH public key if available. Select OpenSSH Server and any optional packages you actually need, finish installation, remove the USB drive and reboot.

Initial configuration

Sign in with the account created during installation and update packages:

sudo apt update && sudo apt upgrade -y

Set the host name if necessary:

sudo hostnamectl set-hostname server01

For a static IP, edit the Netplan YAML file actually present in /etc/netplan/. Replace the interface name and addresses in this example with values for your network:

network:
  version: 2
  ethernets:
    ens33:
      dhcp4: false
      addresses: [192.168.1.100/24]
      routes:
        - to: default
          via: 192.168.1.1
      nameservers:
        addresses: [192.168.1.1]

On a remote system, try the configuration with a rollback timer before confirming it. Keep an existing console or SSH session open.

sudo netplan try

Allow SSH in UFW before enabling the firewall. Open HTTP and HTTPS only if you run a web server:

sudo ufw allow ssh
sudo ufw allow http
sudo ufw allow https
sudo ufw enable

If you manage the server through SSH, verify key login in a second session before setting PermitRootLogin no or PasswordAuthentication no in /etc/ssh/sshd_config. Check the configuration before reloading the service:

sudo sshd -t
sudo systemctl reload ssh

Optional services

Install a LAMP stack, Docker or Cockpit only if needed. Adding a user to the docker group grants substantial host privileges; log out and back in for group changes to take effect. Expose Cockpit only to trusted networks.

sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql
sudo apt install docker.io
sudo systemctl enable --now docker
sudo usermod -aG docker "$USER"
sudo apt install cockpit
sudo systemctl enable --now cockpit.socket

You can reach Cockpit at https://SERVER-IP:9090 when it is installed and allowed by the firewall.

Troubleshooting

Inspect network interfaces and connectivity, SSH logs and available disk space with these commands. Install ncdu separately if you want an interactive disk usage view.

ip a
ping -c 4 8.8.8.8
sudo journalctl -u ssh -n 50
df -h

Conclusion

The base installation is complete. Configure backups, updates, access controls and monitoring before using the server for production workloads.

Share

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0