Install Raspberry PI OS with raspberry PI imager
Use the Raspberry Pi Imager to flash — it lets you pre-configure SSH, Wi-Fi, hostname, and user credentials before first boot, which is very handy!
On Ubuntu open the terminal and install:
sudo apt install -y rpi-imager
Please note that rpi-imager version that comes with Ubuntu package manager might be quite old. Please consider downloading the laster version from https://www.raspberrypi.com/software/.
After downloading provide execution permissions, and run the application as superuser:
chmod +x imager_2.0.7_amd64.AppImage
sudo ./imager_2.0.7_amd64.AppImage
Flash the SD card (step‑by‑step)
Insert your SD card or USB drive and launch Raspberry Pi Imager.
Open the application:
Press on 'CHOOSE OS' button, and pick the distribution that suits your need better. The programm will download the latest available version. Otherwise you can select a custom image from you local pc.
Select the target destination:
Customize the configuration:
Set the hostname
Enable SSH
Set username and password
LAN/WI-FI
Finally, press on the 'WRITE' button and enter the super user password to start flashing the SD card!
Only remove the SD card once the 'Write Successful' window appears.

