this post was submitted on 28 Sep 2023
38 points (97.5% liked)

Linux

47224 readers
946 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 5 years ago
MODERATORS
 

Recently, I've been wanting to make a custom live iso with a couple of tools that I need but I really don't know where to start or what to do... any help?

E: I didn't phrase my post correctly, I need a portable set of desktop tools for development, running on the gnome desktop

top 14 comments
sorted by: hot top controversial new old
[–] mvirts@lemmy.world 7 points 11 months ago

Just a thought, but live systems are usually just a packed fs like squashfs in an iso with syslinux. Loop mount your image, copy the files out, start a chroot to use a package manager if you want, pack up the modified system back into squashfs, copy to the iso, run syslinux if you need to change the config, aaand your image is now modified 😹 a lot easier said than done, but maybe an interesting excursion.

[–] ABasilPlant@lemmy.world 4 points 11 months ago* (last edited 11 months ago) (1 children)

Hands down, one of the best tools I've used in a very long time:

https://github.com/PJ-Singh-001/Cubic

Download a Debian 12 standard live ISO (or with GNOME or any other iso) and you're good to go. I've compiled custom kernels with it too. If you want persistence, then you use mkusb.

[–] Presi300@lemmy.world 2 points 11 months ago (1 children)

Yes, this does work, however there doesn't seem to be a way to strip out the installer (since I won't be installing from that ISO) or change desktop settings from a graphical environment... any way to do that?

[–] ABasilPlant@lemmy.world 3 points 11 months ago

Use the live version (thd try without installing option). You can also remove the installer code if you really want to - I think Ubuntu uses ubiquity/subiquity.

[–] Lemmchen@feddit.de 3 points 11 months ago* (last edited 11 months ago) (1 children)
  1. You can install Linux to external drives/USB sticks and boot from them.
  2. Some live systems offer persistence via a separate partition on the USB stick. You might want to look into those.
[–] Presi300@lemmy.world 1 points 11 months ago (1 children)

it's not portable (a single iso file), and I don't care about persistence that much tbh, to me it's more important to be able to customize the system and add the things I need to it

[–] Lemmchen@feddit.de 1 points 11 months ago* (last edited 11 months ago)

Okay, so your main goal really is your own Linux live ISO? Unfortunately I don't really have experience with that.

[–] d3Xt3r@lemmy.nz 3 points 11 months ago

Just use Puppy Linux. Puppy creates a r/w overlay file which can be updated with any changes you make, so you can install any programs you like and have a persistent session. It's also optimised for flash drive usage too - if your system has enough RAM, it can load the entire image into the RAM, making it very fast.

[–] uzay@infosec.pub 2 points 11 months ago

Are you looking for something like Fedora CoreOS maybe? Or NixOS?

[–] Guenther_Amanita@feddit.de 2 points 11 months ago (1 children)

If I understand it correctly: you just want something you can flash or plug into a random PC, like when you switch companies or rebuild your PC often, and then work from this setup for developing. Is that right?

There are following options I have in my mind right now:

  1. Install a "normal" Distro of your choice (e.g. Fedora Workstation or Silverblue) onto a external hard drive, or (maybe?) better, an USB-NVME. Now, you can just use your setup on every PC by just booting from the hard drive. If you are a developer, you probably use containers anyway, so I would recommend an immutable distro like VanillaOS or Silverblue. They are way harder to break and will make you more productive.

  2. Use NixOS or something therelike. You just write your system-config as a nix-file and then you can overwrite any Nix installation. There's also Fedora uBlue, where you can make something similar, but that image is more cloud based, while Nix is "simpler".

  3. Make your own "distro" by using an iso-maker program. There are a few around, but I don't have any in my mind right now.

But you should still explain your intentions better, they are hard to grasp for me.

[–] Presi300@lemmy.world 1 points 11 months ago* (last edited 11 months ago)

Ok, so pretty much, I want a portable, minimal desktop setup with some partitioning tools and some development tools in an iso format, so I can at any point in time simple take it, chuck it into ventoy or flash it with persistent storage and be ready to go.

And those "iso-maker" programs are more specifically what I'm asking for, either that or if there is a way to make a customized image of a pre-existing distro

I've used and even daily driven Linux off an external drive before, that's not what I'm asking about, I'm specifically asking about a way to make a customized live iso image...

[–] mfat@lemdro.id 1 points 11 months ago

This should be what you're looking for: https://help.ubuntu.com/community/mkusb

[–] Ashiette@lemmy.one 1 points 11 months ago* (last edited 11 months ago)

It's not clear... Do you want a portable USB drive ? If that's the case it's easily doable with Arch or Fedora.

If you want a portable USB that you can modify AND flash then... It's a little more complicated. You can always make a bootable Arch USB then rsync in any existing drive but it seems a little complicated.

What you might want to do is create a simple install script. You can pretty much do it for any distro. It will consume more bandwidth than copying/writing an existing distro but will prevent MANY errors.

With Arch it's quite simple. I believe it might be as simple with Debian or any other distro.

[–] Strit@lemmy.linuxuserspace.show 1 points 11 months ago

We need a little more info than that.

Like, what OS? What other tools? Why does it need to be custom, can't you just install the tools on the installed system? Why do you need a live session/ISO, if you plan on having it installed on persistant storage anyway?