I’m using some linux apps on android using proot-distro running Fedora 42 with the LXQt desktop environment. LXQt on Fedora has gone wayland by default using mir. My use case involves
starting proot-distro
logging in to an unprivileged user account
starting Xvnc to run a headless Xorg session
using it via VNC Viewer.
I’m ok with using mir, kwin or hyprland. Other compositors need to be evaluated on a case by case basis. Is there any way I can run a headless wayland compositor and pipewire inside a proot using Fedora?
LLMs are not giving any working solution as they tell me to use sway with wayvnc which doesn’t start in the first place (running sway inside proot). If anyone can make this work, that’s also ok.
I’ll just point out that if you want to get up and running quickly, the Xorg session is still installed by default on F42. Just click the drop down under SDDM for the classic X11 session.
You can nest any existing Wayland environment inside a headless Weston to have the same setup. I did this some time ago with KDE Plasma Wayland, and it still works now.
The steps for this are:
Install weston and seatd packages
Ensure your user has the seat group
Start seatd as a background service
Create the appropriate Weston configuration and write it to a file, like so:
Start Weston: weston --backend=vnc --config=/path/to/weston.ini --address=127.0.0.1 --disable-transport-layer-security --socket=wl-westvnc-0 (note, please don’t disable TLS unless you intend to only use it on localhost, as shown here)