Raspberry Pi — SBC

Flashing Raspberry Pi OS

Use the official Raspberry Pi Imager to flash Raspberry Pi OS onto a microSD card. This is the fastest and most reliable method on any operating system.


What You Need

  • A microSD card (16 GB minimum, 32 GB recommended, Class 10 / A2 rated)
  • A microSD card reader connected to your computer
  • A stable internet connection

Step 1 — Download Raspberry Pi Imager

Download the Imager for your OS from the official site:

raspberrypi.com/software

OSFile type
Windows.exe installer
Ubuntu / Debian.deb package
macOS.dmg disk image

Ubuntu installation:

shell
# Download and install the .deb package
sudo apt install -y wget
wget https://downloads.raspberrypi.org/imager/imager_latest_amd64.deb
sudo dpkg -i imager_latest_amd64.deb

macOS installation:

shell
brew install --cask raspberry-pi-imager

Step 2 — Open Raspberry Pi Imager

Launch the Imager application. You'll see three selection buttons:

  1. Choose Device → Select your Raspberry Pi model
  2. Choose OS → Select the operating system
  3. Choose Storage → Select your microSD card

Step 3 — Choose Your Device

Click "Choose Device" and select your Raspberry Pi model:

  • Raspberry Pi 5
  • Raspberry Pi 4

Step 4 — Choose the OS

Click "Choose OS" and select:

For headless / workshop use (recommended):

Raspberry Pi OS (other) → Raspberry Pi OS Lite (64-bit)

For desktop use:

Raspberry Pi OS (64-bit)

For Ubuntu Server:

Other general-purpose OS → Ubuntu → Ubuntu Server 24.04 LTS (64-bit)


Step 5 — Configure OS Settings (CRITICAL)

Do not skip this step!

Before writing, click "Next". Imager will ask "Would you like to apply OS customisation settings?" — click "Edit Settings". This is where you configure Wi-Fi, SSH, and your username before first boot. If you skip this, you'll have no way to log in on a headless setup.

In the "OS Customisation" dialog:

General Tab

SettingValue
Set hostnameraspberrypi (or a unique name like analog-pi)
Set usernameYour preferred username (e.g., analog)
Set passwordA strong password
Configure wireless LANEnter your Wi-Fi SSID and password
Wireless LAN countrySet to your country code (e.g., IN for India, US, GB)
Set localeYour timezone and keyboard layout

Services Tab

SettingValue
Enable SSH✅ Checked
AuthenticationUse password authentication

Click "Save" when done.


Step 6 — Choose Storage and Write

  1. Click "Choose Storage" and select your microSD card

All data on the card will be erased!

Double-check that you've selected the correct storage device. The Imager will erase all existing data on the selected card.

  1. Click "Next""Yes" to confirm
  2. The Imager will download the OS (if not cached) and write it to the card
  3. Writing takes 5–15 minutes depending on your internet speed and card speed
  4. The Imager will verify the write and show "Write Successful"

Step 7 — Eject and Insert into Pi

  1. Click "Continue" and eject the microSD card safely
  2. Insert the microSD card into your Raspberry Pi's card slot (bottom of the board)
  3. Connect Ethernet (if using wired connection)
  4. Connect power — the Pi will boot automatically

First boot takes 1–3 minutes while the Pi expands the filesystem and applies your custom settings.


What's Next?

Your Pi is now booting. Continue with:

Previous
Introduction