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.

    • darko@feddit.orgOP
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      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
        link
        fedilink
        arrow-up
        4
        ·
        1 month ago

        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.orgOP
          link
          fedilink
          arrow-up
          2
          ·
          1 month 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

    • darko@feddit.orgOP
      link
      fedilink
      arrow-up
      1
      ·
      1 month 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

  • raver@lemmy.rimkus.it
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    1 month ago

    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.orgOP
      link
      fedilink
      arrow-up
      2
      ·
      1 month ago

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