Have you tried the Raspberry Pi Image Generator?
Linux
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
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
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
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.
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
Why not customize Ubuntu exactly as desired on one Raspberry Pi, and before you make any other changes clone the Micro SD?
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
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
Thanks - I will give this a go if I can't find a solution for customizing without firing up the os