[Distrobox] Installing apps that require systemd services?

I've been reading through the documentation for Bazzite, Distrobox, as well as the Arch Wiki trying to figure out how to start services from within a Distrobox container, from the host system. For example, I wanted to install ckb-next on the arch container, which has a daemon that runs at startup to detect my keyboard and adjust the RGB. It installs just fine, but I'm unable to start or enable any systemd services from within the container, nor start that specific service from outside of it. The Arch Wiki has a small blurb on how to use systemd from within the container, along with a couple commands to ostensibly make it happen:
# ln -s /run/host/run/systemd/system /run/systemd
# mkdir -p /run/dbus
# ln -s /run/host/run/dbu/system_bus_socket /run/dbus
# ln -s /run/host/run/systemd/system /run/systemd
# mkdir -p /run/dbus
# ln -s /run/host/run/dbu/system_bus_socket /run/dbus
Any ideas, or anyone able to point me to some more complete documentation? I should probably also be reading the Podman and Docker documentation, but I haven't yet.
Solution:
https://github.com/89luca89/distrobox/blob/main/docs/useful_tips.md#using-init-system-inside-a-distrobox however not everything with a systemd service will work, but it is worth to try. i do not need systemd in my distroboxes as i have not needed it...
GitHub
distrobox/docs/useful_tips.md at main · 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...
Jump to solution
1 Reply
Solution
HikariKnight
HikariKnight4mo ago
https://github.com/89luca89/distrobox/blob/main/docs/useful_tips.md#using-init-system-inside-a-distrobox however not everything with a systemd service will work, but it is worth to try. i do not need systemd in my distroboxes as i have not needed it
GitHub
distrobox/docs/useful_tips.md at main · 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...