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:
- 24.04 image: https://releases.ubuntu.com/24.04/
- 22.04 image: https://releases.ubuntu.com/22.04/
- 20.04 image: https://releases.ubuntu.com/20.04/
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.
Start the VM, then select Try or Install Ubuntu Server.
Start the VM, then select Install Ubuntu Server.
Language
Highlight your preferred language, then hit Enter.
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.
Keyboard Configuration
Choose your preferred Layout & Variant, then select Done.
Installation Type
Ensure Ubuntu Server is selected (x), then choose Done.
Network Connections
Select Done to continue as DHCP is the default.
Highlight the network interface, hit Enter then select Edit IPv4.
Set the IPv4 Method to Manual, enter the details you wish to use, then select Save.
Select Done to continue.
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:
-
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. -
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. -
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.
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.
Storage Configuration
Ensure Use an entire disk & Set up this disk as an LVM group are selected (x), the choose Done.
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.
Read the warning on disks being formatted then select Continue to confirm you are happy to proceed.
Profile Setup
These details are used to create your login account and the server hostname. Once details have been entered, select Done to continue.
Upgrade to Ubuntu Pro
Ensure Skip for now is selected (x). then choose Continue.
SSH Setup
Select Install OpenSSH Server, then select Done to continue.
Select Install OpenSSH Server, choose No for Import SSH Identity, then select Done to continue.
Select Install OpenSSH Server, choose No for Import SSH Identity, then select Done to continue.
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.
Installation Running
Wait on this screen until the installation completes.
Once the installation is complete, the Cancel update & reboot option will switch to Reboot Now. Select this option as soon as it appears.
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.
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.