r/Kalilinux • u/No_Thanks_1102 • 1d ago
Question - Kali General Kali NetHunter Rootless: KeX Server Crashes with XFCE but Works with LXQt on ARM64
Kali NetHunter Rootless: KeX Server Crashes Immediately with XFCE, but Works with LXQt
Environment
- OS: Kali NetHunter Rootless
- Architecture: ARM64 (aarch64)
- Device OS: Android 16 / HyperOS 3
- Desktop environment: XFCE 4.20
- VNC server: TigerVNC / NetHunter KeX
- Alternative desktop tested: LXQt
Problem Description
I experienced a persistent desktop startup problem with Kali NetHunter Rootless when using XFCE through NetHunter KeX.
When running the "kex" command, TigerVNC initially reported that the server had started on display ":1", using port "5901". However, the desktop session terminated almost immediately, and the VNC server shut down.
As a result, VNC Viewer displayed connection errors such as “Connection refused” or “Connection closed unexpectedly.”
The VNC log contained the following messages:
Session startup via '/home/kali/.config/tigervnc/xstartup' exited with status 1!
The X session exited with status 1!
Killing Xtigervnc process ... success!
During troubleshooting, I also encountered GTK/SVG image-loading errors involving "glycin" and "bwrap", along with XFCE components failing to start correctly.
The issue persisted despite troubleshooting the VNC configuration and XFCE startup settings.
Workaround That Worked
I installed the LXQt desktop environment and configured the TigerVNC startup script to launch LXQt using "startlxqt" within a D-Bus session.
After ensuring that the required LXQt packages were installed and the startup script was executable, the graphical desktop started successfully.
The LXQt desktop is now working through NetHunter KeX, whereas the previous XFCE setup repeatedly terminated.
Expected Behaviour
NetHunter KeX should maintain a stable VNC session and successfully launch the XFCE desktop without immediately terminating the server.
Actual Behaviour
The VNC server starts initially, but the XFCE session exits shortly afterwards, causing the server to shut down and VNC Viewer to report connection errors.
Request to the Kali Linux Maintainers
Could you investigate whether this issue is related to XFCE session startup, GTK/SVG image loaders, "glycin"/"bwrap", or package compatibility in Kali NetHunter Rootless on ARM64?
The fact that LXQt works in the same environment may help narrow down the cause.
I can provide additional logs, package versions, and startup configuration details if required.
Thank you for your work on Kali Linux and NetHunter.




