Move graphical apps and systemd tips to the Distrobox ArchWiki page

Anthony Wang 2024-01-04 18:21:38 +00:00
parent ba5f4cd976
commit 0617e4add8

@ -1,35 +1,14 @@
**Distrobox** is a set of scripts that automates creating GPU-acceleration Linux container environments that seamlessly integrates with the rest of exozyme.
**Distrobox** is a set of scripts that automates creating GPU-acceleration Linux containers that seamlessly integrate with the rest of exozyme.
## Usage
To get started, run `distrobox enter`. For more details, take a look at the [Distrobox website](https://distrobox.privatedns.org/). The default container image is a pretty standard Fedora environment, so you can use `dnf` for package management.
To get started, run `distrobox enter`. The default container image is Fedora, so you can use `dnf` for package management. For more details, read the [ArchWiki page](https://wiki.archlinux.org/title/Distrobox#Usage) and the [Distrobox website](https://distrobox.it). There's also a [section about running graphical apps](https://wiki.archlinux.org/title/Distrobox#Run_graphical_apps) on the ArchWiki page.
## Tips and tricks
### Use a different distro
You can use a different distro instead of Fedora by running `distrobox create --image some-docker-image`. Some recommendations: `archlinux`, `debian`, `ubuntu`, `tumbleweed`.
### Graphical apps
When running graphical apps, you should first install the `mesa-dri-drivers` GPU drivers in Fedora, or the equivalent Mesa package if you're using a different distro image.
### Running apps inside the container
You can also install apps inside the container and run them from the outside with `distrobox enter -- appname` or integrate them with your desktop by running `distrobox-export` inside the container.
### 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.
### Use systemd inside the container
Run the following commands inside the container to make the host systemd accessible inside the container:
```sh
sudo ln -s /run/host/run/systemd/system /run/systemd
sudo mkdir -p /run/dbus
sudo ln -s /run/host/run/dbus/system_bus_socket /run/dbus
```
You can 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. This may require [enabling systemd inside the container](https://wiki.archlinux.org/title/Distrobox#Use_systemd_inside_the_container).
### code-server integration