Overview

We are automatically building daily images to run on all of the Raspberry Pi models.

More info in https://raspi.debian.net/

Daily images

First, lets set up some environment variables matching your needs. First, the raspberry model — It can currently be 0w, 2, 3 or 4. If it's a 0w:

$ export RPI_MODEL=0w

Second, where is your SD card detected in your computer? Lets say, it's /dev/sdf:

$ export SD_CARD=/dev/sdf

Now, get the image you need:

$ wget https://raspi.debian.net/daily/raspi_${RPI_MODEL}.img.xz

It is recommended to check the image was correctly downloaded by comparing its SHA256:

$ wget https://raspi.debian.net/daily/raspi_${RPI_MODEL}.xz.sha256
$ sha256sum -c raspi_${RPI_MODEL}.xz.sha256
raspi_{RPI_MODEL}.img.xz: OK

Now, write the image to your SD card! Make sure $SD_CARD is right! (you risk losing information otherwise!)

$ xzcat raspi_${RPI_MODEL}.img.xz | dd of=${SD_CARD} bs=64k oflag=dsync status=progress

The built images are shipped with a *passwordless root*, which means, you can log in as root as long as you do it locally (either via a serial console or using a USB keyboard). You are encouraged to set a root password as early as possible!

In order to log in remotely, create a non-root user; this user will be able to log in via ssh.

For the sources of this image (and/or for customizing your own build), please see https://salsa.debian.org/raspi-team/image-specs

Installation

It’s not necessary to dump a prebuilt image onto the SD card. You can use the configurable builder used to create the images linked above, a simple shell script creating Raspberry Pi 3B+ arm64 (or armhf) images, or another shell script creating SD card images for all RPi models to create your own image file or install straight to the SD card, from another running GNU/Linux machine.

This avoids problems with things like preset passwords, machine IDs, lack of random bytes/entropy, …