🛠 Premier démarrage de la Zero 2 W sans écran (headless)

Raspberry Pi Zero 2 W (2021) — Board Sheet · debutant · Schéma : IMG-zero-2w-debutant-1-installation-raspberry-pi-os-headless.svg — Zero 2 W avec carte microSD, alimentation micro-USB 2 A (port POWER uniquement) et PC affichant Raspberry Pi Imager.

Objectives

Unbox the Zero 2 W: flash Raspberry Pi OS with pre-seeded Wi-Fi/SSH, boot headless (without a screen or keyboard), connect via SSH, and run initial system commands. You will also understand the two micro-USB ports on the board: one is reserved for power, while the other (OTG) handles data.

Hardware

Complete Code

With Raspberry Pi Imager: choose "Raspberry Pi OS Lite (32-bit)", then in the settings (Ctrl+Shift+X) check: hostname "zero2w", enable SSH with password, Wi-Fi + country. Otherwise, via command line, after inserting the card into the PC:

# Vérifier que la carte est bien vue (remplacer sdb par votre périphérique !)
lsblk
# Copie brute d'une image (alternative à Imager) :
sudo dd if=2024-*raspberry-pi-os-lite.img of=/dev/sdb bs=4M status=progress conv=fsync

# Premier boot terminé, côté PC :
ssh pi@zero2w.local
# Puis, sur la Zero 2 W :
sudo apt update && sudo apt full-upgrade -y
vcgencmd get_throttled        # doit répondre throttled=0x0
df -h /                       # place restante sur la SD

Expected Verification

After 1 to 2 minutes, "ping zero2w.local" responds and SSH works. "cat /proc/device-tree/compatible" mentions "raspberrypi,model-zero-2-w": the correct device tree is loaded. "vcgencmd get_throttled" returns 0x0 — a sign that the power supply is holding up.

Common Errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials