TigerVNC no longer working on 24.04.1 LTS
Bo Berglund
bo.berglund at gmail.com
Fri Jan 3 14:44:12 UTC 2025
On Fri, 03 Jan 2025 11:49:56 +0100, Bo Berglund <bo.berglund at gmail.com> wrote:
>The xstartup file in the same dir looks like this:
>
>~.vnc/xstartup (created 2021-11-20 when I set it all up):
>---------------------------------------------------------
>#!/bin/sh
>
># Uncomment the following two lines for normal desktop:
>unset DBUS_SESSION_BUS_ADDRESS
>unset SESSION_MANAGER
># exec /etc/X11/xinit/xinitrc
>[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
>[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
>xsetroot -solid grey
>vncconfig -iconic &
>x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
>x-window-manager &
>mate-session &
>#exec /usr/bin/mate-session &
>----------------------------------------------------------
I found the solution here:
https://unix.stackexchange.com/questions/785500/vnc-server-fails-to-start-desktop-environment-session-cleanly-exited-too-earl
After reading that I modified my file as follows:
#!/bin/sh
# Start up the standard system desktop
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
/usr/bin/mate-session
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager
And now the service is available and working.
Apparently there has been a change in the system which makes the trailing & for
x-window-manager prohibiting!
Strange....
--
Bo Berglund
Developer in Sweden
More information about the ubuntu-users
mailing list