User Tools

Site Tools


howto:remote_viz

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:remote_viz [2019/12/13 07:25]
ccrosby [Getting a Virtual Desktop on a compute node]
howto:remote_viz [2020/07/06 14:51] (current)
ccrosby [How to Videos]
Line 1: Line 1:
 ====== Visualisation servers ====== ====== Visualisation servers ======
 The visualization servers are intended for single-process pre- and post-processing only, as well as GUI monitoring of running jobs.  These servers are NOT intended for parallel processing or running compute tasks. ​ **The system administrators will terminate processes that do not fit the above description without warning.** ​ However, it is now possible to get a [[http://​wiki.chpc.ac.za/​howto:​remote_viz#​getting_a_virtual_desktop_on_a_compute_node|Virtual Desktop on a compute node]], where you can use the full capabilities of the compute node without restriction. The visualization servers are intended for single-process pre- and post-processing only, as well as GUI monitoring of running jobs.  These servers are NOT intended for parallel processing or running compute tasks. ​ **The system administrators will terminate processes that do not fit the above description without warning.** ​ However, it is now possible to get a [[http://​wiki.chpc.ac.za/​howto:​remote_viz#​getting_a_virtual_desktop_on_a_compute_node|Virtual Desktop on a compute node]], where you can use the full capabilities of the compute node without restriction.
 +
 +====== How to Videos ======
 +  - Basic ssh login : [[https://​youtu.be/​XEPZLtDf1Bw|ssh login to Lengau]]
 +  - Setting up ssh keys : [[https://​youtu.be/​AfXtM7t4MGs|ssh keys]]
 +  - Getting a VNC session on a visualization node : [[https://​youtu.be/​t3-Vc7zjxfQ|VizNode VNC session]]
 +  - Getting a VNC session on a compute node : [[https://​youtu.be/​EDpB-pB08Vo|Compute Node VNC session]]
 +
  
 ====== Remote Visualization ====== ====== Remote Visualization ======
Line 15: Line 22:
 There is a default VNC server installed on chpcviz. ​ Do not use it. Use TurboVNC, which can be started with a command like this: There is a default VNC server installed on chpcviz. ​ Do not use it. Use TurboVNC, which can be started with a command like this:
  
-/opt/​TurboVNC/​bin/​vncserver :3 -geometry 1920x1080 -depth 24+/apps/​chpc/​compmech/TurboVNC-2.2.3/​bin/​vncserver :3 -geometry 1920x1080 -depth 24
  
  
 === First time instructions === === First time instructions ===
-However, the default startup script that TurboVNC ​supplies for your X-Windows session is faulty. ​ We are working on providing a better ​default, but in the meantime, please use the following interim work-around:​ +TurboVNC ​by default ​sets up a startup file that selects ​the lightweight window ​manager Fluxbox.  ​If you are running TurboVNC ​on chpcviz1 ​or chpclic1 ​you can also use the friendlier window managers Mate or XFCE4.
-  * When starting ​up a VNC session for the first time on this system, start the default VNC server rather than TurboVNC. +
-  * As with TurboVNC, the vncserver will ask you to specify a password if this is a first usage. +
-  * You can immediately kill the vncserver, you only need its XWindows ​startup ​script as a template. +
-  * Change directory into $HOME/​.vnc +
-  * ''​cp xstartup xstartup.turbovnc''​ +
-  * Open xstartup.turbovnc in your favourite editor, and change the file so that it looks like the example below. +
-  * The reason for going through the above process is to make sure that xstart.turbovnc has the right permissions. ​ You can also just create the file in a text editor, and afterwards correct the permissions:​ ''​chmod 0700 xstartup.turbovnc''​ +
-  * **A word on Window managers**: Mate and Xfce4 provide desktops, with menus, etc. Fluxbox is a minimalist Window ​manager.  ​Fluxbox ​will start with a featureless black screen.  ​Click the right mouse button to get a menu from which you can start an Xterm. ​ You can resize windows with alt-right button. +
-  * It is not strictly speaking necessary to start your desktop session with the vglrun wrapper, but doing so makes it unnecessary to use it when running ​OpenGL applications in the desktop session. +
-  * Now start a TurboVNC ​session as per the usual manner. +
-  * If you have trouble with your configuration, ​or you have forgotten your VNC password, simply delete ​the $HOME/.vnc directory and start over.+
  
 Your xstartup.turbovnc file should look like this: Your xstartup.turbovnc file should look like this:
Line 52: Line 48:
 The vncserver will continue running even after logging out. If you are no longer going to use it, please kill the server as follows: The vncserver will continue running even after logging out. If you are no longer going to use it, please kill the server as follows:
  
-/opt/​TurboVNC/​bin/​vncserver -kill :3+/apps/​chpc/​compmech/TurboVNC-2.2.3/​bin/​vncserver -kill :3
  
 where :3 should be changed to whichever display the server has been running on. where :3 should be changed to whichever display the server has been running on.
Line 134: Line 130:
 ===== Shut down the TurboVNC session when done ===== ===== Shut down the TurboVNC session when done =====
  
-/opt/​TurboVNC/​bin/​vncserver -kill :3 +/apps/​chpc/​compmech/TurboVNC-2.2.3/​bin/​vncserver -kill :3 
  
 will shut down the VNC server for display 3, freeing up resources for other users. will shut down the VNC server for display 3, freeing up resources for other users.
Line 164: Line 160:
 Now launch the VNC server: Now launch the VNC server:
 <​code>​ <​code>​
-/​apps/​chpc/​compmech/​TurboVNC-2.1.2/​bin/​vncserver :1 -depth 24 -geometry 1800x1000 ​+/​apps/​chpc/​compmech/​TurboVNC-2.2.3/​bin/​vncserver :1 -depth 24 -geometry 1800x1000 ​
 </​code>​ </​code>​
 Use a resolution that fits your display. ​ Make note of the compute node hostname. Use a resolution that fits your display. ​ Make note of the compute node hostname.
Line 182: Line 178:
 #PBS -m abe #PBS -m abe
 #PBS -M justsomeuser@gmail.com #PBS -M justsomeuser@gmail.com
-/​apps/​chpc/​compmech/​TurboVNC-2.1.2/​bin/​vncserver :1 -depth 24 -geometry 1600x900+/​apps/​chpc/​compmech/​TurboVNC-2.2.3/​bin/​vncserver :1 -depth 24 -geometry 1600x900
 sleep 2h sleep 2h
-/​apps/​chpc/​compmech/​TurboVNC-2.1.2/​bin/​vncserver -kill :1+/​apps/​chpc/​compmech/​TurboVNC-2.2.3/​bin/​vncserver -kill :1
 </​file>​ </​file>​
  
/var/www/wiki/data/attic/howto/remote_viz.1576214756.txt.gz · Last modified: 2019/12/13 07:25 by ccrosby