Skip to content

Click on each book below to review & buy on Amazon.

As an Amazon Associate, I earn from qualifying purchases.


Ubuntu Server Installation

This guide details how to install Ubuntu Server versions 24.04, 22.04 and 20.04.

Installation Image

The latest Ubuntu images for each release can be found using the links below:

Click on the hyperlink within the Server Install Image section to commence the Ubuntu image download.

Machine Specification

For this guide I spun up a virtual machine with 2 CPUs, 8G of Memory, a 20G OS disk and EFI enabled.

The hypervisor that I used was Oracle Virtual Box and I have a guide here that you can follow if required.

Begin Install

Start the VM, then select Try or Install Ubuntu Server.

install-grub-menu

Start the VM, then select Try or Install Ubuntu Server.

install-grub-menu

Start the VM, then select Install Ubuntu Server.

install-grub-menu

Language

Highlight your preferred language, then hit Enter.

install-language

Installer Update

If your installer is up-to-date already, this step will be skipped and you will instead be shown the keyboard configuration screen.

Select Update to the new installer.

install-installer-update

Keyboard Configuration

Choose your preferred Layout & Variant, then select Done.

install-keyboard

Installation Type

Ensure Ubuntu Server is selected (x), then choose Done.

install-install-type

install-install-type

install-install-type

Network Connections

Select Done to continue as DHCP is the default.

install-network-03

Highlight the network interface, hit Enter then select Edit IPv4.

install-network-01

Set the IPv4 Method to Manual, enter the details you wish to use, then select Save.

install-network-01

Select Done to continue.

install-network-03

Configure Proxy

If you require the use of a proxy server, enter the details on this screen in format:

http://[[user][:pass]@]host[:port]/

Here are a few examples:

  1. Proxy without authentication:

    http://proxyserver.example.com:3128/
    

    This example uses the proxy server's hostname (proxyserver.example.com) and the port (3128) without any user authentication.

  2. Proxy with authentication:

    http://username:password@proxyserver.example.com:3128/
    

    This format includes a username (username) and a password (password) for proxies that require authentication, along with the hostname and port.

  3. Proxy with username but no password:

    http://username:@proxyserver.example.com:3128/
    

    In this case, a username is provided but no password is specified after :.

Whether you specified a Proxy server or not, select Done to continue.

install-proxy

Archive Mirror

An archive mirror is a server that hosts a copy of the Ubuntu package repository. This repository contains all the software packages and updates that Ubuntu uses.

If you want to use a specific archive mirror, provide the details on this screen. Otherwise, leave the default Ubuntu mirror selected and click Done.

install-mirror

Storage Configuration

Ensure Use an entire disk & Set up this disk as an LVM group are selected (x), the choose Done.

install-storage

install-storage

install-storage

Review the default settings, which includes leaving unallocated space in the ubuntu-vg volume group for future use if needed. Once you’ve reviewed the settings, select Done.

install-storage-02

Read the warning on disks being formatted then select Continue to confirm you are happy to proceed.

install-storage-03

Profile Setup

These details are used to create your login account and the server hostname. Once details have been entered, select Done to continue.

install-profile

Upgrade to Ubuntu Pro

Ensure Skip for now is selected (x). then choose Continue.

install-ubuntu-pro

install-ubuntu-pro

install-ubuntu-pro

SSH Setup

Select Install OpenSSH Server, then select Done to continue.

install-ssh-setup

Select Install OpenSSH Server, choose No for Import SSH Identity, then select Done to continue.

install-ssh-setup

Select Install OpenSSH Server, choose No for Import SSH Identity, then select Done to continue.

install-ssh-setup

Server Snaps

Select Done without choosing any snaps.

I recommend always choosing a minimal install. Any specific package requirements should be documented for later installation. A smaller build will provide better performance and security.

install-snaps

install-snaps

install-snaps

Installation Running

Wait on this screen until the installation completes.

install-running

Once the installation is complete, the Cancel update & reboot option will switch to Reboot Now. Select this option as soon as it appears.

installation-complete

Remove the installation medium (Ubuntu Server Image) from your VM or bare metal machine, then press Enter.

If the installation medium has been automatically removed, as was the case when I installed using Oracle VirtualBox, simply press Enter.

install-remove-medium

Perform Updates

There may have been package updates since the download of the Server Install Image.

To ensure the system is up-to-date, login, then run:

sudo apt update
sudo apt upgrade -y

If packages were updated, run:

reboot

Installation Complete

The Ubuntu Server installation has now been completed and I hope you found this guide useful.


Support DTV Linux

Click on each book below to review & buy on Amazon. As an Amazon Associate, I earn from qualifying purchases.

NordVPN ®: Elevate your online privacy and security. Grab our Special Offer to safeguard your data on public Wi-Fi and secure your devices. I may earn a commission on purchases made through this link.