VNC viewer session with gnome session manager on Ubuntu 11.10
The following happens to me since I upgrade my Ubuntu to version 11.10.
Using the default config file .vnc/xstartup, I just get a terminal window in my VNC viewer session.
To have the gnome desktop session manager back to the VNC viewer session, I have to modify the config file as follows.
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
#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 &
gnome-session --session=gnome-classic &
In the following, the value after --session= is the session manager. You may change gnome-classic above to ubuntu-2d for an alternative session manager.
Using the default config file .vnc/xstartup, I just get a terminal window in my VNC viewer session.
To have the gnome desktop session manager back to the VNC viewer session, I have to modify the config file as follows.
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
#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 &
gnome-session --session=gnome-classic &
In the following, the value after --session= is the session manager. You may change gnome-classic above to ubuntu-2d for an alternative session manager.
Changing gnome-classic to ubuntu-2d does not work. I get a "Failed to load session ubuntu-2d" message. Any ideas?
ReplyDeleteYou may do the following command to make sure that unity-2d (which ubuntu-2d wants to start) has been installed on your system.
Deletesudo apt-get install unity-2d
i am trying to use vnc on ubuntu 13.04 but I am unable to get vnc working. It says ""Failed to load session ubuntu-2d". I have the xstartup file same as you mentioned. Any ideas how to solve this?
ReplyDeleteAccording to this thread (http://askubuntu.com/questions/247501/i-get-failed-to-load-session-ubuntu-2d-when-using-xrdp), ubuntu-2d is no longer available. You may wish to switch to some other session manager.
Delete