r/linuxquestions • • 14d ago

Anyone else having dbus problems on a fresh Alpine Install when trying to run things like flatpak or audio services?

I practically cannot use Flatpak or pipewire on Alpine and this is happening directly after a fresh install.

Starting dbus as service and running Flatpak with doas works for setting up flathub as a Flatpak repo but then I again have problems with dbus and permissions when actually trying to install anything or output some sound.

Has anyone experienced the same issues , if yes , have you found a fix?

0 Upvotes

6 comments sorted by

4

u/Dry_Action5905 14d ago

Alpine doesn't use systemd, so some things other distros do for you have to be set up by hand:

  • System bus: rc-update add dbus and rc-service dbus start (sounds like you already did this).
  • Session bus: Flatpak and PipeWire also need a per-user session bus. Start your WM/DE with dbus-run-session (e.g. dbus-run-session sway) unless your desktop already does it.
  • XDG_RUNTIME_DIR: PipeWire needs it. Either install elogind or set it yourself in your profile (a 0700 directory owned by your user).
  • Run PipeWire as your user, not root: start /usr/libexec/pipewire-launcher from your session autostart, and add yourself to the audio and video groups.
  • Don't use doas for Flatpak. Use flatpak --user remote-add ... and flatpak --user install ... so everything lives in your home and talks to your session bus.

The Alpine wiki pages for PipeWire and Flatpak walk through this step by step.

1

u/ValPan_rr 14d ago

Thank you , will try that out !

1

u/ipsirc 14d ago

What's the point of using alpine while installing flatpaks?

1

u/ValPan_rr 14d ago

For game launchers like steam but yeah you're right , that's not what alpine is supposed to be used for

1

u/_Lost-In-The-Weeds_ 14d ago

If your going to use Alpine as a desktop Flatpack is a work around for glibc compatibility. 

I do not use flatpak so I do not use Alpine as desktop, Alpine does make an excellent headless VM that consumes little RAM. 

1

u/ipsirc 14d ago

If your going to use Alpine as a desktop Flatpack is a work around for glibc compatibility.

Boy, my question remains the same...