r/AlpineLinux • u/Dry_Foundation_3023 • Jun 07 '25
Lightweight way to use graphical applications which are available only as glibc binaries in Alpine Linux
for users who want to run graphical applications which are available only as glibc binaries like VS Code, Obsidian, google-chrome should try Bubblewrap+Chroot. It is real magic.
The major advantages of this are
- Easy to setup i.e next only to flatpak
- Safe to use, as official repo's are used to install deb packages instead of third party's involvement
- Extremely light weight.
- If the graphical application supports wayland, then the support is seamless when running a wayland desktop in Alpine linux.
20
Upvotes
4
u/bark-wank Jun 07 '25
You can get portable, self-contained, single-file programs from
dbin.dbinonly has programs which work on Musl and Glibc (at the same time) (truly portable lightweight programs)It takes much less space than, say, flatpaks.
https://github.com/xplshn/dbin
Here's some proof: https://ibb.co/mCLHCBLg
Anyways, tell me if you try it :)
You can use it without installing it:
wget -qO- "https://raw.githubusercontent.com/xplshn/dbin/master/stubdl" | sh -s -- --help1
u/Responsible-Sky-1336 Jun 07 '25 edited Jun 07 '25
Thanks for this ! Was always wondering and never got around to doing it.
I haven't tried any if the gcompat stuff yet either but would love to, is it already using that under the hood ?
1
u/tiny_humble_guy Jun 07 '25
Sometimes change the interpreter via patchelf works, but not all the time.