0

I use ubuntu server provided by amazon ec2. I want gui so that i install ubuntu-desktop on server and edit xstartup. But when i connect to my server through TightVNC it shows only terminal windows. Here is the .vnc/xstartup:

            #!/bin/sh

            # Uncomment the following two lines for normal desktop:
             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 &
0

The solution is in the file itself:

# Uncomment the following TWO (2) lines for normal desktop:

However, in your config, only the first line is uncommented. The xinitrc sript is skipped, because it is still commented.

Uncomment this line, and you should be fine. Without it, starting a gnome-session is futile.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.