Here are all common ways to install and run XFCE on Void Linux, depending on whether you want a full desktop environment, a minimal setup, or to start it manually.
⭐ 1. Install the Full XFCE Desktop Meta-Package#
This is the easiest method.
sudo xbps-install -S xfce4
sudo xbps-install -S lightdm lightdm-gtk3-greeter
sudo ln -s /etc/sv/lightdm /var/service/
rebootWhat this gives you: ✓ All XFCE core components ✓ LightDM display manager ✓ XFCE session starts automatically at login
⭐ 2. Install a Minimal XFCE Session (no meta-package)#
If you want only the essential parts of XFCE:
sudo xbps-install -S xfce4-session xfce4-panel xfce4-settings xfwm4 xfdesktop xfce4-terminal thunarStart manually (no display manager):
echo "exec startxfce4" > ~/.xinitrc
startxWhat this gives you: ✓ Minimal XFCE (panel, WM, settings, terminal, Thunar) ✓ No login manager
⭐ 3. Start XFCE via a Display Manager (DM)#
Using LightDM#
sudo xbps-install -S lightdm lightdm-gtk3-greeter
sudo ln -s /etc/sv/lightdm /var/service/Using SDDM#
sudo xbps-install -S sddm
sudo ln -s /etc/sv/sddm /var/service/XFCE will appear in the session selector.
⭐ 4. Start XFCE without a DM (using startx)#
Useful for minimal/WM-style setups.
Install XFCE (minimal or full), then:
echo "exec startxfce4" > ~/.xinitrc
startx⭐ 5. Run XFCE Inside Wayland (Experimental)#
XFCE is still primarily X11-based, but you can run it under XWayland inside a Wayland compositor like Sway or labwc.
Example with Sway:
sudo xbps-install -S sway xwayland xfce4-panel xfce4-terminal thunarStart Sway:
swayThen run XFCE components manually (hybrid setup):
xfwm4 --replace
xfce4-panel &⭐ 6. Run XFCE in a Headless/Remote Session#
Using Xvnc (for VNC desktop)#
sudo xbps-install -S tigervnc xfce4~/.vnc/xstartup:
#!/bin/sh
exec startxfce4Start server:
vncserver⭐ 7. Run XFCE in a Container (chroot/LXC/Docker)#
Example with Docker:
docker run -it --rm voidlinux/voidlinux bash
xbps-install -S xfce4 tigervnc
startxfce4Useful for sandboxing or remote desktop.
⭐ Summary of All Methods#
| Method | Description |
|---|---|
| 1. Meta-package (xfce4) | Easiest full desktop |
| 2. Minimal components | Lightweight, manual control |
| 3. Display manager (LightDM/SDDM) | GUI login |
| 4. startx (.xinitrc) | No display manager |
| 5. Wayland (experimental, XWayland) | Hybrid with Sway/labwc |
| 6. VNC (headless) | Remote desktop XFCE |
| 7. Containers | Run XFCE in Docker/chroot |
