Changes between Version 33 and Version 34 of vnc3d
- Timestamp:
- 04/05/16 09:42:46 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
vnc3d
v33 v34 49 49 50 50 VNC offers the ability to detach from a session (running in a VNC server) and then attach back at a later time. \\ 51 That means, that the user can close the VNC viewer on his/her computer and any application started in the VNC session on the server keeps on running . They do not pause or even be killed. \\51 That means, that the user can close the VNC viewer on his/her computer and any application started in the VNC session on the server keeps on running - they do not pause or even be killed. \\ 52 52 Later on the user can connect back to the same VNC session (even from a different computer) and keep on working. \\ 53 53 54 [[Image(Trac_Setup_VNC.png, 640px)]]\\ 54 55 55 56 ==== hardware accelerated rendering (OpenGL) 56 [[Image(https://upload.wikimedia.org/wikipedia/commons/thumb/6/67/X11transport.png/600px-X11transport.png, 100px, align=right, margin=0)]]57 [[Image(https://upload.wikimedia.org/wikipedia/commons/thumb/6/67/X11transport.png/600px-X11transport.png, 200px, align=right, margin=0)]] 57 58 Whenever an OpenGL capable visualization software, like !VisIt, is started on the remote cluster node, \\ 58 OpenGL commands can be redirected to the GPU of this node with the help of [http://www.virtualgl.org VirtualGL] (using the command '''vglrun'''). \\ 59 OpenGL commands can be redirected to the GPU of this node with the help of [http://www.virtualgl.org VirtualGL]. \\ 60 * ... using '''vglrun''' (e.g. vglrun paraview) 59 61 This way the hardware accelerated rendering capabilities of a cluster node (if available) can be exploit for remote rendering. \\ 60 62 (attention: __without__ VirtualGL software, rendering using the CPU instead of the GPU must be used (if available), which is much slower). 61 63 62 [[Image(Trac_Setup_VNC.png, 640px)]]\\63 64 64 The following steps are necessary to start a VNC session for remote rendering with !VisIt on JURECA. 65 The following steps are necessary to start a VNC session for remote rendering with !VisIt on JURECA. \\ 65 66 Please notice that the VNC server is only available on vis-nodes! 66 67 67 ==== prerequisite: Create a VNC password and a startup script on JURECA68 This step is a prerequisite for using VNC and has only to be done '''once'''.69 70 The aim of this step is to create a VNC password and a very small (one line) VNC startup script to start the [http://www.xfce.org/?lang=en Xfce] desktop environment. \\71 As all VNC related commands are only available on a vis-node, one has to allocate a vis-node first and then start an interactive shell and execute the necessary commands there. \\72 It works as follows:73 74 {{{ #!sh75 # request allocation on visualization node ('vncpasswd' only available on vis-nodes)76 salloc -N 1 -p vis --gres=gpu:077 78 # spawn interactive application 'bash' on the visualization node79 srun -n 1 --pty /bin/bash -i80 81 # create .vnc directory in HOME82 mkdir ~/.vnc83 cd ~/.vnc84 85 # create VNC password for later authentication when connecting VNC viewer with VNC server86 vncpasswd # -> type in your VNC password (which will be stored in ~/.vnc/passwd)87 88 # create/overwrite xstartup-script89 echo "exec startxfce4" > ~/.vnc/xstartup90 91 # exit job and release allocation92 exit93 exit94 }}}95 96 68 === 1. Start VNC server on a vis node 97 Open an ssh shell on a login node of JURECA the usual way.\\69 Open an ssh shell on any login node of JURECA the usual way.\\ 98 70 99 71 salloc is used to request an allocation. When the job is started, a shell (or other program specified on the command line) is started on the submission host (login node). From the shell srun can be used to interactively spawn parallel applications. The allocation is released when the user exits the shell. … … 103 75 # request allocation and spawn VNC server on visualization node 104 76 salloc -N 1 -p vis --gres=mem512,gpu:1 --start-xserver --time=1:00:00 105 srun -n 1 --cpu_bind=none --gres=gpu:1 vncserver -fg - geometry 1920x108077 srun -n 1 --cpu_bind=none --gres=gpu:1 vncserver -fg -profile vis -geometry 1920x1080 106 78 }}} 79 salloc/srun options 107 80 * -N 1 -> Set number of requested nodes. 108 81 * -p vis -> Limit request to nodes from the visualization partition. … … 113 86 * Please check 'salloc --help' and 'srun --help' for more details. 114 87 88 vncserver options 89 * -fg -> start VNC server in the foreground (ensure the end of job-script is not reached, as this will stop the job) 90 * -profile -> choose a profile (eg. default, vis) 91 * -geometry -> set the screen size (optional) 92 115 93 In case the VNC server could successfully be started, you will get an output like: 116 {{{ #!ShellExample 117 > New 'jrc1391:1 (<USER>)' desktop is jrc1391:1 118 > 119 > Starting applications specified in ${HOME}/.vnc/xstartup 120 > Log file is ${HOME}/.vnc/jrc1391:1.log 94 {{{ #!sh 95 Desktop 'TurboVNC: jrc1384.zam.kfa-juelich.de:1 (<USERID>)' started on display jurecavis01.fz-juelich.de:1 121 96 }}} 122 97