Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


hpr4299 :: Building your own Debian images for your Raspberry Pi

You can build your own image for you Pi, so that it's more customized from the first boot

<< First, < Previous, , Latest >>

Hosted by dnt on Thursday, 2025-01-23 is flagged as Clean and is released under a CC-BY-SA license.
debian, raspberryPi. 2.

Listen in ogg, opus, or mp3 format. Play now:

Duration: 00:10:09
Download the transcription and subtitles.

general.

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.


Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2025-01-30 11:59:56 by Reto

Firmware blob

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

Comment #2 posted on 2025-01-31 02:37:32 by dnt

Re: Firmware blob

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.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?
Are you a spammer?
Who is the host of this show?
What does HPR mean to you?