Install Ubuntu Server 22
Install Ubuntu Server 22
Install Ubuntu Server 22
Table of Contents
Download Ubuntu 22.04 LTS
Update Ubuntu
Conclusion
4 GB memory,
Try Ubuntu
Heads Up: At the bottom of each installer window, you will see two menus namely "Done" and "Back", which will allow you to go
forward to next screen or go back if you want to change any installation options.
Ubuntu Server - This is the default choice for the base installation. It contains the basic set of packages that is required
for a server operating system.
Ubuntu Server (minimized) - This version has been customized to have a minimal runtime OS. This should be usually
selected when the humans are not expected to log in.
If you prefer to manually set an IP address, choose the network interface (E.g. enp6s18) by using the TAB key and hit ENTER to choose "Edit IPv4" from the list.
After choosing "Edit IPv4" option, press ENTER again and then select "Manual" from the IPv4 method list.
Manually Configure IPv4
Enter the Subnet, IP address, Gateway and Name servers in the respective column and choose "Save" and hit ENTER to save the
network configuration.
You will now be redirected to the main network configuration window again. Press the TAB key to choose "Done" and again press
ENTER to continue to the next section.
Ubuntu Server Static Network Configuration
If you want to try the new Ubuntu installer, choose "Update to the new installer" option and hit ENTER. The new installer will be
downloaded and after that the installation will continue as usual.
If you want to stick with the current Ubuntu installer, select "Continue without updating".
I want to try the new Ubuntu installer TUI, so I chose "Update to the new installer" option.
Heads Up: Please note that the question for selecting Ubuntu installer update option will not be asked in the older
Ubuntu 22.04 ISO images.
If you want to automatically partition the disk, simply choose "Use an entire disk" option.
Automatic Partitioning
You can also choose "Encrypt the LVM group with LUSK" if you want to encrypt your disk. If you chose this option, you will have to
provide a passphrase. This will enhance the security and prohibit unauthorized access to your OS.
The installer will choose the best partitioning scheme for you. You don't have do anything.
If you are beginner, you can use the automatic partitioning method and this is the default partitioning method.
Heads Up: Note that Ubuntu no longer requires a separate partition for swap space, nor will the automated install
create one.
If you prefer manual partition over auto partition, read the next section.
This method is for intermediate and advanced users. If you're not happy with auto partitioning method, you can choose "Custom
storage layout" to manually partition your disk.
Manual Partitioning
For the purpose of this guide, I will be creating the following partition scheme:
Choose free space from the available disk and hit ENTER.
Choose "Add GPT Partition" from the list and hit ENTER key.
Enter the partition size (E.g.
2G), filesystem type (E.g. EXT4), and the mount point (E.g. /boot) and select
"Create" and press ENTER. Please note that you must mention G for GB, and M for MB when defining the partition size.
Now the newly created partition will be shown under the FILE SYSTEM SUMMARY menu. Again, choose the free space and hit
ENTER, choose "Add GPT Partition".
Enter the partition size (E.g. 20GB), filesystem type (E.g. EXT4 ), and the mount point (E.g. /home ) and select
"Create" and press ENTER.
Similarly, create the root (/) partition. Select free space -> Add GPT partition. Enter the partition size, filesystem type (E.g. EXT4),
and the mount point (E.g. /) and select "Create" and press ENTER. I have assigned the remaining space to the root partition.
After creating all required partitions, review the disk partition layout. If you are satisfied with current partitioning layout, choose
"Done" and hit ENTER to save the changes.
Save Partition Changes
All the data in the disk will be deleted now. Please ensure there is no data in the drive and choose "Continue" to format the disk
partitions.
I don't have Ubuntu Pro account, so I skipped this it. You can register with Ubuntu Pro at any time later by entering the following
command:
Now the Ubuntu server installation will start. This will download and install a lots of packages. So please be patient.
Installing Ubuntu 22.04 LTS Server
Start using your newly installed Ubuntu 22.04 LTS server edition.
Update Ubuntu
The first thing after installing any OS is to update it. Ubuntu is no exception. Let us update the Ubuntu server by entering the
following commands:
During the installing updates task, you will be prompted to restart some services. Choose OK to do so.
Restart Services
After all updates are applied, remove any leftover, unnecessary packages by running the following commands:
$ sudo reboot
Conclusion
In this step-by-step tutorial, we learned how to download latest Ubuntu 22.04 LTS server version and how to create a Ubuntu
bootable USB drive using the ISO and finally how to install Ubuntu 22.04 LTS server edition with screenshots.