User:Rernen

From Meta, a Wikimedia project coordination wiki

MATH NVIDIA

VirtualGL Installation / configuration[edit]

# rpm -ivh VirtualGL-2.3.x86_64.rpm

Preparing...                ########################################### [100%]
  1:VirtualGL              ########################################### [100%]

# rpm -ivh turbovnc-1.1.x86_64.rpm

Preparing...                ########################################### [100%]
  1:turbovnc               ########################################### [100%]

# init 3

# ps -ef | grep X

root      8401  3939  0 14:54 pts/1    00:00:00 grep X

# vglserver_config

1) Configure server for use with VirtualGL in GLX mode
2) Unconfigure server for use with VirtualGL in GLX mode
X) Exit

Choose:
1

Restrict 3D X server access to vglusers group (recommended)?
[Y/n]
n

Restrict framebuffer device access to vglusers group (recommended)?
[Y/n]
n

Disable XTEST extension (recommended)?
[Y/n]
n
... Creating /etc/modprobe.d/virtualgl.conf to set requested permissions for
    /dev/nvidia* ...
... Attempting to remove nvidia module from memory so device permissions
    will be reloaded ...
... Granting write permission to /dev/nvidia0 /dev/nvidia1 /dev/nvidiactl for all users ...
... /etc/X11/xorg.conf has been saved as /etc/X11/xorg.conf.orig.vgl ...
... Modifying /etc/X11/xorg.conf to enable DRI permissions for
    all users ...
... /etc/X11/xdm/Xsetup has been saved as /etc/X11/xdm/Xsetup.orig.vgl ...
... Adding xhost +LOCAL: to /etc/X11/xdm/Xsetup script ...
... /etc/gdm/Init/Default has been saved as /etc/gdm/Init/Default.orig.vgl ...
... Adding xhost +LOCAL: to /etc/gdm/Init/Default script ...
... Enabling XTEST extension in /etc/X11/xdm/Xservers ...
... Enabling XTEST extension in /etc/gdm/custom.conf ...
... Setting default run level to 5 (enabling graphical login prompt) ...
... Commenting out DisallowTCP line (if it exists) in /etc/gdm/custom.conf ...

Done. You must restart the display manager for the changes to take effect.


1) Configure server for use with VirtualGL in GLX mode
2) Unconfigure server for use with VirtualGL in GLX mode
X) Exit

Choose:
X

# init 5

# ps -ef | grep X

root      8671  8670 82 14:55 tty7     00:00:02 /usr/bin/X :0 -br -verbose -auth /var/run/gdm/auth-for-gdm-cs6QQ5/database -nolisten tcp vt7
root      8703  3939  0 14:55 pts/1    00:00:00 grep X

# xdpyinfo -display :0.0 | grep NV

   NV-CONTROL
   NV-GLX

# glxinfo -display :0.0 | more

name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig, 
    GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control, 
    GLX_EXT_swap_control, GLX_EXT_texture_from_pixmap, GLX_ARB_create_context, 
    GLX_ARB_create_context_profile, GLX_EXT_create_context_es2_profile, 
    GLX_ARB_create_context_robustness, GLX_ARB_multisample, 
    GLX_NV_float_buffer, GLX_ARB_fbconfig_float, GLX_EXT_framebuffer_sRGB
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info, 
    GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync, 
    GLX_NV_swap_group, GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGI_swap_control, GLX_EXT_swap_control, GLX_ARB_create_context, 
    GLX_ARB_create_context_profile, GLX_NV_float_buffer, 
    GLX_ARB_fbconfig_float, GLX_EXT_fbconfig_packed_float, 
    GLX_EXT_texture_from_pixmap, GLX_EXT_framebuffer_sRGB, 
    GLX_NV_present_video, GLX_NV_copy_image, GLX_NV_multisample_coverage, 
    GLX_NV_video_capture, GLX_EXT_create_context_es2_profile, 
    GLX_ARB_create_context_robustness
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig, 
    GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control, 
    GLX_EXT_swap_control, GLX_EXT_texture_from_pixmap, GLX_ARB_create_context, 
    GLX_ARB_create_context_profile, GLX_EXT_create_context_es2_profile,


TurboVNC configuration[edit]

# /opt/TurboVNC/bin/vncserver -geometry 1400x900

# vi /root/.vnc/xstartup.turbovnc

# grep XKL_XMODMAP_DISABLE /root/.vnc/xstartup.turbovnc

    export XKL_XMODMAP_DISABLE=1

# /opt/TurboVNC/bin/vncserver -kill :1

Killing Xvnc process ID 9211

# /opt/TurboVNC/bin/vncserver -geometry 1400x900

New 'X' desktop is service9:1

Starting applications specified in /root/.vnc/xstartup.turbovnc
Log file is /root/.vnc/service9:1.log

# ps -ef | grep X

root      8671  8670  0 14:55 tty7     00:00:04 /usr/bin/X :0 -br -verbose -auth /var/run/gdm/auth-for-gdm-cs6QQ5/database -nolisten tcp vt7
root      9362     1  0 15:16 pts/1    00:00:00 /opt/TurboVNC/bin/Xvnc :1 -desktop X -httpd /opt/TurboVNC/bin/../vnc/classes -auth /root/.Xauthority -dontdisconnect -geometry 1400x1000 -depth 24 -rfbwait 120000 -rfbauth /root/.vnc/passwd -otpauth -pamauth -rfbport 5901 -fp /usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/Speedo,/usr/share/fonts/Type1 -co /usr/share/X11/rgb -deferupdate 1
root      9477  9105  0 15:17 pts/1    00:00:00 grep X

# vncviewer service9:1