I'm trying to connect to Amazon EC2 Ubuntu 14.04 instance through VNC but always fail (only grey background). Some articles say we should have a line in
.vnc/xstartup which reads
exec sh /etc/X11/xinit/xinitrc But I checked this file and found that this file does not exist at all in EC2 Ubuntu. So if
sh /etc/X11/xinit/xinitrc is executed, there should be an error like
sh: 0: Can't open ...
I guess that this is the reason why I can not display the desktop of EC2 ubuntu from TightVNC (I can successfully connect). So my question is: is
/etc/X11/xinit/xinitrc supposed not to exist? If so, what happens if the execution of
sh /etc/X11/xinit/xinitrc fails? If it should exist, what contents should this file contain?