How to make your own custom ublue image.

this is going to be my personal experience of making custom ublue image. hopefully you will learn something from it.

so first of all you have to decide which Desktop Environment you want to use. I have chosen KDE but you can choose whichever DE you want. to see available DE you can go here. now copy the url of the image you want to modify. for my case it will be ghcr.io/ublue-os/kinoite-main:39.

create a file and name it Dockerfile. and add the following line to the Dockerfile


<span style="color:#323232;">FROM ghcr.io/ublue-os/kinoite-main:39
</span><span style="font-style:italic;color:#969896;"># Install your favoutie program using rpm-ostree
</span><span style="color:#323232;">RUN rpm-ostree install zsh fish neovim vim emacs kitty alacritty distrobox -y
</span><span style="font-style:italic;color:#969896;"># finally cleanup and commit the changes
</span><span style="color:#323232;">RUN rpm-ostree cleanup -m </span><span style="font-weight:bold;color:#a71d5d;">&& </span><span style="color:#323232;">
</span><span style="color:#323232;">ostree container commit
</span>

save the file and run the following command in the current directory to build the image. (make sure you have docker installed on your system)


<span style="color:#323232;">sudo docker build -t custom_image:latest .
</span>

you can now upload it to ghcr.io or rebase on it using rpm-ostree rebase command.

I hope this was useful. :)

throwawayish,

Thank you OP for that, but… why should we prefer this over uBlue’s work on streamlining this process?

Guenther_Amanita,

Wow! Is it really this easy? Awesome, I’ll look into it, thanks!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #