I upgraded from Ubutuntu 22.04.5 to 24.04.1, on x64 .
My VNC server, using tightvncserver-standalone, was previously working fine.
After the upgrade, I’m facing two problems :
- when started through systemd, there is a hang after the vnc server starts, even though the daemon is up
- while I’m able to connect to the server with RealVNC client on Windows, very soon after, sometimes mere seconds, the connection is dropped, making the VNC server unusable. A new connection attempt results in a new desktop, ie. the previous X session is lost. I believe I’m running into a crash.
The system had Wayland disabled prior to the upgrade, and still does.
Also, note that this is a standalone server on X session :2 , running xfce4, while the X server on the local console / GPU is using Gnome.
Here are the relevant config files, as they were working under Ubuntu 22.
systemd unit :
[Unit]
Description=Tiger VNC server
After=syslog.target network.target
[Service]
Type=forking
User=madbrain
PIDFile=/home/madbrain/.vnc/%H:590%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -geometry 3840x2160 -localhost no :%i
ExecStop=/usr/bin/vncserver -kill :%i
[Install]
WantedBy=multi-user.target
~/.vnc/xstartup :
#!/bin/sh
# Start up the standard system desktop
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
xhost +
/usr/bin/startxfce4
#/usr/bin/gnome-session
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
x-window-manager &
packages :
- VNC
tigervnc-common/noble,now 1.13.1+dfsg-2build2 amd64 [installed,automatic]
tigervnc-standalone-server/noble,now 1.13.1+dfsg-2build2 amd64 [installed]
tigervnc-tools/noble,now 1.13.1+dfsg-2build2 amd64 [installed,automatic]
- xfce4
gir1.2-libxfce4util-1.0/noble,now 4.18.1-2build3 amd64 [installed,automatic]
libxfce4panel-2.0-4/noble,now 4.18.4-1build2 amd64 [installed,automatic]
libxfce4ui-2-0/noble,now 4.18.4-1build4 amd64 [installed,automatic]
libxfce4ui-common/noble,noble,now 4.18.4-1build4 all [installed,automatic]
libxfce4ui-utils/noble,now 4.18.4-1build4 amd64 [installed,automatic]
libxfce4util-bin/noble,now 4.18.1-2build3 amd64 [installed,automatic]
libxfce4util-common/noble,noble,now 4.18.1-2build3 all [installed,automatic]
libxfce4util7/noble,now 4.18.1-2build3 amd64 [installed,automatic]
xfce4-appfinder/noble,now 4.18.0-1build2 amd64 [installed,automatic]
xfce4-helpers/noble,now 4.18.4-0ubuntu3 amd64 [installed,automatic]
xfce4-notifyd/noble,now 0.9.4-1 amd64 [installed,automatic]
xfce4-panel/noble,now 4.18.4-1build2 amd64 [installed,automatic]
xfce4-pulseaudio-plugin/noble,now 0.4.8-1build2 amd64 [installed,automatic]
xfce4-screensaver/noble,now 4.18.3-1build1 amd64 [installed,automatic]
xfce4-session/noble,now 4.18.3-1build2 amd64 [installed,automatic]
xfce4-settings/noble,now 4.18.4-0ubuntu3 amd64 [installed,automatic]
xfce4/noble,noble,now 4.18 all [installed]
Does anyone know what I need to do to get it working ?
And is there another recommended remote access protocol I can use from a Windows client ?
Edit : I gave gnome-remote-desktop a try . It works, for some definition of the word - better than VNC does on 24.04, anyway.
There are numerous issues with gnome-remote-desktop, though, the most serious being that the entire X session is torn down when the Windows RDP client disconnects. The other is that performance at 4K/60 is abysmal, even on my 10 Gbps LAN, to the point that the program is not usable.