Raspberry Pi is the most popular single-board computer ever made. It is small, affordable, and surprisingly capable. People use it as:
You can run many operating systems on it, including Raspbian, Arch Linux, FreeBSD, and Ubuntu. This guide shows you how to install Ubuntu on a Raspberry Pi using the Raspberry Pi Imager tool, configure Wi-Fi before the first boot, and log in over SSH.
The easiest way to get Ubuntu onto an SD card is with Raspberry Pi Imager. It is a free, open-source tool available for Windows, macOS, and Ubuntu. Download it from the Raspberry Pi downloads page.
<strong>Important:</strong> Flashing an image erases everything on the SD card. Back up any data on it before you continue.
Insert your SD card into your computer’s card reader. Launch Raspberry Pi Imager and follow these steps:
The process takes a few minutes depending on your connection speed and card speed. When it finishes, the app shows a success message.
If you plan to connect your Raspberry Pi with an Ethernet cable, plug it into your router and skip this section.
For a wireless connection, you need to add your Wi-Fi details to the SD card before booting.
After flashing, the SD card has a partition called system-boot. Open it with your file manager. Find the file named network-config and edit it with your network name and password:
yamlversion: 2ethernets: eth0: dhcp4: true optional: truewifis: wlan0: dhcp4: true optional: true access-points: my-router: password: "S3kr1t"
Replace my-router with your Wi-Fi network name and S3kr1t with your password. Save the file and eject the SD card.
On first boot, the Pi will connect to your network automatically.
Insert the SD card into your Pi. If you are using a monitor and keyboard, connect them before plugging in the power cable. Then power on the board.
The first boot takes a few minutes. Once the Pi is online, find its IP address in your router’s DHCP lease table. Then connect over SSH:
bashssh ubuntu@192.168.1.149
The default username and password are both ubuntu.
The first time you log in, Ubuntu prompts you to change the default password. Set a strong, unique password and you are in.
<strong>Tip:</strong> If you plan to run your Pi headless (no monitor or keyboard), SSH is all you need. You can manage everything from your main computer's terminal from that point on.
Ubuntu is now running on your Raspberry Pi. From here, update the system with sudo apt update && sudo apt upgrade, install the software you need, and set it up for whatever you want to use it for. Got questions? Leave a comment below.
Ubuntu 20.04 LTS (code name Focal Fossa) was released on April 23, 2020. It is a…
Google Chrome is the most widely used web browser in the world. It is fast, secure,…
Java is one of the most widely used programming languages in the world. It runs on…
pip is Python's package manager. It lets you search, download, and install packages from the Python Package…
MySQL is the most popular open-source relational database management system. It is fast, reliable, and a…
Git is the most widely used version control system in the world. It was created by…