Unity on VNC, Gnome on login - SOLVED (removed Unity)

Discussion in 'Application & Utilities' started by francescomm, Dec 19, 2013.

  1. francescomm

    francescomm Member

    Joined:
    Dec 14, 2013
    Messages:
    80
    Likes Received:
    4
    Hi everyone,

    a minor issue: on Linaro, I get Gnome on local login, but when I connect with VNC I get Unity.

    i can google some more, I confess, but I am afraid to screw up my xstartup.

    If maybe you already know a solution..

    Thanks,

    Francesco
     
  2. EBrown

    EBrown New Member

    Joined:
    Dec 9, 2013
    Messages:
    48
    Likes Received:
    0
    Re: Unity on VNC, Gnome on login

    You should setup gnome-classic as the default GUI for VNC connections. I can't remember what file it's in but it is in the user SSH config file. (Only works on Ubuntu up to 12.04. Everything after that is pure Unity.)

    Quick Google found:
    http://askubuntu.com/questions/172384/v ... boot-12-04

    Method should be the same for 11.10.

    Thanks,
    EBrown
     
  3. francescomm

    francescomm Member

    Joined:
    Dec 14, 2013
    Messages:
    80
    Likes Received:
    4
    Re: Unity on VNC, Gnome on login

    YES! Thank you.

    The file is here:
    Code:
    ~/.vnc/xstartup

    I commented this line:
    Code:
    /etc/X11/Xsession
    And added this one:
    Code:
    gnome-session --session=gnome-classic &
    So the resulting file on Linaro 12.10 after standard VNC server install (tutorial) and this little mod is now:

    Code:
    #!/bin/sh
    
    xrdb $HOME/.Xresources
    xsetroot -solid grey
    #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    #x-window-manager &
    # Fix to make GNOME work
    export XKL_XMODMAP_DISABLE=1
    
    #REMOVED
    #/etc/X11/Xsession
    
    #ADDED
    gnome-session --session=gnome-classic &
    
    Thanks,

    UDOO rocks.
     

Share This Page