starting vncserver logs out local user
Noah
noah-list at enabled.com
Sun Jun 22 04:24:28 UTC 2025
Running Ubuntu 24.04
Gnome desktop is installed.
I reboot and X comes up fine at the desktop. I am able to login with a
local user and the HDMI connected display presents a wonderful X experience.
When I start vncserver from the same user via a shell accessed via SSH
the desktop user is logged out. I try to log back in via the desktop
user and I am brought back to the login screen and the second time the
screen turns blank. What can I check please?
--- command ---
$ vncserver
vncserver: Warning: No X session desktop file or command for 0
New Xtigervnc server 'pod1:1 (noah)' on port 5901 for display :1.
Use xtigervncviewer -SecurityTypes VncAuth -passwd
/tmp/tigervnc.AkKGPY/passwd :1 to connect to the VNC server.
--- snip ---
$ cat .vnc/vnc.conf
$geometry = "1920x1080";
$session = ubuntu-xorg
$ cat .vnc/xstartup
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
export XKL_XMODMAP_DISABLE=1
export XDG_CURRENT_DESKTOP="GNOME-Flashback:Unity"
export XDG_MENU_PREFIX="gnome-flashback-"
#gnome-session --session=gnome-flashback-metacity
--disable-acceleration-check &
gnome-session --session=ubuntu-xorg
--- config files ----
Cheers
More information about the ubuntu-users
mailing list