Skip to content

Instantly share code, notes, and snippets.

@martyngigg
Created December 15, 2015 12:53
Show Gist options
  • Save martyngigg/012e05f80c37c26d926b to your computer and use it in GitHub Desktop.
Save martyngigg/012e05f80c37c26d926b to your computer and use it in GitHub Desktop.

Revisions

  1. martyngigg created this gist Dec 15, 2015.
    17 changes: 17 additions & 0 deletions setup.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    * Install NoMachine server edition on server: https://www.nomachine.com/download/download&id=25
    * Install VirtualGL on server: http://sourceforge.net/projects/virtualgl/files/2.4.90%20%282.5beta1%29/
    * Ensure that the server is using hardware rendering & has OpenGL enabled.
    * Edit `/usr/NX/etc/node.cfg` and
    * uncomment `EnableVirtualGLSupport 0` and replace `0` with `1`
    * uncomment `DefaultDesktopCommand` and replace string "/usr/local/bin/nxsession.sh"
    * Create `/usr/local/bin/nxsession.sh` with the following contents:

    ```
    #!/bin/bash
    export VGL_DISPLAY=$DISPLAY
    /etc/gdm/Xsession gnome-session
    ```
    * Make `/usr/local/bin/nxsession.sh` executable
    * Run `vglserver_config +s +f +t`
    * Restart the machine