Run ubuntu Linux in raspberry pi , step by step guide
Components You Need
- Raspberry Pi 2/3/4 board
- A 16GB or more microSD card.
- HDMI Cable. (for Display / screen)
- An USB Keyboard. Mouse (optional)
- Ethernet Cable / wifi connection.
- Power Adapter for Raspberry Pi.
- A laptop or desktop computer for installing/flashing Ubuntu image on the SD card.
Step 1: Download the Ubuntu Server image for Raspberry Pi
Step 2: Flashing Ubuntu image on microSD Card
You can flash Ubuntu image on your microSD card very easily on Windows, Linux and macOS operating system using Etcher.
Etcher is a really easy to use free software for flashing microSD cards for Raspberry Pi devices
>> click here for etcher download page
Step 3: Setting Up the Raspberry Pi
- Plug in a mouse and a keyboard.
- Connect display with HDMI / micro HDMI cable.
- Insert your MicroSD card.
- plugging the power cable.
- power it on your Raspberry Pi
After powering on your Raspberry Pi, wait for the boot process to complete,
you will see the login window asking user name password , the default credentials are:
Install the Desktop Components (GUI) on an Ubuntu Server
Connect your Raspberry pi to the internet using wifi / ethernet
Install the default Unity desktop environment with the following command:
$ sudo apt-get install ubuntu-desktop
To install the Unity desktop environment without addons like (Email, OpenOffice):
$ sudo apt-get install --no-install-recommends ubuntu-desktop
Finally, reboot your PI to make it work
$ sudo reboot
Auto connect WiFi setup using netplan
To be able to setup Wifi on Raspberry Pi, you first need to get the name of the wifi card by showing physical components using the following command:
$ sudo lshw
In my case it was wlan0. Then navigate to /etc/netplan/ using the cd command
$ cd /etc/netplan/
Edit the Netplan YAML configuration file /etc/netplan/50-cloud-init.yaml with the following command:
$ sudo nano 50-cloud-init.yaml
Use the below configuration to Add your WiFi access information. Make sure not to use tab for space, use the spacebar to create the blank. just copt paste code below and replace your ssid name and password
network: version: 2 ethernets: eth0: optional: true dhcp4: true wifis: wlan0: optional: true access-points: "YOUR-SSID-NAME": password: "YOUR-NETWORK-PASSWORD" dhcp4: true
After finish Editing the file Close and save the file using ctrl+x and press yes
Apply the configuration file with the following command :
$ sudo netplan --debug apply
# Instalar en pc 配置 & 跑 ubuntu オン pi