Version 9 (modified by rider, 16 years ago) (diff) |
---|
VirtualGL Usage Note
TurboVNC
Part1 - Basic Setting
rock@gpfs-server:~$ /opt/TurboVNC/bin/vncpasswd (Enter Your Passwd - The password is saved in ~/.vnc/passwd)
rock@gpfs-server:~$ sudo apt-get install xfs xinetd libimlib*
rock@gpfs-server:~/.vnc$ sudo vim /etc/gdm/gdm.conf
DisallowTCP=false
rock@gpfs-server:~$ sudo vim /etc/services
# Make the following settings by checking /etc/X11/xorg.conf
vnc-640x480x8 5950/tcp vnc-800x600x8 5951/tcp vnc-1024x768x8 5952/tcp vnc-1152x864x8 5953/tcp vnc-1280x1024x8 5954/tcp vnc-640x480x16 5960/tcp vnc-800x600x16 5961/tcp vnc-1024x768x16 5962/tcp vnc-1152x864x16 5963/tcp vnc-1280x1024x16 5964/tcp vnc-640x480x24 5970/tcp vnc-800x600x24 5971/tcp vnc-1024x768x24 5972/tcp vnc-1152x864x24 5973/tcp vnc-1280x1024x24 5974/tcp vnc-640x480x32 5980/tcp vnc-800x600x32 5981/tcp vnc-1024x768x32 5982/tcp vnc-1152x864x32 5983/tcp vnc-1280x1024x32 5984/tcp
rock@gpfs-server:~$ sudo vim /etc/xinetd.d/xvncserver
service vnc-640x480x8 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 640x480 -depth 8 } service vnc-800x600x8 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 800x600 -depth 8 } service vnc-1024x768x8 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 1024x768 -depth 8 } service vnc-1152x864x8 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 8 } service vnc-1280x1024x8 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 8 } service vnc-640x480x16 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 640x480 -depth 16 } service vnc-800x600x16 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 800x600 -depth 16 } service vnc-1024x768x16 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 1024x768 -depth 16 } service vnc-1152x864x16 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 16 } service vnc-1280x1024x16 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 16 } service vnc-640x480x24 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 640x480 -depth 24 } service vnc-800x600x24 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 800x600 -depth 24 } service vnc-1024x768x24 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 1024x768 -depth 24 } service vnc-1152x864x24 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 24 } service vnc-1280x1024x24 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 24 # port = 5973 } service vnc-640x480x32 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 640x480 -depth 32 } service vnc-800x600x32 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 800x600 -depth 32 } service vnc-1024x768x32 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 1024x768 -depth 32 } service vnc-1152x864x32 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 32 } service vnc-1280x1024x32 { protocol = tcp socket_type = stream wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -once -geometry 1280x1024 -depth 32 }
Part2 - X Font Server
@ Server rock@gpfs-server:~$ sudo vim /etc/X11/fs/config
#no-listen = tcp
rock@gpfs-server:~$ sudo /etc/init.d/xfs restart
rock@gpfs-server:~$ sudo /etc/init.d/gdm restart
@ Client rider@350z:~$sudo vim /etc/X11/xorg.conf
FontPath "tcp/ServerIP_Address:7100"
## Client can get fonts support from x font server (xfs)
## Put the RGB Database (rgb.txt - attached file)to the path /usr/X11R6/lib/X11/
rock@gpfs-server:~$ sudo cp /home/rock/rgb.txt /usr/X11R6/lib/X11/
Part3 - TurboVNC Server Activation
rock@gpfs-server:~$ /opt/TurboVNC/bin/vncserver
New 'X' desktop is gpfs-server:1 Creating default startup script /home/rock/.vnc/xstartup Starting applications specified in /home/rock/.vnc/xstartup Log file is /home/rock/.vnc/gpfs-server:1.log
PS1:
Individual users can provide both user and view-only passwords. These should be different. Users can give the view-only password to someone so that they can see the remote session, but not interact.TurboVNC assigns access based on which password is used. The user password lets you provide mouse and keyboard input.
PS2:
I set 2 passwords for both user & view-only,and passwords are different for all-level users.
VirtualGL
Server
rock@gpfs-server:~$ sudo /opt/VirtualGL/bin/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 local 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 ... Granting write permission to /dev/nvidia* for all users ... chmod: cannot access `/dev/nvidia*': No such file or directory chown: cannot access `/dev/nvidia*': No such file or directory ... Adding xhost +localhost to /etc/gdm/Init/Default script ... ... Setting default run level to 5 (enabling graphical login prompt) ... 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
rock@gpfs-server:~$ sudo vim /etc/profile
### Using GLP by Default in VirtualGL VGL_DISPLAY=glp export VGL_DISPLAY
rock@gpfs-server:~$ source /etc/profile
rock@gpfs-server:~$ /opt/VirtualGL/bin/vglrun IvIsee 3D_model_file
Client
rider@350z:~$ /opt/VirtualGL/bin/vglconnect ServerIP_Address
IvIsee + VirtualGL + TurboVNC +/- GPFS
Reference: http://www.virtualgl.org/vgldoc/2_1final/
Attachments (3)
-
rgb.txt
(16.9 KB) -
added by rider 16 years ago.
RGB Database
-
turbovnc-gpfs-server.png
(245.6 KB) -
added by rider 16 years ago.
VGL + TurboVNC + GPFS Demo
-
2.6.20_gpfs.config
(75.2 KB) -
added by rider 16 years ago.
2.6.20_gpfs with DRM related module
Download all attachments as: .zip