From 80116216fb7ee2603cced995585696b1ceb6a281 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 28 Jul 2022 21:10:35 -0500 Subject: [PATCH] Add tip for using systemd inside a Distrobox container --- Distrobox.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Distrobox.md b/Distrobox.md index e3946a0..9297b41 100644 --- a/Distrobox.md +++ b/Distrobox.md @@ -16,4 +16,13 @@ You can also install apps inside the container and run them from the outside wit ### Running WMs or DEs -You can even install a window manager or desktop environment inside the container and use it in remote desktop with `~/.xinitrc`. See the [window managers](Window-managers) article for more information. \ No newline at end of file +You can even install a window manager or desktop environment inside the container and use it in remote desktop with `~/.xinitrc`. See the [window managers](Window-managers) article for more information. + +### Use systemd inside the container + +Run the following commands inside the container to make the host systemd accessible inside the container: +```sh +sudo umount /run/systemd/system +sudo rmdir /run/systemd/system +sudo ln -s /run/host/run/systemd/system /run/systemd +sudo ln -s /run/host/run/dbus/system_bus_socket /run/dbus/ \ No newline at end of file