Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


HPR4299: Building your own Debian images for your Raspberry Pi

Hosted by dnt on 2025-01-23 00:00:00
Download or Listen

This show has been flagged as Clean by the host.

On https://raspi.debian.net/ one time the image was broken, so I had to built it myself.


https://salsa.debian.org/raspi-team/image-specs


The makefile can create you a yaml file for your pi model and your release of Debian. Then you can edit that file to do whatever you want to the system, before making it into an image.


For example:

- In the section apt/packages, add sudo.

- Create a user, add it to the sudo group, with password "" and /bin/bash for shell

- Create a .ssh for your user, and echo in your SSH public keyboard


That way you can boot into your new Debian system without having to have a screen.

As soon as you login, the first thing you should do is reset your own password.

By doing -p "" we set the password to empty.

If we had not done -p "" the password would have been empty but locked, so you wouldn't be able to sudo.

Also go ahead and lock your root user password, which you could also do from the file.


Build your image, and go.

Provide feedback on this episode.

HPR Comments


Reto says: Firmware blob

RE: hpr4299::2025-01-23 Building your own Debian images for your Raspberry Pi by dnt
00:10:09 Listen in ogg, opus, or mp3 format.
Hi dnt,

I didn't know that, thank you for the show.
Question, as far as I know RPI still has a Firmware blob. Do you get this via Debian?

Cheers
Reto

dnt says: Re: Firmware blob

RE: hpr4299::2025-01-23 Building your own Debian images for your Raspberry Pi by dnt
00:10:09 Listen in ogg, opus, or mp3 format.
Hey, Reto!

I believe so, there is a debian package called raspi-firmware. See https://salsa.debian.org/raspi-team/image-specs/-/blob/master/raspi_master.yaml?ref_type=heads#L83

Sidenote: since recording this, I've learned that the graphical app Raspberry Pi Imager (https://www.raspberrypi.com/news/raspberry-pi-imager-imaging-utility/) can do some of the things I talked about here, such as adding an ssh key to the authorized_keys file.

Mastodon Comments



More Information...


Copyright Information

Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.

The HPR Website Design is released to the Public Domain.