VNC grey screen and start on boot 12.04

Posted by Siriss on Ask Ubuntu See other posts from Ask Ubuntu or by Siriss
Published on 2012-08-05T20:39:23Z Indexed on 2013/10/20 16:11 UTC
Read the original article Hit count: 297

Filed under:
|

I have 12.04 LTS installed and I am trying to get VNC to work. I want to be able to connect to existing sessions, and have it start on boot. I followed this guide and have left a comment to try and fix my problems but no dice. I have also tried all solutions I have found on google, including the one here, but I could not get it to work (I am missing something easy I am sure).

When I connect to the VNC session I get a grey screen with three checkboxes:

Accept clipboard from viewers Send clipboard to viewers Send primary selection to viewers

Here is my xstartup:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
gnome-session -session=gnome-classic &

[ -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 &

I have also edited my to include:

/usr/bin/vncserver -geometry 1024x768

It does not start on boot, but when I run the command it starts, but I get the grey screen.

Any help would be greatly appreciated. Thank you!!

© Ask Ubuntu or respective owner

Related posts about boot

Related posts about vnc