this post was submitted on 17 May 2025
16 points (94.4% liked)

Linux

54269 readers
444 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

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.

all 9 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 3 days ago (1 children)
[–] [email protected] 1 points 3 days ago (1 children)

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

[–] [email protected] 4 points 3 days ago (1 children)

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.

[–] [email protected] 2 points 3 days ago

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 3 points 3 days ago (1 children)

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

[–] [email protected] 1 points 3 days ago

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

[–] [email protected] 3 points 3 days ago* (last edited 3 days ago) (1 children)

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

[–] [email protected] 2 points 3 days ago

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