Installation of CUDA / on RHEL 6 with TurboVNC and VirtualGL

Hello,

I have a workstation for scientific calculations based on RHEL 6.6.
The workstation is equipped with a NVIDIA Tesla M2090 GPU that is used for CUDA.

My users need to use use graphics applications that use OpenGL, like paraView, on remote PCs via TurboVNC and VirtualGL, but an error is thrown when they are launched, about GLX extension missing.

Actually, when I try glxinfo from my remote TurboVNC client (display :6), I obtain the following

$ glxinfo
name of display: :6.0
Xlib:  extension "GLX" missing on display ":6.0".
Xlib:  extension "GLX" missing on display ":6.0".
Xlib:  extension "GLX" missing on display ":6.0".
Xlib:  extension "GLX" missing on display ":6.0".
Xlib:  extension "GLX" missing on display ":6.0".
Error: couldn't find RGB GLX visual or fbconfig

Xlib:  extension "GLX" missing on display ":6.0".
Xlib:  extension "GLX" missing on display ":6.0".
Xlib:  extension "GLX" missing on display ":6.0".
Xlib:  extension "GLX" missing on display ":6.0".
Xlib:  extension "GLX" missing on display ":6.0".
Xlib:  extension "GLX" missing on display ":6.0".

I can’t figure out how to fix the problem.
Does anyone have a clue?

I installed the NVIDIA drivers following the “NVIDIA CUDA Getting Started Guide for Linux” at http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/ using the runfile installation.
As part of the installation, I had to remove the Nouveau drivers following the instructions on paragraph 4.3.2:

Create a file at /etc/modprobe.d/blacklist-nouveau.conf with the following contents:
blacklist nouveau
options nouveau modeset=0
Regenerate the kernel initramfs:
$ sudo dracut --force

After that, the drivers seem to work correctly:

$ nvidia-smi
Thu May  7 11:00:41 2015       
+------------------------------------------------------+                       
| NVIDIA-SMI 346.46     Driver Version: 346.46         |                       
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla M2090         Off  | 0000:05:00.0     Off |                    0 |
| N/A   N/A    P0     0W / 225W |     10MiB /  5375MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

$ cat /proc/driver/nvidia/gpus/0000\:05\:00.0/information 
Model: 		 Tesla M2090
IRQ:   		 151
GPU UUID: 	 GPU-????????-????-????-????-????????????
Video BIOS: 	 ??.??.??.??.??
Bus Type: 	 PCIe
DMA Size: 	 40 bits
DMA Mask: 	 0xffffffffff
Bus Location: 	 0000:05:00.0

I noticed that the Tesla M2090 is used as a 3D controller and not as VGA controller, but I can’t say if this matters and how:

$ lspci | grep -i VGA
0c:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. G200eR2
$ lspci | grep -i 3D
05:00.0 3D controller: NVIDIA Corporation GF110GL [Tesla M2090] (rev a1)

I have the following xorg.conf:

$ cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 346.46  (buildmeister@swio-display-x86-rhel47-06)  Tue Feb 17 19:10:20 PST 2015


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
    FontPath        "/usr/share/fonts/default/Type1"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from data in "/etc/sysconfig/keyboard"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "it"
    Option         "XkbModel" "pc105"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:5:0:0"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "UseDisplayDevice" "none"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

And this is the Xorg.0.log, that seems not to contain any errors:

$ cat /var/log/Xorg.0.log
[  3468.604] 
X.Org X Server 1.15.0
Release Date: 2013-12-27
[  3468.604] X Protocol Version 11, Revision 0
[  3468.604] Build Operating System: x86-027 2.6.18-371.11.1.el5 
[  3468.604] Current Operating System: Linux dglxmsc1.rina.org 2.6.32-504.el6.x86_64 #1 SMP Tue Sep 16 01:56:35 EDT 2014 x86_64
[  3468.605] Kernel command line: ro root=/dev/mapper/vg_vol00-vol_root rd_NO_LUKS rd_LVM_LV=vg_vol00/vol_swap LANG=en_US.UTF-8 rd_LVM_LV=vg_vol00/vol_root rd_NO_MD SYSFONT=latarcyrheb-sun16  KEYBOARDTYPE=pc KEYTABLE=it2 rd_NO_DM rhgb quiet
[  3468.605] Build Date: 03 September 2014  11:18:35AM
[  3468.605] Build ID: xorg-x11-server 1.15.0-22.el6 
[  3468.606] Current version of pixman: 0.32.4
[  3468.606] 	Before reporting problems, check https://www.redhat.com/apps/support/
	to make sure that you have the latest version.
[  3468.606] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  3468.606] (==) Log file: "/var/log/Xorg.0.log", Time: Thu May  7 15:52:35 2015
[  3468.607] (==) Using config file: "/etc/X11/xorg.conf"
[  3468.607] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  3468.607] (==) ServerLayout "Layout0"
[  3468.607] (**) |-->Screen "Screen0" (0)
[  3468.607] (**) |   |-->Monitor "Monitor0"
[  3468.607] (**) |   |-->Device "Device0"
[  3468.607] (**) |-->Input Device "Keyboard0"
[  3468.607] (**) |-->Input Device "Mouse0"
[  3468.607] (==) Automatically adding devices
[  3468.607] (==) Automatically enabling devices
[  3468.607] (==) Not automatically adding GPU devices
[  3468.608] (**) FontPath set to:
	/usr/share/fonts/default/Type1,
	catalogue:/etc/X11/fontpath.d,
	built-ins
[  3468.608] (==) ModulePath set to "/usr/lib64/xorg/modules"
[  3468.608] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[  3468.608] (WW) Disabling Keyboard0
[  3468.608] (WW) Disabling Mouse0
[  3468.608] (II) Loader magic: 0x822020
[  3468.608] (II) Module ABI versions:
[  3468.608] 	X.Org ANSI C Emulation: 0.4
[  3468.608] 	X.Org Video Driver: 15.0
[  3468.608] 	X.Org XInput driver : 20.0
[  3468.608] 	X.Org Server Extension : 8.0
[  3468.618] (--) PCI: (0:5:0:0) 10de:1091:10de:0887 rev 161, Mem @ 0xd8000000/16777216, 0xc0000000/134217728, 0xce000000/33554432, I/O @ 0x0000ec80/128, BIOS @ 0x????????/524288
[  3468.619] (--) PCI:*(0:12:0:0) 102b:0534:1028:048c rev 0, Mem @ 0xd0000000/16777216, 0xdcffc000/16384, 0xdc000000/8388608, BIOS @ 0x????????/131072
[  3468.619] Initializing built-in extension Generic Event Extension
[  3468.619] Initializing built-in extension SHAPE
[  3468.619] Initializing built-in extension MIT-SHM
[  3468.619] Initializing built-in extension XInputExtension
[  3468.619] Initializing built-in extension XTEST
[  3468.619] Initializing built-in extension BIG-REQUESTS
[  3468.619] Initializing built-in extension SYNC
[  3468.619] Initializing built-in extension XKEYBOARD
[  3468.619] Initializing built-in extension XC-MISC
[  3468.619] Initializing built-in extension SECURITY
[  3468.619] Initializing built-in extension XINERAMA
[  3468.619] Initializing built-in extension XFIXES
[  3468.619] Initializing built-in extension RENDER
[  3468.619] Initializing built-in extension RANDR
[  3468.619] Initializing built-in extension COMPOSITE
[  3468.619] Initializing built-in extension DAMAGE
[  3468.619] Initializing built-in extension MIT-SCREEN-SAVER
[  3468.619] Initializing built-in extension DOUBLE-BUFFER
[  3468.619] Initializing built-in extension RECORD
[  3468.619] Initializing built-in extension DPMS
[  3468.619] Initializing built-in extension Present
[  3468.619] Initializing built-in extension X-Resource
[  3468.619] Initializing built-in extension XVideo
[  3468.619] Initializing built-in extension XVideo-MotionCompensation
[  3468.619] Initializing built-in extension SELinux
[  3468.619] Initializing built-in extension XFree86-VidModeExtension
[  3468.619] Initializing built-in extension XFree86-DGA
[  3468.619] Initializing built-in extension XFree86-DRI
[  3468.619] Initializing built-in extension DRI2
[  3468.619] (II) LoadModule: "glx"
[  3468.626] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[  3468.633] (II) Module glx: vendor="NVIDIA Corporation"
[  3468.633] 	compiled for 4.0.2, module version = 1.0.0
[  3468.633] 	Module class: X.Org Server Extension
[  3468.633] (II) NVIDIA GLX Module  346.46  Tue Feb 17 17:46:53 PST 2015
[  3468.633] Loading extension GLX
[  3468.633] (II) LoadModule: "nvidia"
[  3468.633] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[  3468.634] (II) Module nvidia: vendor="NVIDIA Corporation"
[  3468.634] 	compiled for 4.0.2, module version = 1.0.0
[  3468.634] 	Module class: X.Org Video Driver
[  3468.634] (II) NVIDIA dlloader X Driver  346.46  Tue Feb 17 17:11:22 PST 2015
[  3468.634] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  3468.634] (++) using VT number 1

[  3468.640] (II) Loading sub module "fb"
[  3468.640] (II) LoadModule: "fb"
[  3468.640] (II) Loading /usr/lib64/xorg/modules/libfb.so
[  3468.640] (II) Module fb: vendor="X.Org Foundation"
[  3468.640] 	compiled for 1.15.0, module version = 1.0.0
[  3468.640] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  3468.640] (II) Loading sub module "wfb"
[  3468.640] (II) LoadModule: "wfb"
[  3468.641] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[  3468.641] (II) Module wfb: vendor="X.Org Foundation"
[  3468.641] 	compiled for 1.15.0, module version = 1.0.0
[  3468.641] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  3468.641] (II) Loading sub module "ramdac"
[  3468.641] (II) LoadModule: "ramdac"
[  3468.641] (II) Module "ramdac" already built-in
[  3468.643] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[  3468.643] (==) NVIDIA(0): RGB weight 888
[  3468.643] (==) NVIDIA(0): Default visual is TrueColor
[  3468.643] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[  3468.643] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[  3468.643] (**) NVIDIA(0): Enabling 2D acceleration
[  3468.643] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[  3468.643] (**) NVIDIA(0):     mode
[  3471.441] (II) NVIDIA(0): NVIDIA GPU Tesla M2090 (GF110) at PCI:5:0:0 (GPU-0)
[  3471.441] (--) NVIDIA(0): Memory: 5505024 kBytes
[  3471.441] (--) NVIDIA(0): VideoBIOS: 70.10.46.00.01
[  3471.441] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[  3471.441] (--) NVIDIA(0): Valid display device(s) on Tesla M2090 at PCI:5:0:0
[  3471.441] (--) NVIDIA(0):     none
[  3471.441] (II) NVIDIA(0): Validated MetaModes:
[  3471.441] (II) NVIDIA(0):     "NULL"
[  3471.441] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[  3471.441] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[  3471.441] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[  3471.442] (--) Depth 24 pixmap format is 32 bpp
[  3471.442] (II) NVIDIA: Using 3072.00 MB of virtual memory for indirect memory
[  3471.442] (II) NVIDIA:     access.
[  3471.460] (II) NVIDIA(0): Setting mode "NULL"
[  3471.496] (II) NVIDIA(0): Built-in logo is bigger than the screen.
[  3471.496] Loading extension NV-GLX
[  3471.522] (==) NVIDIA(0): Disabling shared memory pixmaps
[  3471.522] (==) NVIDIA(0): Backing store enabled
[  3471.522] (==) NVIDIA(0): Silken mouse enabled
[  3471.522] (**) NVIDIA(0): DPMS enabled
[  3471.522] Loading extension NV-CONTROL
[  3471.523] (II) Loading sub module "dri2"
[  3471.523] (II) LoadModule: "dri2"
[  3471.523] (II) Module "dri2" already built-in
[  3471.523] (II) NVIDIA(0): [DRI2] Setup complete
[  3471.523] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[  3471.523] (--) RandR disabled
[  3471.532] (II) SELinux: Disabled by boolean
[  3471.533] (II) Initializing extension GLX
[  3471.650] (II) config/hal: Adding input device AVOCENT  AVODSR VMCHS-USB MPUIQ
[  3471.650] (II) LoadModule: "evdev"
[  3471.651] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[  3471.651] (II) Module evdev: vendor="X.Org Foundation"
[  3471.651] 	compiled for 1.15.0, module version = 2.8.2
[  3471.651] 	Module class: X.Org XInput Driver
[  3471.651] 	ABI class: X.Org XInput driver, version 20.0
[  3471.651] (II) Using input driver 'evdev' for 'AVOCENT  AVODSR VMCHS-USB MPUIQ'
[  3471.652] (**) AVOCENT  AVODSR VMCHS-USB MPUIQ: always reports core events
[  3471.652] (**) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: Device: "/dev/input/event5"
[  3471.660] (--) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: Vendor 0x624 Product 0x854
[  3471.660] (--) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: Found keys
[  3471.660] (II) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: Configuring as keyboard
[  3471.660] (**) Option "config_info" "hal:/org/freedesktop/Hal/devices/usb_device_624_854_520854_0311D6_0000_if0_logicaldev_input"
[  3471.660] (II) XINPUT: Adding extended input device "AVOCENT  AVODSR VMCHS-USB MPUIQ" (type: KEYBOARD, id 6)
[  3471.660] (**) Option "xkb_rules" "evdev"
[  3471.660] (**) Option "xkb_model" "pc105"
[  3471.660] (**) Option "xkb_layout" "it"
[  3471.660] (WW) Option "xkb_variant" requires a string value
[  3471.660] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[  3471.713] (II) config/hal: Adding input device Avocent Keyboard/Mouse Function
[  3471.713] (II) Using input driver 'evdev' for 'Avocent Keyboard/Mouse Function'
[  3471.713] (**) Avocent Keyboard/Mouse Function: always reports core events
[  3471.713] (**) evdev: Avocent Keyboard/Mouse Function: Device: "/dev/input/event2"
[  3471.720] (--) evdev: Avocent Keyboard/Mouse Function: Vendor 0x624 Product 0x249
[  3471.720] (--) evdev: Avocent Keyboard/Mouse Function: Found keys
[  3471.720] (II) evdev: Avocent Keyboard/Mouse Function: Configuring as keyboard
[  3471.720] (**) Option "config_info" "hal:/org/freedesktop/Hal/devices/usb_device_624_249_20120917_if0_logicaldev_input"
[  3471.720] (II) XINPUT: Adding extended input device "Avocent Keyboard/Mouse Function" (type: KEYBOARD, id 7)
[  3471.721] (**) Option "xkb_rules" "evdev"
[  3471.721] (**) Option "xkb_model" "pc105"
[  3471.721] (**) Option "xkb_layout" "it"
[  3471.721] (WW) Option "xkb_variant" requires a string value
[  3471.721] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[  3471.733] (II) config/hal: Adding input device Power Button
[  3471.733] (II) Using input driver 'evdev' for 'Power Button'
[  3471.733] (**) Power Button: always reports core events
[  3471.733] (**) evdev: Power Button: Device: "/dev/input/event0"
[  3471.737] (--) evdev: Power Button: Vendor 0 Product 0x1
[  3471.737] (--) evdev: Power Button: Found keys
[  3471.737] (II) evdev: Power Button: Configuring as keyboard
[  3471.737] (**) Option "config_info" "hal:/org/freedesktop/Hal/devices/computer_logicaldev_input"
[  3471.737] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
[  3471.737] (**) Option "xkb_rules" "evdev"
[  3471.737] (**) Option "xkb_model" "pc105"
[  3471.737] (**) Option "xkb_layout" "it"
[  3471.737] (WW) Option "xkb_variant" requires a string value
[  3471.737] (**) Option "xkb_options" "terminate:ctrl_alt_bksp"
[  3471.746] (II) config/hal: Adding input device Macintosh mouse button emulation
[  3471.746] (II) Using input driver 'evdev' for 'Macintosh mouse button emulation'
[  3471.746] (**) Macintosh mouse button emulation: always reports core events
[  3471.746] (**) evdev: Macintosh mouse button emulation: Device: "/dev/input/event1"
[  3471.753] (--) evdev: Macintosh mouse button emulation: Vendor 0x1 Product 0x1
[  3471.753] (--) evdev: Macintosh mouse button emulation: Found 3 mouse buttons
[  3471.753] (--) evdev: Macintosh mouse button emulation: Found relative axes
[  3471.753] (--) evdev: Macintosh mouse button emulation: Found x and y relative axes
[  3471.753] (II) evdev: Macintosh mouse button emulation: Configuring as mouse
[  3471.753] (**) evdev: Macintosh mouse button emulation: YAxisMapping: buttons 4 and 5
[  3471.753] (**) evdev: Macintosh mouse button emulation: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[  3471.753] (**) Option "config_info" "hal:/org/freedesktop/Hal/devices/computer_logicaldev_input_0"
[  3471.753] (II) XINPUT: Adding extended input device "Macintosh mouse button emulation" (type: MOUSE, id 9)
[  3471.753] (II) evdev: Macintosh mouse button emulation: initialized for relative axes.
[  3471.753] (**) Macintosh mouse button emulation: (accel) keeping acceleration scheme 1
[  3471.753] (**) Macintosh mouse button emulation: (accel) acceleration profile 0
[  3471.753] (**) Macintosh mouse button emulation: (accel) acceleration factor: 2.000
[  3471.753] (**) Macintosh mouse button emulation: (accel) acceleration threshold: 4
[  3471.762] (II) config/hal: Adding input device AVOCENT  AVODSR VMCHS-USB MPUIQ
[  3471.762] (II) Using input driver 'evdev' for 'AVOCENT  AVODSR VMCHS-USB MPUIQ'
[  3471.762] (**) AVOCENT  AVODSR VMCHS-USB MPUIQ: always reports core events
[  3471.762] (**) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: Device: "/dev/input/event6"
[  3471.769] (--) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: Vendor 0x624 Product 0x854
[  3471.769] (--) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: Found 14 mouse buttons
[  3471.769] (--) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: Found scroll wheel(s)
[  3471.769] (--) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: Found relative axes
[  3471.769] (--) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: Found x and y relative axes
[  3471.769] (--) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: Found absolute axes
[  3471.769] (--) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: Found x and y absolute axes
[  3471.769] (II) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: Configuring as mouse
[  3471.769] (II) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: Adding scrollwheel support
[  3471.769] (**) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: YAxisMapping: buttons 4 and 5
[  3471.769] (**) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[  3471.769] (**) Option "config_info" "hal:/org/freedesktop/Hal/devices/usb_device_624_854_520854_0311D6_0000_if1_logicaldev_input"
[  3471.769] (II) XINPUT: Adding extended input device "AVOCENT  AVODSR VMCHS-USB MPUIQ" (type: MOUSE, id 10)
[  3471.769] (II) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: initialized for relative axes.
[  3471.769] (WW) evdev: AVOCENT  AVODSR VMCHS-USB MPUIQ: ignoring absolute axes.
[  3471.769] (**) AVOCENT  AVODSR VMCHS-USB MPUIQ: (accel) keeping acceleration scheme 1
[  3471.769] (**) AVOCENT  AVODSR VMCHS-USB MPUIQ: (accel) acceleration profile 0
[  3471.769] (**) AVOCENT  AVODSR VMCHS-USB MPUIQ: (accel) acceleration factor: 2.000
[  3471.769] (**) AVOCENT  AVODSR VMCHS-USB MPUIQ: (accel) acceleration threshold: 4
[  3471.779] (II) config/hal: Adding input device Avocent Keyboard/Mouse Function
[  3471.779] (II) Using input driver 'evdev' for 'Avocent Keyboard/Mouse Function'
[  3471.779] (**) Avocent Keyboard/Mouse Function: always reports core events
[  3471.779] (**) evdev: Avocent Keyboard/Mouse Function: Device: "/dev/input/event4"
[  3471.785] (--) evdev: Avocent Keyboard/Mouse Function: Vendor 0x624 Product 0x249
[  3471.785] (--) evdev: Avocent Keyboard/Mouse Function: Found 3 mouse buttons
[  3471.785] (--) evdev: Avocent Keyboard/Mouse Function: Found scroll wheel(s)
[  3471.785] (--) evdev: Avocent Keyboard/Mouse Function: Found relative axes
[  3471.785] (--) evdev: Avocent Keyboard/Mouse Function: Found x and y relative axes
[  3471.785] (II) evdev: Avocent Keyboard/Mouse Function: Configuring as mouse
[  3471.785] (II) evdev: Avocent Keyboard/Mouse Function: Adding scrollwheel support
[  3471.785] (**) evdev: Avocent Keyboard/Mouse Function: YAxisMapping: buttons 4 and 5
[  3471.785] (**) evdev: Avocent Keyboard/Mouse Function: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[  3471.785] (**) Option "config_info" "hal:/org/freedesktop/Hal/devices/usb_device_624_249_20120917_if2_logicaldev_input"
[  3471.785] (II) XINPUT: Adding extended input device "Avocent Keyboard/Mouse Function" (type: MOUSE, id 11)
[  3471.785] (II) evdev: Avocent Keyboard/Mouse Function: initialized for relative axes.
[  3471.785] (**) Avocent Keyboard/Mouse Function: (accel) keeping acceleration scheme 1
[  3471.785] (**) Avocent Keyboard/Mouse Function: (accel) acceleration profile 0
[  3471.785] (**) Avocent Keyboard/Mouse Function: (accel) acceleration factor: 2.000
[  3471.785] (**) Avocent Keyboard/Mouse Function: (accel) acceleration threshold: 4
[  3471.794] (II) config/hal: Adding input device Avocent Keyboard/Mouse Function
[  3471.794] (II) Using input driver 'evdev' for 'Avocent Keyboard/Mouse Function'
[  3471.795] (**) Avocent Keyboard/Mouse Function: always reports core events
[  3471.795] (**) evdev: Avocent Keyboard/Mouse Function: Device: "/dev/input/event3"
[  3471.801] (--) evdev: Avocent Keyboard/Mouse Function: Vendor 0x624 Product 0x249
[  3471.801] (--) evdev: Avocent Keyboard/Mouse Function: Found 3 mouse buttons
[  3471.801] (--) evdev: Avocent Keyboard/Mouse Function: Found scroll wheel(s)
[  3471.801] (--) evdev: Avocent Keyboard/Mouse Function: Found relative axes
[  3471.801] (--) evdev: Avocent Keyboard/Mouse Function: Found absolute axes
[  3471.801] (--) evdev: Avocent Keyboard/Mouse Function: Found x and y absolute axes
[  3471.801] (--) evdev: Avocent Keyboard/Mouse Function: Found absolute touchscreen
[  3471.801] (II) evdev: Avocent Keyboard/Mouse Function: Configuring as touchscreen
[  3471.801] (II) evdev: Avocent Keyboard/Mouse Function: Adding scrollwheel support
[  3471.801] (**) evdev: Avocent Keyboard/Mouse Function: YAxisMapping: buttons 4 and 5
[  3471.801] (**) evdev: Avocent Keyboard/Mouse Function: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[  3471.801] (**) Option "config_info" "hal:/org/freedesktop/Hal/devices/usb_device_624_249_20120917_if1_logicaldev_input"
[  3471.801] (II) XINPUT: Adding extended input device "Avocent Keyboard/Mouse Function" (type: TOUCHSCREEN, id 12)
[  3471.801] (WW) evdev: Avocent Keyboard/Mouse Function: touchpads, tablets and touchscreens ignore relative axes.
[  3471.801] (II) evdev: Avocent Keyboard/Mouse Function: initialized for absolute axes.
[  3471.801] (**) Avocent Keyboard/Mouse Function: (accel) keeping acceleration scheme 1
[  3471.801] (**) Avocent Keyboard/Mouse Function: (accel) acceleration profile 0
[  3471.801] (**) Avocent Keyboard/Mouse Function: (accel) acceleration factor: 2.000
[  3471.801] (**) Avocent Keyboard/Mouse Function: (accel) acceleration threshold: 4
[  3471.812] AUDIT: Thu May  7 15:52:38 2015: 9928: client 1 connected from local host ( uid=0 gid=0 pid=9925 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3471.827] AUDIT: Thu May  7 15:52:38 2015: 9928: client 2 connected from local host ( uid=0 gid=0 pid=9933 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3471.834] AUDIT: Thu May  7 15:52:38 2015: 9928: client 2 disconnected
[  3471.850] AUDIT: Thu May  7 15:52:38 2015: 9928: client 2 connected from local host ( uid=0 gid=0 pid=9942 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3471.890] AUDIT: Thu May  7 15:52:38 2015: 9928: client 2 disconnected
[  3471.894] AUDIT: Thu May  7 15:52:38 2015: 9928: client 2 connected from local host ( uid=0 gid=0 pid=9945 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3471.895] AUDIT: Thu May  7 15:52:38 2015: 9928: client 2 disconnected
[  3472.006] AUDIT: Thu May  7 15:52:38 2015: 9928: client 2 connected from local host ( uid=42 gid=42 pid=9951 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.025] AUDIT: Thu May  7 15:52:38 2015: 9928: client 3 connected from local host ( uid=42 gid=42 pid=9954 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.036] AUDIT: Thu May  7 15:52:38 2015: 9928: client 4 connected from local host ( uid=42 gid=42 pid=9957 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.205] AUDIT: Thu May  7 15:52:38 2015: 9928: client 5 connected from local host ( uid=42 gid=42 pid=9961 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.207] AUDIT: Thu May  7 15:52:38 2015: 9928: client 6 connected from local host ( uid=42 gid=42 pid=9965 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.239] AUDIT: Thu May  7 15:52:38 2015: 9928: client 7 connected from local host ( uid=42 gid=42 pid=9969 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.240] AUDIT: Thu May  7 15:52:38 2015: 9928: client 7 disconnected
[  3472.318] AUDIT: Thu May  7 15:52:38 2015: 9928: client 7 connected from local host ( uid=42 gid=42 pid=9957 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.320] AUDIT: Thu May  7 15:52:38 2015: 9928: client 8 connected from local host ( uid=42 gid=42 pid=9965 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.342] AUDIT: Thu May  7 15:52:39 2015: 9928: client 9 connected from local host ( uid=42 gid=42 pid=9976 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.357] AUDIT: Thu May  7 15:52:39 2015: 9928: client 10 connected from local host ( uid=42 gid=42 pid=9976 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.398] AUDIT: Thu May  7 15:52:39 2015: 9928: client 11 connected from local host ( uid=42 gid=42 pid=9965 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.399] AUDIT: Thu May  7 15:52:39 2015: 9928: client 11 disconnected
[  3472.401] AUDIT: Thu May  7 15:52:39 2015: 9928: client 12 connected from local host ( uid=42 gid=42 pid=9981 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.403] AUDIT: Thu May  7 15:52:39 2015: 9928: client 13 connected from local host ( uid=42 gid=42 pid=9984 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.404] AUDIT: Thu May  7 15:52:39 2015: 9928: client 14 connected from local host ( uid=42 gid=42 pid=9980 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.414] AUDIT: Thu May  7 15:52:39 2015: 9928: client 15 connected from local host ( uid=42 gid=42 pid=9979 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.426] AUDIT: Thu May  7 15:52:39 2015: 9928: client 16 connected from local host ( uid=42 gid=42 pid=9982 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.431] AUDIT: Thu May  7 15:52:39 2015: 9928: client 17 connected from local host ( uid=42 gid=42 pid=9979 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.437] AUDIT: Thu May  7 15:52:39 2015: 9928: client 18 connected from local host ( uid=42 gid=42 pid=9981 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.439] AUDIT: Thu May  7 15:52:39 2015: 9928: client 19 connected from local host ( uid=42 gid=42 pid=9984 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.439] AUDIT: Thu May  7 15:52:39 2015: 9928: client 20 connected from local host ( uid=42 gid=42 pid=9979 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.440] AUDIT: Thu May  7 15:52:39 2015: 9928: client 20 disconnected
[  3472.441] AUDIT: Thu May  7 15:52:39 2015: 9928: client 20 connected from local host ( uid=42 gid=42 pid=9980 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.442] AUDIT: Thu May  7 15:52:39 2015: 9928: client 21 connected from local host ( uid=42 gid=42 pid=9982 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.448] AUDIT: Thu May  7 15:52:39 2015: 9928: client 17 disconnected
[  3472.451] AUDIT: Thu May  7 15:52:39 2015: 9928: client 15 disconnected
[  3472.506] AUDIT: Thu May  7 15:52:39 2015: 9928: client 15 connected from local host ( uid=42 gid=42 pid=9992 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.523] AUDIT: Thu May  7 15:52:39 2015: 9928: client 17 connected from local host ( uid=42 gid=42 pid=9992 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3472.525] AUDIT: Thu May  7 15:52:39 2015: 9928: client 19 disconnected
[  3472.527] AUDIT: Thu May  7 15:52:39 2015: 9928: client 13 disconnected
[  3502.502] AUDIT: Thu May  7 15:53:09 2015: 9928: client 17 disconnected
[  3502.503] AUDIT: Thu May  7 15:53:09 2015: 9928: client 15 disconnected
[  3641.765] AUDIT: Thu May  7 15:55:28 2015: 9928: client 13 connected from local host ( uid=42 gid=42 pid=9965 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3641.766] AUDIT: Thu May  7 15:55:28 2015: 9928: client 13 disconnected
[  3796.500] AUDIT: Thu May  7 15:58:03 2015: 9928: client 11 rejected from local host ( uid=505 gid=0 pid=10018 )
[  3796.500] AUDIT: Thu May  7 15:58:03 2015: 9928: client 11 disconnected
[  3811.137] AUDIT: Thu May  7 15:58:17 2015: 9928: client 11 connected from local host ( uid=42 gid=42 pid=9965 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3811.138] AUDIT: Thu May  7 15:58:17 2015: 9928: client 11 disconnected
[  3980.527] AUDIT: Thu May  7 16:01:07 2015: 9928: client 13 connected from local host ( uid=42 gid=42 pid=9965 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  3980.527] AUDIT: Thu May  7 16:01:07 2015: 9928: client 13 disconnected
[  4035.288] AUDIT: Thu May  7 16:02:01 2015: 9928: client 11 rejected from local host ( uid=505 gid=0 pid=10469 )
[  4035.288] AUDIT: Thu May  7 16:02:01 2015: 9928: client 11 disconnected
[  4098.276] AUDIT: Thu May  7 16:03:04 2015: 9928: client 11 rejected from local host ( uid=505 gid=0 pid=10491 )
[  4098.276] AUDIT: Thu May  7 16:03:04 2015: 9928: client 11 disconnected
[  4143.996] AUDIT: Thu May  7 16:03:50 2015: 9928: client 11 rejected from local host ( uid=505 gid=0 pid=10545 )
[  4143.997] AUDIT: Thu May  7 16:03:50 2015: 9928: client 11 disconnected
[  4149.892] AUDIT: Thu May  7 16:03:56 2015: 9928: client 11 connected from local host ( uid=42 gid=42 pid=9965 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  4149.893] AUDIT: Thu May  7 16:03:56 2015: 9928: client 11 disconnected
[  4319.259] AUDIT: Thu May  7 16:06:45 2015: 9928: client 13 connected from local host ( uid=42 gid=42 pid=9965 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  4319.259] AUDIT: Thu May  7 16:06:45 2015: 9928: client 13 disconnected
[  4488.619] AUDIT: Thu May  7 16:09:35 2015: 9928: client 11 connected from local host ( uid=42 gid=42 pid=9965 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  4488.620] AUDIT: Thu May  7 16:09:35 2015: 9928: client 11 disconnected
[  4657.996] AUDIT: Thu May  7 16:12:24 2015: 9928: client 13 connected from local host ( uid=42 gid=42 pid=9965 )
  Auth name: MIT-MAGIC-COOKIE-1 ID: 653
[  4657.996] AUDIT: Thu May  7 16:12:24 2015: 9928: client 13 disconnected

So sorry for the long topic.
Thanks in advance
eca

Just running applications that depend on OpenGL acceleration from a terminal window probably won’t work. So the most likely issue you are facing is that you need to run these applications with vglrun, and also specify the proper OpenGL-accelerated X-display to use (not necessarily the “display” associated with the TurboVNC vncserver session). Something like this:

vglrun -d :0 glxgears

This is a fairly involved topic, and a fairly complete how-to writeup was just posted here:

[url]ubuntu - How to run CUDA/OpenGL interop (particle) sample from a remote machine - Stack Overflow

Thanks for the advice, txbob.
Actually I did try also with vglrun, with no luck (running with vglrun -d :0 gives a “No protocol specified” error, while vglrun -d :6 gives the same results as without vglrun).

What I suspect is that the problem resides in the fact that the Tesla M2090, as far as I know, is a compute-only card, and this seems to prevent its usage as a display controller. Moreover, I am in the situation of having both an non-nvidia iGPU (Matrox G200eR2) and a nvidia dGPU (Tesla M2090), the latter being a compute-only card. So I should have been extra careful in reading the documentation that recommends in these situations to use the “–no-opengl-libs” option - something I overlooked in my first installation.

Now I have a working situation, and this is what I obtained it:

  1. uninstall all the nvidia stuff with “sudo /usr/bin/nvidia-uninstall” and reboot. Now glxinfo works correctly and glxgears as well from a TurboVNC client;
  2. double check that the /etc/X11/xorg.conf is removed or restored to its original version as before installation of nvidia stuff;
  3. exit all VNC terminals and open a connection via ssh (PuTTY could be used if connecting from Windows)
  4. sudo init 3
  5. cd to the folder where you have cuda_7.0.28_linux.run
  6. sudo ./cuda_7.0.28_linux.run --no-opengl-libs
  7. answer “yes” when asked to install the driver, the toolkit and the examples
  8. sudo init 5, or reboot (I rebooted)

Now, after rebooting, everything seems to work as expected: glxinfo, paraView, and also the CUDA examples that I recompiled after reboot.

HTH,
eca

Actually it will work just fine with an M2090. If you follow those instructions I linked. I have worked through that process myself with an M2070, which is also a “no-display” card.

M2090 can handle offline display using this method under linux.

What you have done now is just moved all the OGL stuff to the Matrox card. Which is fine, but you’re not using the M2090 for OGL rendering and you won’t be able to run CUDA/OpenGL interop samples that way, I don’t think.