VNC Support sent me this:
-------------------------------------------------------------------------------------------------------------------------------------------------
VNC Server in Virtual Mode appears to hang or you see a grey screen because a desktop environment cannot be loaded
The default desktop environments used by RHEL/CentOS 7+, Ubuntu 13.04+ and Fedora 19+ (Unity and Gnome Shell) do not work under VNC Server in Virtual Mode because they require capabilities that are not available in the bundled X server (Xvnc). This is also true of the "2D" or "fallback" modes, which used to work in previous releases of these distributions. To use VNC Server in Virtual Mode on these systems, we recommend installing and using an alternative desktop environment.
Also, because VNC Server works by detecting parts of the screen which have changed and sending updates to VNC Viewer, you will generally get a better experience when using a desktop environment that does not cause unnecessary changes to the screen (for example, through fading, transparency or fullscreen effects). This is particularly important over a slow network connection.
Desktop environments which are known to work well under VNC Server in Virtual Mode are as follows:
Desktop Environment Package name for Debian systems Package group for Fedora systems
Xfce xfce4 @xfce-desktop
LXDE lxde @lxde-desktop
KDE Plasma Desktop kde-plasma-desktop @kde-desktop
In addition, older distributions which use Gnome 2 are also known to work well (for example CentOS 5/6).
Each of the above should be easily installable on most Linux systems using the normal application installer. You can also do this from the command line using the package names mentioned in the table for Debian or Fedora-based systems - for other distributions you may need to search for the exact package name. There are also distributions which use these desktops by default (or example the Xubuntu, or Kubuntu "flavours" of Ubuntu).
If the desktop environment you've installed is not the default (for example, you've installed LXDE on a regular Ubuntu system), you will need to modify the xstartup script used by VNC Server to start your chosen desktop environment. Each desktop session should have a corresponding .desktop file in /usr/share/xsessions, which contains the command used to start the environment. You can use the following command to list the startup commands for all the available sessions installed on the system:
grep Exec= /usr/share/xsessions/*.desktop
Next, use a text editor to replace the existing xstartup script with the following template:
#!/bin/sh
DESKTOP_SESSION=name-of-desktop-file
export DESKTOP_SESSION
exec-command-from-desktop-file
vncserver-virtual -kill $DISPLAY
This should be saved to ~/.vnc/xstartup, or /etc/vnc/xstartup.custom for all users on the system, and made executable using chmod +x.
Example for Xfce:
#!/bin/sh
DESKTOP_SESSION=xfce
export DESKTOP_SESSION
startxfce4
vncserver-virtual -kill $DISPLAY
Example for LXDE:
#!/bin/sh
DESKTOP_SESSION=LXDE
export DESKTOP_SESSION
startlxde
vncserver-virtual -kill $DISPLAY
There is also a known issue with the RENDER extension in current versions of Xvnc that causes problems with Xfce, resulting in the desktop failing to start. This can be solved by disabling the RENDER extension; to do this, create /etc/vnc/config.custom (if it does not already exist) and add the command:
-extension RENDER
--------------------------------------------------------------------------------
Trademarks
Privacy
Terms
Contact
Sitemap
From VNC support:
I'm afraid I can't access the information at the site you linked to as it's blocked due to malware.
Going from your description, the reason for the issue you face is that VNC Server doesn't work well with version 3 of Gnome (including the Cinnamon desktop environment) in Virtual mode. For this circumstance, I'd recommend using an alternative desktop such as XFCE or KDE as per the following article:
https://support.realvnc.com/knowledgebase/article/View/345/5/vnc-server-in-virtual-mode-appears-to-hang-or-you-see-a-grey-screen-because-a-desktop-environment-cannot-be-loaded
In addition to the desktops listed, I've successfully used the MATE desktop in Virtual mode.
Regards,
Ally
RealVNC Product Support
Ticket Details
--------------------------------------------------------------------------------
Ticket ID: DZK-784-44461
Status: On Hold
------------------------------------------------------------------------------------------------
(04-18-2016, 10:50 AM)baker7 Wrote: VNC Support sent me this:
-------------------------------------------------------------------------------------------------------------------------------------
VNC Server in Virtual Mode appears to hang or you see a grey screen because a desktop environment cannot be loaded
The default desktop environments used by RHEL/CentOS 7+, Ubuntu 13.04+ and Fedora 19+ (Unity and Gnome Shell) do not work under VNC Server in Virtual Mode because they require capabilities that are not available in the bundled X server (Xvnc). This is also true of the "2D" or "fallback" modes, which used to work in previous releases of these distributions. To use VNC Server in Virtual Mode on these systems, we recommend installing and using an alternative desktop environment.
Also, because VNC Server works by detecting parts of the screen which have changed and sending updates to VNC Viewer, you will generally get a better experience when using a desktop environment that does not cause unnecessary changes to the screen (for example, through fading, transparency or fullscreen effects). This is particularly important over a slow network connection.
Desktop environments which are known to work well under VNC Server in Virtual Mode are as follows:
Desktop Environment Package name for Debian systems Package group for Fedora systems
Xfce xfce4 @xfce-desktop
LXDE lxde @lxde-desktop
KDE Plasma Desktop kde-plasma-desktop @kde-desktop
In addition, older distributions which use Gnome 2 are also known to work well (for example CentOS 5/6).
Each of the above should be easily installable on most Linux systems using the normal application installer. You can also do this from the command line using the package names mentioned in the table for Debian or Fedora-based systems - for other distributions you may need to search for the exact package name. There are also distributions which use these desktops by default (or example the Xubuntu, or Kubuntu "flavours" of Ubuntu).
If the desktop environment you've installed is not the default (for example, you've installed LXDE on a regular Ubuntu system), you will need to modify the xstartup script used by VNC Server to start your chosen desktop environment. Each desktop session should have a corresponding .desktop file in /usr/share/xsessions, which contains the command used to start the environment. You can use the following command to list the startup commands for all the available sessions installed on the system:
grep Exec= /usr/share/xsessions/*.desktop
Next, use a text editor to replace the existing xstartup script with the following template:
#!/bin/sh
DESKTOP_SESSION=name-of-desktop-file
export DESKTOP_SESSION
exec-command-from-desktop-file
vncserver-virtual -kill $DISPLAY
This should be saved to ~/.vnc/xstartup, or /etc/vnc/xstartup.custom for all users on the system, and made executable using chmod +x.
Example for Xfce:
#!/bin/sh
DESKTOP_SESSION=xfce
export DESKTOP_SESSION
startxfce4
vncserver-virtual -kill $DISPLAY
Example for LXDE:
#!/bin/sh
DESKTOP_SESSION=LXDE
export DESKTOP_SESSION
startlxde
vncserver-virtual -kill $DISPLAY
There is also a known issue with the RENDER extension in current versions of Xvnc that causes problems with Xfce, resulting in the desktop failing to start. This can be solved by disabling the RENDER extension; to do this, create /etc/vnc/config.custom (if it does not already exist) and add the command:
-extension RENDER
--------------------------------------------------------------------------------
Trademarks
Privacy
Terms
Contact
Sitemap