Customizing the Raspberry Pi Ubuntu image
from darko@feddit.org to linux@lemmy.ml on 17 May 18:17
https://feddit.org/post/12620703

Hello, I would like to customize the Raspberry Pi Ubuntu image before I flash it to multiple SD cards. I tried to use Cubic: I downloaded the official image which is an img.xz file. I extracted it, and converted the img to iso since Cubic only accepts iso files. However, when I try to add this source iso in Cubic, it complains about having a wrong file format. Can you suggest a better way to try and customize it? I just need to uninstall some software that are there by default, and install others that are not there, nothing crazy really.

#linux

threaded - newest

ravermeister@lemmy.rimkus.it on 17 May 18:45 next collapse

Hmm I don’t know if there’s a “correct” way, but you could flash the stock version on the first SD card and fire Ubuntu up. Then configure your system and shut down.

Next I would dd the whole SD card into an .img file which then you could flash to all other SD cards.

Be aware of changing hostname and static IP for each new sd card to avoid network trouble

darko@feddit.org on 17 May 19:18 collapse

Thanks - I will give this a go if I can’t find a solution for customizing without firing up the os

bravemonkey@lemmy.ca on 17 May 19:03 next collapse

Have you tried the Raspberry Pi Image Generator?

raspberrypi.com/…/introducing-rpi-image-gen-build…

github.com/raspberrypi/rpi-image-gen

darko@feddit.org on 17 May 19:14 collapse

Yes, this is what I use to flash the image to the SD card. The issue is that I want to change the official image before flashing and that is where I’m stuck

bravemonkey@lemmy.ca on 17 May 19:55 collapse

This isn’t the Raspberry Pi Imager - it’s a tool to build custom images. From the GitHub: A tool to generate highly customised software images for Raspberry Pi devices.

darko@feddit.org on 17 May 20:10 collapse

Sorry I thought it was the same. I think I came across this before and it seemed a bit too complex for my level but I will give it another go

spaghettiwestern@sh.itjust.works on 18 May 00:19 next collapse

Why not customize Ubuntu exactly as desired on one Raspberry Pi, and before you make any other changes clone the Micro SD?

darko@feddit.org on 18 May 13:49 collapse

Can I run a bash script before I configure Ubuntu when I start it first time? I couldn’t find, but maybe I missed it. If I configure it, then run my script and then clone, the clone will inherit the user, language etc settings which I don’t want

[deleted] on 18 May 02:41 collapse

.