Skip to content

Desktop

Kabouik edited this page Aug 17, 2022 · 11 revisions

harbour-containers includes some scripts meant to setup and start X desktop sessions inside containers. These scripts can be found on guest's /mnt/guest directory, currently only Debian-based systems are supported (debian, ubuntu, mint, kali, devuan).

Setup desktop

This script is meant to help configuring network and xfce4 environment on containers.

# lxc-attach -n mycontainer /mnt/guest/setup_desktop.sh

Note: a patched version of Xwayland is required in order to get touch screen working on desktops, setup_desktop.sh will automatically build it from sources and download it from https://github.com/sailfish-containers/xserver/releases if building failed.

Start desktop

Desktop sessions require a wayland display socket inside /run/display/ directory, named "wayland-container-[ID]", it is possible to create it using qxcompositor as follows:

$ qxcompositor --wayland-socket-name ../../display/wayland-container-0 &

It is possible then to start a desktop session passing the wayland display's id (in this case 0) as follows:

# lxc-attach -n mycontainer /mnt/guest/start_desktop.sh 0
Clone this wiki locally