I’ve been using Fedora Silverblue and it kind of forces you into a more container-focused lifestyle. So I was wondering if I could apply those concepts to Clear Linux. If you’re not familiar with the concept, the root filesystem is mostly immutable, and you instead install apps via flatpaks and containers.
Fedora uses Toolbx and Podman to do this. Toolbx isn’t in CL and though I was able to install podman it came unconfigured and getting that to work was beyond my skill level. Ends up Luca Di Maio took some of these concepts and made Distrobox, which has the added bonus of supporting Docker and doesn’t need special images: GitHub - 89luca89/distrobox: Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
Also it installs into your home directory so it made it easy to prototype this, less than 10m to set up! I installed Docker and followed these instructions so that I can just use it without root: Docker as root?
And voila, I can now quickly install just about any Linux distro’s userspace on my CL system, with the convenience of having it transparently mount my home directory. This means I can now install and use just about any application on my CL system:
And all the GUI apps work too:
Now, installing Kate in both containers brought in the deps into those containers, so realistically you’re better off install Kate from flatpak, however, there’s been lots of requests on this forum for people who need a piece of software that is unavailable on CL or flathub. Well here you go, you can install it in your ubuntu distrobox, then do distrobox-export --app kate
and get your shortcut on your CL desktop and be good to go.
There are no VMs here, it’s fast, and it enables you to effectively use the existing thousands of apps from whatever distro you want while keeping the nice things you like about CL on your host. I was unfortunately not able to get a clearlinux container running in this manner, but I’m reasonably certain it’s a configuration issue and not a fundamental one.
Anyway, between toolbox/distrobox, and podman/docker it’s kind of confusing, however I thought it’d be something interesting for the Clear Linux devs to consider; it dramatically increases the amount of software I can use and the disposability of the containers means I can keep my host nice and clean!