Fixing the VNC's blank/grey screen with three checkboxes problem (~/.vnc/xstartup in Ubuntu)
After installing VNC server on Ubuntu (usually occurs on servers), sometimes one may face a problem in which after logging in by a VNC client/viewer, it shows just a blank screen with three checkboxes. (See the image at the end of post)
To fix this issue, first of all, Check if you have any Desktop Environment (eg, Unity, Gnome, KDE, xfce, lxde etc) installed on your system. You may use: echo $DESKTOP_SESSION or you can verify from env.
In my case, I have installed LXDE on Ubuntu server. It is important now to find the exact executable path of lxde, which is /usr/bin/startlxde in my case.
Replace the content of your ~/.vnc/xstartup and paste following lines: