Featured image for "Ubuntu Desktop 22.04 – Installation Guide" article on Zacks.eu, showing a GNOME desktop surface of Ubuntu 22.04.

Ubuntu Desktop 22.04 – Installation Guide

Author:
Željko Jagušt
Publish Date:
December 8, 2022
Estimated Reading Time:
17 minutes

Ubuntu 22.04 was released in April 2022 and is the latest stable LTS (long-term support) version of their operating system. This step-by-step installation guide will show you how to install it on your computer or as a VirtualBox virtual machine.

Ubuntu Desktop 22.04 – Prerequisites

You will need a suitable computer or a VirtualBox to install Ubuntu Desktop 22.04. Once you opt for which one you want, you can download the installation ISO. Click on the button below this text to download the ISO image:

If you want to try Ubuntu Desktop 22.04 inside a virtual machine, you don’t have to create an installation media; the ISO image is enough to create your virtual machine and start with the installation. We will show you how to do it in VirtualBox later in this article.

If you opt for installation on your computer, you must create an installation media first. A USB stick of at least 8GB is recommended; you will need software to make it. If you are creating it on Microsoft Windows, I recommend Rufus, and you can download the latest version of it by clicking on the button below this text:

You can use the dd CLI command to create installation media for any Linux operating system. This article will show you how to do it further below.

Create Installation Media – Microsoft Windows

Go to a location where you downloaded Rufus and right-click on the file. From the drop-down menu, click on Run As Administrator:

Windows File Explorer showing the Downloads folder with the Rufus executable file selected. The context menu is open with the "Run as administrator" option highlighted.
Rufus – Run As Administrator

Now, you need to select Ubuntu Desktop 22.04 ISO image. To do so, click on the SELECT button:

Rufus application is running with the "SELECT" option highlighted.
Rufus – Select

Once you click on the SELECT button, a new window will open. It will allow you to select the Ubuntu installation image. Go to a location where you saved the image, select it, and click Open:

Windows File Explorer showing the Downloads folder with the Ubuntu ISO image file highlighted.
Ubuntu Desktop 22.04 ISO Image

With the image selected, click the drop-down menu below the Partition scheme and choose GPT. Once done, you can click on the START button to create a bootable USB:

Rufus application is running with partition scheme option is highlighted and set to "GPT". Start button is also highlighted indicating the bootable media operation can commence.
Rufus – Start
Loader image

If all goes well, Rufus will inform you that everything is good by highlighting the READY bar in green. The operation will take several minutes to complete. To finish, click the CLOSE button, safely eject the USB drive, and plug it into the computer where you wish to install Ubuntu.

Create Installation Media – Linux Systems

On Linux systems, you don’t need a special GUI tool to create a bootable USB drive. While such tools exist, I will make a bootable USB drive with a CLI (command-line interface) command called dd in this example.

Once you insert a USB stick into the computer, the system will probably initialize it immediately. To check if that is so, start the Terminal and execute the following command:

df -h
Linux terminal application is running, showing the output of the "df -h" command.
df Command Output

As you can see in the example above, my PNY_USB is mounted at /home/zack/PNY_USB. To continue, I need to unmount it first. I will do so by executing the umount command. You can do the same. Just pay attention to where the USB is mounted (in my case, it is /home/zack/PNY_USB):

sudo umount /home/zack/PNY_USB

You can check if the umount was successful by executing the lsblk command with the following parameters:

lsblk | grep -v loop
Linux terminal application is running, showing the output of "lsblk" command, with result for primary disk highlighted.
lsblk Command Output

In the example above, please notice the MOUNTPOINTS column. Nothing is present for my sda drive, which is my USB stick. With that confirmed, I can now execute the dd command, which will “burn” the Ubuntu Desktop 22.04 ISO image to my USB stick. Make sure to modify the path to your Ubuntu ISO image (if= parameter) and the path to your USB drive (of= parameter) before you execute the command:

sudo dd if=/home/zack/Downloads/ubuntu-22.04.1-desktop-amd64.iso of=/dev/sda bs=8M status=progress
Linux terminal application is running, showing the example of dd command writing the content of ISO file to a USB media.
dd Writing ISO

You may notice that the whole operation freezes, and it looks like nothing is happening. Looking at the image above, you may notice it took dd 72 seconds to write the image, yet the whole operation took 295 seconds. You may also notice I used a bs parameter (BYTES) of 8M. So, what is going on here?

It’s like this: dd reads and writes ISO images in blocks of 8MB, but it does not write the image directly on the USB drive. It sends it to a “temporary IO buffer,” from which it is eventually written on a USB drive. So, it took 72 seconds for a dd to “transfer” an image to a temporary buffer, and then an additional 223 seconds (295-72) were required for the image to be written on the USB drive. You can find an in-depth explanation of this on the following link:

You can actually “see” all of that. To do so, open another terminal window and execute the following command:

watch -n1 cat /proc/meminfo
Linux terminal application is running, showing the output of the watch command set to interval of 1 second while observing the output of /proc/meminfo where Dirty item is highlighted.
Watching meminfo Output in Intervals of 1s

After you execute the watch command, please pay attention to the Dirty value; with time, it will slowly decrease, and when it hits a couple of kilobytes, your dd operation will finish. Now, how cool is that? Linux lets you see everything 🙂

After the operation is complete, your Ubuntu Desktop 22.04 bootable USB is done. You can safely remove it and plug it into the computer where you want Ubuntu installed.

Ubuntu Desktop 22.04 – Installation

I will cover both installations on a physical computer and a VirtualBox virtual machine. The installation procedure is identical, with the only difference being that you will need installation media created for a physical computer, which we covered in the previous section of this article.

For a virtual machine, you must install a VirtualBox on your computer and an ISO image of Ubuntu Desktop 22.04. We have an article on how to install VirtualBox both on Ubuntu Linux and Windows:

Featured image for "VirtualBox Installation & Configuration Guide" article on Zacks.eu, showing VirtualBox logo on an eye-candy background.

VirtualBox – Installation & Configuration Guide

VirtualBox is type-2 hypervisor. Find out more about it in our detailed VirtualBox installation and configuration guide.

VirtualBox Machine Setup

As soon as you start VirtualBox, from the Welcome screen, click on the Tools menu button and then on Media:

Oracle VM Virtual Box Manager application is running with Tools menu opened and Media option highlighted in the context menu.
VirtualBox Manager – Media Menu

Hard disks tab will be first selected, and from there, click on the Create button to add a hard disk for the virtual machine:

Oracle VM Virtual Box Manager application is running with Create new hard disk option highlighted.
VirtualBox Manager – Create HDD

Once the Create Virtual Hard Disk window is open, please click on the Expert Mode button:

Oracle VM Virtual Box Manager application is running with "Create Virtual Hard Disk" context window opened and "Expert Mode" button highlighted.
VirtualBox Manager – HDD Expert Mode

Here, you need to configure a hard disk for your virtual machine. Please set the size (1 – I recommend setting 40GB or more here), choose a type (2), set it to be pre-allocated (3), give it a name, and define where it’s going to be saved (4). Once you have done it all, please click the Finish button to complete adding a disk:

Oracle VM Virtual Box Manager application is running with "Create Virtual Hard Disk" context window opened showing options for new virtual hard disk.
VirtualBox Manager – HDD Settings

With the hard disk created, switch to the Optical disks tab (1) and click on Add button (2):

Oracle VM Virtual Box Manager application is running with Add new optical disk option highlighted.
VirtualBox Manager – Add ISO Image

Browse to where you downloaded the Ubuntu Desktop 22.04 ISO image and add it to Optical disks.

Oracle VM Virtual Box Manager application is running with Ubuntu ISO image highlighted.
VirtualBox Manager – Select ISO Image

With hard disk and ISO added, you can go back to the Welcome screen and click the New button to add a virtual machine for Ubuntu Desktop 22.04:

Oracle VM Virtual Box Manager application is running with add New virtual machine button highlighted in main menu.
VirtualBox Manager – Add New VM

Create Virtual Machine window will pop up. Please first click on the Expert Mode button near the bottom edge of the window. With expert mode active, you need to give your virtual machine a name (1), select the correct ISO image (2), and uncheck the Skip Unattended Installation option (3):

Oracle VM Virtual Box Manager application is running with with "Create Virtual Machine" context window in foreground displaying new virtual machine configuration options.
VirtualBox Manager – Name and Operating System

Now click on the Hardware section. You must define the amount of RAM (1) and CPU cores (2) you want to assign to a virtual machine. When talking about virtualization, let’s call it “an industry standard” to assign 2GB of RAM (2048MB) per 1 CPU core, but this is not mandatory. Also, check Enable EFI option (3) here:

Oracle VM Virtual Box Manager application is running with with "Create Virtual Machine" context window in foreground displaying memory and processor options for new virtual machine.
VirtualBox Manager – Hardware Options

Last, click on the Hard Disk section. Here, click on Use an Existing Virtual Hard Disk File (1), and select the one you created a few steps back (2):

Oracle VM Virtual Box Manager application is running with with "Create Virtual Machine" context window in foreground displaying virtual hard drive selection.
VirtualBox Manager – Use Existing HDD

Please click on the Finish button to complete setting up your virtual machine.

VirtualBox Machine Additional Settings

At this point, you can start the virtual machine and start with the installation of Ubuntu Desktop 22.04. But I strongly advise you to review the following settings as they will significantly improve your virtual machine performance. To do so, please click on the Settings button:

Oracle VM Virtual Box Manager application is running with a highlighted Setting tab for a new virtual machine.
VirtualBox Manager – VM Settings

Once the Settings window pops up, please click on the System section (1) and uncheck Floppy under Boot Order (2), as it will not be required. Once done, click on the Processor tab (3):

Oracle VM Virtual Box Manager application is running with Virtual Machine Settings context window in the foreground and Processor tab highlighted.
VirtualBox Manager – VM System Settings

On the Processor tab, please check the Enable PAE/NX option. If you have an AMD CPU and you enabled virtualization in the BIOS, the Enable Nested VT-x/AMD-V option will also be available so that you can check that one. Unfortunately, Oracle is still unclear as to why that option is not available for Intel CPUs.

Oracle VM Virtual Box Manager application is running with virtual machine settings window opened in a foreground. Processor tab is active with "Enable PAE/NX" option highlighted.
VirtualBox Manager – CPU Settings

Next, click on the Display section (1) and check the Enable 3D Acceleration option (2):

Oracle VM Virtual Box Manager application is running with virtual machine settings window opened in a foreground. Screen tab is active with "Enable 3D Acceleration" option highlighted.
VirtualBox Manager – Display Settings

Now click on the Storage section (1). There, click on Controller: SATA (2) and check the Use Host I/O Cache option (3):

Oracle VM Virtual Box Manager application is running with virtual machine settings window opened in a foreground. Storage options are displayed.
VirtualBox Manager – Storage Settings

On the Audio section (1), you can altogether disable audio by unchecking the Enable Audio option (2), as it is not required:

Oracle VM Virtual Box Manager application is running with virtual machine settings window opened in a foreground. Audio options are displayed.
VirtualBox Manager – Audio Settings

Last, switch to the Network section (1), expand the Advanced options (2), and select Paravirtualized Network (virtio-net) option (3) in the drop-down menu:

Oracle VM Virtual Box Manager application is running with virtual machine settings window opened in a foreground. Network options are displayed.
VirtualBox Manager – Network Settings

This should cover all the required settings, so please click the OK button to close the virtual machine Settings window. Now, you can start the virtual machine and install Ubuntu Desktop 22.04.

Installation Procedure

From this point on, everything is the same, whether you choose to install Ubuntu Desktop 22.04 on a virtual machine or a physical computer. Plug the USB into the computer where you wish to install Ubuntu and start it (or power up the virtual machine). Once the installer loads, please select Try or Install Ubuntu:

Ubuntu operating system GRUB menu is displayed with "Try or Install Ubuntu" option highlighted.
Ubuntu Desktop 22.04 – GRUB Menu

On the Welcome screen, please select the language for your installation (1) and click on the Install Ubuntu button (2):

Ubuntu operating system installer Welcome screen is displayed.
Ubuntu Desktop 22.04 – Choose Installation Language

Select a keyboard layout best suited for you and click on the Continue button:

Ubuntu operating system installer Keyboard layout screen is displayed.
Ubuntu Desktop 22.04 – Choose Keyboard Layout

On the following screen, you need to choose the type of installation. Selecting a Normal Installation here is fine, but be warned that some software you don’t want or do not intend to use may be installed once the installation is complete.

On the other hand, Minimal Installation will install Mozilla Firefox and a few basic utils, leaving you the choice of installing all other software. I always select this, so please feel free to do it (1). Installing third-party software (2) is optional, but I usually choose it. Once done, please click the Continue button (3):

Ubuntu operating system installer Updates and other software screen is displayed.
Ubuntu Desktop 22.04 – Updates and Software Selection

Selecting Erase disk and installing Ubuntu on the Installation type screen is perfectly fine. But I would like you to consider creating the partitions by selecting Something else. I suggest the following partitioning scheme:

  • Boot partition, size 1GB, ext2 file system (journaling not required)
  • GRUB partition, size 2MB, no file system (unformatted)
  • EFI partition, size 128MB, no file system (unformatted)
  • Swap partition, size 1GB, no file system (unformatted)
  • Root partition, size 16-32GB. ext4 or xfs file system
  • Home partition, rest of the disk, ext4 or xfs file system

So, if you opt for manual partitioning, please select Something else, but don’t click on the Continue button once you do. Instead, press the Crtl and F2 keys on your keyboard simultaneously to switch to the console. In the next step, I will show you how to do the partitioning there by using parted.

Ubuntu operating system installer Installation type screen is displayed.
Ubuntu Desktop 22.04 – Disk Setup

Once you drop into the console, you will be asked to enter a username. A default username here is ubuntu, so please use that one (no password is required). Once you log in, root privileges are required to create partitions. To “log in” as root, please execute the following command:

sudo su -
Linux terminal application is running with "sudo su -" command executed.
Ubuntu Desktop 22.04 – Console Login

The first command you need here is lsblk (see picture below). It will list all the “disk-like” devices on your computer. You’re probably looking for sda (for HDDs and SSDs) or nvme0n1 (for NVMe drives). Once you determine the correct disk, you can execute the parted command with all the required parameters for all partitions. To do so, please run the following command (root between 16-32GB):

parted /dev/sda mklabel gpt mkpart boot 1MiB 1025MiB mkpart grub 1025MiB 1027MiB mkpart EFI-SP 1027MiB 1155MiB mkpart swap 1055MiB 2179MiB mkpart root 2179MiB 34947MiB mkpart home 34947MiB 100%
Linux terminal application is running with the example of parted command showing how to partition disk.
Ubuntu Desktop 22.04 – Create Partitions

Once you’re done, press Ctrl and F1 keys on your keyboard simultaneously to return to the installer. From there, make sure Something else is selected and click on the Continue button:

Ubuntu operating system installer Installation type screen is displayed with "Something else" option selected.
Ubuntu Desktop 22.04 – Continue Installation

At this stage, all the partitions can be prepared (formatted) for installation. Start with boot and work your way down to the home partition.

Select /dev/sda1 (1), click on the Change… button (2), select Ext2 file system, and check Format the partition (3). Select /boot (4) and click the OK button (5) to confirm:

Ubuntu operating system installer Disk Partitioner is displayed with the options for the boot partition.
Ubuntu Desktop 22.04 – Boot Partition

Select /dev/sda2 (1), click on the Change… button (2), and select Reserved BIOS boot area (3). Click the OK button (4) to confirm:

Ubuntu operating system installer Disk Partitioner is displayed with the options for the reserved BIOS boot area.
Ubuntu Desktop 22.04 – GRUB Partition

Select /dev/sda3 (1), click on the Change… button (2) and select EFI System Partition (3). Click the OK button (4) to confirm:

Ubuntu operating system installer Disk Partitioner is displayed with the options for the EFI system partition.
Ubuntu Desktop 22.04 – EFI Partition

Select /dev/sda4 (1), click on the Change… button (2) and select swap area (3). Click the OK button (4) to confirm:

Ubuntu operating system installer Disk Partitioner is displayed with the options for the swap area.
Ubuntu Desktop 22.04 – Swap Space

Select /dev/sda5 (1), click on the Change… button (2), select Ext4 journaling file system, and check Format the partition (3). Select / (4) and click the OK button (5) to confirm:

Ubuntu operating system installer Disk Partitioner is displayed with the options for the root partition.
Ubuntu Desktop 22.04 – Root Partition

Select /dev/sda6 (1), click on the Change… button (2), select Ext4 journaling file system, and check Format the partition (3). Select /home (4) and click the OK button (5) to confirm:

Ubuntu operating system installer Disk Partitioner is displayed with the options for the home partition.
Ubuntu Desktop 22.04 – Home Partition

With all of the partitions prepared, please click on the Install Now button to continue with the installation:

Ubuntu operating system installer Disk Partitioner is displayed with the partitions summary.
Ubuntu Desktop 22.04 – Start Installation

On the next screen, please click on the Continue button to confirm all the changes on the disk:

Ubuntu operating system installer asking to write partitions to the disk.
Ubuntu Desktop 22.04 – Confirm Disk Changes

Your location (1) will be (most probably) detected automatically, but you can manually enter the correct one if the automatic choice is incorrect. Once done, click on the Continue button (2):

Ubuntu operating system installer Location selection screen is displayed.
Ubuntu Desktop 22.04 – Your Location

Setting the correct location affects how your operating system will “behave” regarding some tasks it will perform, among others:

  • Software using location information
    • Today, many software programs (e.g., web browsers and any map software) use location information to give users as much relevant information as possible.
  • Operating system updates
    • Ubuntu will try to access the closest update mirror server when pulling updates. If you defined your location correctly and there is an update mirror server in your country, updates will be downloaded from that server. This will save you both time and bandwidth while performing updates.

The last information the installer will require from you is your user data. The picture below is self-explanatory enough, so fill in all the required data and click the Continue button once you do:

Ubuntu operating system installer User details screen is displayed.
Ubuntu Desktop Install – User profile

Now, you can sit, relax, and pat yourself on the back for a well-done job. The installation itself will take some time to complete:

Ubuntu operating system installer installation progress is displayed.
Ubuntu Desktop Install – Installation progress

Once the installation is complete, please restart your computer by clicking on Restart Now button:

Ubuntu operating system installer installation complete pop-up window is displayed.
Ubuntu Desktop Install – Installation complete

Ubuntu Desktop 22.04 – Final Steps

Once your computer boots up again, a login screen will be displayed. Click on your username:

Ubuntu operating system login screen.
Ubuntu Desktop Install – Login screen

On the following screen, write your password and press Enter key to continue:

Ubuntu operating system login screen password entry is displayed.
Ubuntu Desktop Install – Enter Password

After you log in, there will be some additional steps your new Ubuntu will ask you to do. First, you will have the option to sign in to one of many offered online services. You can skip this step if you wish:

Ubuntu Online Accounts application is opened.
Ubuntu Desktop Install – Online accounts
Loader image

On the next screen, unless you have an Ubuntu Pro subscription, you can click the Next button and skip Livepatch setup:

Ubuntu Livepatch application is opened.
Ubuntu Desktop Install – Livepatch Setup

Help improve Ubuntu screen will allow you to send usage information to Canonical (Ubuntu creators). I opt not to send it, but the choice is yours here (1). Once you make up your mind, click on the Next button (2):

Ubuntu post-install process is asking to send system info to Canonical.
Ubuntu Desktop Install – Send System Info

Again, it is up to you whether to enable the location service. It may have little effect on how your apps behave. Once you decide, click on the Next button.

Ubuntu post-install process Privacy window is opened.
Ubuntu Desktop Install – Location Services

And you’re finally ready to go! I will not show you how to install any software here, as we will soon have an article on how to install some applications we recommend for Ubuntu Desktop 22.04. Until then, click on the Done button to exit to the desktop:

Ubuntu post-installation process is completed.
Ubuntu Desktop Install – Done Screen

You may notice a Software Updater application popped up before while you were still performing the last few steps. Please feel free to click on the Install Now button to install the latest updates for your Ubuntu Desktop 22.04:

Ubuntu operating system default desktop is shown with a pop-up window active asking to perform system update.
Ubuntu Desktop Install – Install updates

You will be asked to enter your password to continue and install updates, so please do so once the Authentication Required window pops up:

Ubuntu operating system default desktop is shown with a pop-up window active asking user to authenticate for elevated privileges.
Ubuntu Desktop Install – Enter Password

With updates installed, your Ubuntu Desktop 22.04 system is ready for usage:

Ubuntu operating system default desktop is displayed.
Ubuntu Desktop Install – Ready to Use

Thank you for reading, and enjoy your Ubuntu Desktop 22.04 – Jammy Jellyfish.


Spread The Word


Leave a Comment

    1. Author

      Hey rion,

      Thanks for the suggestion! However, I need to highlight a few caveats. Using `oflag=sync` ensures that the system syncs after each output block, which could significantly slow down the entire data transfer process. Additionally, if we don’t use `oflag=direct`, large volumes of writes can accumulate in the system’s page cache, potentially degrading the performance of all devices.

MONTHLY POLL

What are your preferred resources for learning about system administration?

View Results

Loading ... Loading ...