# Install Raspberry Pi OS

## Download the image

Download Raspberry Pi OS Lite from: [https://www.raspberrypi.com/software/operating-systems/](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:

```plaintext
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

```plaintext
lsblk
```

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

```plaintext
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

```plaintext
ssh pi@raspberrypi.local
```

password: raspberry
