Fixing VNC gray-screen problem
While trying to use VNC with an Xubuntu host (i.e., the machine running the VNC server), I could connect successfully but could only see the color gray and nothing else. The following change to the host's ~/.vnc/xstartup
file fixed the problem.
~/.vnc/xstartup
file.~/.vnc/xstartup
to:#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &
See more info about setting up a VNC server on Linux here.