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.

Comments

  1. Changing gnome-classic to ubuntu-2d does not work. I get a "Failed to load session ubuntu-2d" message. Any ideas?

    ReplyDelete
    Replies
    1. You may do the following command to make sure that unity-2d (which ubuntu-2d wants to start) has been installed on your system.

      sudo apt-get install unity-2d

      Delete
  2. 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?

    ReplyDelete
    Replies
    1. According 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

Post a Comment

Popular posts from this blog

Using PlayStation 1 Densha de Go controller on emulators

Using PS1/PC Densha de Go! controller SLPH-00051/TCPP-20001/DGOC-44U on PS4/Switch Densha de Go!!

Play octoshape stream on windows with VLC player