How to install Ubuntu on Raspberry Pi

Raspberry Pi has always been the most popular single board computer. It can be used for various purposes, such as: desktop PC, home audio and video center, smart WI-FI router, automated operating system and game server. There are countless user scenarios.

If your Raspberry Pi does not come with an SD card pre-installed with NOOBS when it leaves the factory, you need to manually install an operating system on your SD card. You can run many different operating systems on Raspberry Pi, including: Windows 10 IoT, FreeBSD, and various Linux distributions, such as Arch Linux and Raspbian.

This guide describes how to install Ubuntu on a Raspberry Pi. Ubuntu is the most popular Linux distribution. It can run on a variety of hardware, from high-end computers to micro devices, such as Raspberry Pi.

Installing Ubuntu is very simple, just write an SD card. We will show you how to flash the Ubuntu image, start the Raspberry Pi, and connect to the Internet.

1. Flash image to SD card##

There are many different free applications that we can use to import ISO images into SD cards. In this guide, we will use Raspberry Pi Imager.

Raspberry Pi Imager is an open source tool used to flash the operating system running on the Raspberry Pi to the SD card. The operating system can be Windows, macOS, and Ubuntu.

Go to Raspberry Pi download page, download the latest version of Imager suitable for your operating system, and install this application.

Please note that flashing an image to the SD card is a destructive process, it will erase all data. If you have data on the SD card, back up it first.

  1. Insert the SD card into your SD card reader and start the Raspberry Pi Imager application:

  1. Click the "CHOOSE OS" button, open the menu, select the operating system, scroll down, and select "Ubuntu":

  1. You will be shown a series of Ubuntu images for selection. Choose according to your Pi version. In this guide, we use Raspberry Pi 4 (4 GB RAM) and choose Ubuntu 20.04 64-bit:

  1. Click the "CHOOSE SD CARD" button and select the SD card you inserted in the new menu. If you insert multiple SD cards into the system, please make sure you select the correct disk drive before flashing the image.

  1. Click the "WRITE" button, Raspberry Pi Imager will download the selected image and start the flashing process:

This process will take a few minutes, depending on your file size and SD card speed.

  1. After success, the application will display the following information:

that's it! You have installed a bootable Ubuntu on your SD card.

Two, network settings##

You can connect your Pi to the network, using Ethernet or Wi-Fi. If you plan to use a wired connection, please use a network cable to connect Pi to your home router, and skip the next step in this section.

To connect your Pi to a wireless network at startup, you need to edit the network configuration file and enter your Wi-Fi information.

  1. If you remove your SD card from your computer card reader, please reinsert the card reader. The SD card will be automatically mounted.

  2. Use your file manager to browse to the system-boot partition on the SD card.

  3. Open the network-config file and update it with WiFi authentication information. For example, if your wifi network name is "my-router" and your wifi password is "S3kr1t", you should edit the file as follows:

version:2
ethernets:
eth0:
 dhcp4:true
 optional:true
wifis:
 wlan0:
 dhcp4:true
 optional:true
 access-points:
 my-router:
  password:"S3kr1t"
  1. Save the file and remove the SD card from your computer. When booting up, your Pi will automatically connect to the specified network.

Three, start Raspberry Pi

You can use Raspberry Pi as a headless machine and connect to the Pi via SSH, or connect to an HDMI display.

Insert your SD card into your Pi and turn on the power. If you are using a monitor and keyboard, please plug them in before you power on the Raspberry Pi motherboard.

The default username is ubuntu and the password is ubuntu.

Pi will take a few minutes to start up. Once it is up and online, you can see your Raspberry Pi IP address on your router's DHCP lease table, and log in to your Ubuntu via SSH:

ssh [email protected]

When you log in for the first time, you will be asked to change the ubuntu user password.

Four, summary##

Installing Ubuntu on the Raspberry Pi is a very straightforward process. All you need to do is to write the image to the SD card and start the Raspberry Pi.


Recommended Posts

How to install Ubuntu on Raspberry Pi
How to install Ubuntu 19.10 on Raspberry Pi 4
How to install Ruby on Ubuntu 20.04
How to install Memcached on Ubuntu 20.04
How to install Java on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
How to install Elasticsearch on Ubuntu 20.04
How to install Protobuf 3 on Ubuntu
How to install Nginx on Ubuntu 20.04
How to install Git on Ubuntu 20.04
How to install Node.js on Ubuntu 16.04
How to install MySQL on Ubuntu 20.04
How to install Vagrant on Ubuntu 20.04
How to install Bacula-Web on Ubuntu 14.04
How to install PostgreSQL on Ubuntu 16.04
How to install Git on Ubuntu 20.04
How to install Anaconda3 on Ubuntu 18.04
How to install Memcached on Ubuntu 18.04
How to install Jenkins on Ubuntu 16.04
How to install MemSQL on Ubuntu 14.04
How to install Go on Ubuntu 20.04
How to install MongoDB on Ubuntu 16.04
How to install Mailpile on Ubuntu 14.04
How to install PrestaShop on Ubuntu 16.04
How to install Skype on Ubuntu 20.04
How to install Jenkins on Ubuntu 20.04
How to install Python 3.8 on Ubuntu 18.04
How to install KVM on Ubuntu 18.04
How to install KVM on Ubuntu 20.04
How to install opencv3.0.0 on ubuntu14.04
How to install Anaconda on Ubuntu 20.04
How to install Prometheus on Ubuntu 16.04
How to install Jenkins on Ubuntu 18.04
How to install Apache on Ubuntu 20.04
How to install R on Ubuntu 20.04
How to install Moodle on Ubuntu 16.04
How to install Solr 5.2.1 on Ubuntu 14.04
How to install Teamviewer on Ubuntu 16.04
How to install MariaDB on Ubuntu 20.04
How to install Nginx on Ubuntu 20.04
How to install Mono on Ubuntu 20.04
How to install Go on Ubuntu 20.04
How to install Zoom on Ubuntu 20.04
How to install Nginx on Ubuntu 16.04
How to install OpenCV on Ubuntu 20.04
How to install Spotify on Ubuntu 20.04
How to install Postman on Ubuntu 18.04
How to install Go 1.6 on Ubuntu 16.04
How to install Go on Ubuntu 18.04
How to install MySQL on Ubuntu 14.04
How to install PostgreSQL on Ubuntu 20.04
How to install VLC on Ubuntu 18.04
How to install TeamViewer on Ubuntu 20.04
How to install Webmin on Ubuntu 20.04
How to install Bacula Server on Ubuntu 14.04
How to install MySQL on Ubuntu 18.04 (linux)
How to install Apache Kafka on Ubuntu 18.04
How to install Apache Maven on Ubuntu 20.04
How to install Apache Tomcat 8 on Ubuntu 16.04
How to install Python2 on Ubuntu20.04 ubuntu/focal64
How to install GCC compiler on Ubuntu 18.04