How to Get Rid of the Black Screen Issue with NoMachine Virtual Desktop

When proprietary drivers for AMD and NVIDIA video cards are installed on the server host, users get a black screen when running virtual desktops. This doesn’t occur when using Open Source drivers like Radeon or nouveau.

In order to set LD_LIBRARY_PATH for NoMachine sessions, specify path to the Mesa 3D graphics library in the node configuration, the /usr/NX/etc/node.cfg file.

To do that:

  1. Edit the /usr/NX/etc/node.cfg file.

  2. Uncomment the DesktopCommandLibraryPath key.

  3. Set the proper path to Mesa library in the DesktopCommandLibraryPath key.

For example on Ubuntu 14.04 64 bit:

DesktopCommandLibraryPath “/usr/lib/x86_64-linux-gnu/mesa”

and on Ubuntu 14.04 32 bit:

DesktopCommandLibraryPath “/usr/lib/i386-linux-gnu/mesa/“

Path to be set in the DesktopCommandLibraryPath key must point to the directory containing the* libraries.