How to Install Ubuntu Desktop on Raspberry Pi

Step by step tutorial for getting your favorite Ubuntu desktop on your Raspberry Pi.
Warp Terminal

The best operating system for the Raspberry Pi is the official Raspberry Pi OS, specially for general purpose desktop usage. It is based on Debian and uses a lightweight Pixel desktop environment.

But as Raspberry Pi devices have gotten more powerful, you can use your favorite Ubuntu desktop on them, specially on the 8 GB RAM models.

This guide will walk you through the process of installing Ubuntu Desktop on a Raspberry Pi.

Which Raspberry Pi devices are supported by Ubuntu?

Ubuntu supports all major Raspberry Pi models:

Before Raspberry Pi 4, only the server version of Ubuntu was available for Raspberry Pi. The desktop experience wasn’t officially supported.

But with the increase in hardware power, Ubuntu started offering a fully supported desktop image for the Raspberry Pi, allowing you to run a regular desktop environment with ease.

Prerequisites

To ensure a smooth installation, gather the following materials and equipment:

  1. A Linux, Windows, or macOS system with an active internet connection.
  2. Raspberry Pi Imager: The official GUI-based tool for flashing operating systems onto microSD cards.
  3. MicroSD Card: A minimum of 16 GB, but 32 GB or more is recommended for better performance and storage capacity.
  4. Micro HDMI to Standard HDMI (A/M) cable (for Pi 4/5)
  5. Official power supply
  6. USB keyboard and mouse
📋
While the Raspberry Pi 5 has improved performance over the Pi 4, the installation process is quite similar for both.

Step 1: Preparing the Ubuntu desktop image for Raspberry Pi

The Raspberry Pi Imager tool simplifies the process of preparing your SD card with the right operating system.

You can download it from the official Raspberry Pi website. It is available for Linux, macOS, and Windows.

Write the Image to the SD Card

  1. Launch Raspberry Pi Imager. Click on “CHOOSE OS” and select “Other general-purpose OS > Ubuntu”.
  2. Select the latest Ubuntu Desktop version for your Raspberry Pi 4 or 5. (For Pi 4, this could be Ubuntu Desktop 21.04 or later. For Pi 5, look for the latest available version.)
  3. Under the storage section, click on “CHOOSE STORAGE” and select your microSD card from the list.
  4. Click “WRITE” to begin the process. This will flash the Ubuntu Desktop image to the SD card.
💡
If you have network issues, you can download the appropriate image separately from Ubuntu’s official website and use the “Use custom” option in Raspberry Pi Imager, or use tools like Etcher to write the image to your SD card.

Step 2: Booting Ubuntu on Raspberry Pi

Once the SD card is ready, it’s time to boot up the Raspberry Pi.

  1. Insert the microSD card into the slot located on the bottom of the Pi board.
  2. Connect all necessary peripherals: HDMI display, keyboard, mouse, and power supply.
  3. Power on the Raspberry Pi.
Installing Ubuntu desktop on Raspberry Pi

Step 3: Initial Setup of Ubuntu Desktop

The first boot will take you through the initial setup process:

  1. Select your language.
Select language while installing Ubuntu on Raspberry Pi
  1. Choose your keyboard layout.
Choose keyboard layout while installing Ubuntu on Raspberry Pi
  1. Connect to Wi-Fi (or configure Ethernet if you prefer).
Connect to network while installing Ubuntu on Raspberry Pi
  1. Set your time zone.
Select timezone while installing Ubuntu on Raspberry Pi
  1. Create a user account with a username and password.
Create user account while installing Ubuntu on Raspberry Pi

The system will configure itself, and after a short while, your Pi will reboot into the Ubuntu desktop screen.

Ubuntu deskop on Raspberry Pi
💡
When you are downloading deb file for a software, get the ARM version. ARM is the CPU architecture used by Raspberry Pi Also note that now all applications provide an ARM version.

Tips for optimizing Ubuntu for Raspberry Pi

While Ubuntu Desktop runs well on Raspberry Pi 4 and Pi 5, there are a few tweaks to enhance performance:

  1. Swap memory: Increase the swap memory to prevent your Pi from running out of RAM during heavy usage. This may lead to decreased lifespan of SD card, though.
  2. Resolution adjustments: If you notice performance drops, adjusting the display resolution might help.
  3. Overclocking (Optional): Raspberry Pi 4 and Pi 5 support overclocking, which can improve performance but may reduce system stability. Make sure to back up your data if you decide to overclock.

Conclusion

Ubuntu brings the familiar Linux desktop to your Pi, enhancing the potential for development, learning, and experimentation. Not only it gives you a polished Linux experience, but also lets you access Ubuntu’s vast software library.

If you encounter any issues during installation or need further guidance, feel free to drop your questions in the comments below. Happy experimenting!

About the author
Avimanyu Bandyopadhyay

Avimanyu Bandyopadhyay

Tech Nerd at It's FOSS | Doctoral Researcher on GPU-based Bioinformatics and author of <a href="https://www.packtpub.com/product/hands-on-gpu-computing-with-python/9781789341072">'Hands-On GPU Comput

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.