Install Raspberry Pi OS

Marco BorettoMarco Boretto
1 min read

Download the image

Download Raspberry Pi OS Lite from: https://www.raspberrypi.com/software/operating-systems/

Burn the image

Lately Raspberry images are shipped using the xz compression, you might need to install the corresponding library to extract it.

On Ubuntu:

sudo apt install xz-utils
xz --decompress 2025-05-06-raspios-bookworm-armhf-lite.img.xz

Connect the SD card to you desktop and find the name device name using

lsblk

Burn the image be sure to put the proper device name:

sudo dd if=2025-05-06-raspios-bookworm-armhf-lite.img of=/dev/mmcblk0 bs=4M conv=fsync

Config.txt

Raspberry Pi devices use a configuration file called config.txt. The GPU reads config.txt before the Arm CPU and Linux initialise. Raspberry Pi OS looks for this file in the boot partition, located at /boot/.

SSH Setup

SSH allows you to remotely access your Raspberry Pi’s terminal. One way to enable SSH:

Via SD Card (Headless Setup):

  • After flashing Raspberry Pi OS onto the SD card, insert it into your computer.

  • In the root of the boot partition, create an empty file named ssh (no extension). This enables SSH on first boot

Connection

ssh pi@raspberrypi.local

password: raspberry

0
Subscribe to my newsletter

Read articles from Marco Boretto directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Marco Boretto
Marco Boretto