JUSTUS2/Visualization: Difference between revisions

From bwHPC Wiki
Jump to navigation Jump to search
Line 48: Line 48:
[[File:Tightvnc.png|center|tightvnc login window]]
[[File:Tightvnc.png|center|tightvnc login window]]


* '''Login without TurboVNC Java Viewer for Linux users'''<br />Needed software: A VNC Client such as TurboVNC <br />A SSH tunnel must be created with the command given to you by the <code>run_vncserver</code> script, e.g.: <code>$ ssh -fCL 5903:localhost:5903 ul_cky67@justus2-vis01.rz.uni-ulm.de</code> Open a new terminal, start a VNC viewer and connect to localhost:n, where n is the display number printed by ''run_vncserver'', using a command such like this<br /><code>$ vncviewer localhost:3</code>
* '''Login without TurboVNC Java Viewer for Linux users'''<br />Needed software: A VNC Client such as TurboVNC <br />A SSH tunnel must be created with the command given to you by the <code>run_vncserver</code> script, e.g.: <code>$ ssh -fCL 5903:localhost:5903 ul_cky67@justus2-vis01.rz.uni-ulm.de</code>
Start your VNC Client and connect to localhost:n, where n is the display number printed by ''run_vncserver'', using the command given to you by the <code>run_vncserver</code> script, e.g.: <code>$ vncviewer localhost:3</code>


* '''Login without TurboVNC Java Viewer for Windows users'''<br />Needed software: [https://sourceforge.net/projects/tigervnc/files/tigervnc/1.3.0 tigervnc], [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]<br />You need to start Putty and go to Connection -> SSH -> Tunnels. Fill in the parameters provided by ''run_vncserver''. After you clicked "Add" you must navigate to Session and connect to the bwUniCluster with your username and password. Once the connection is established start the tigervnc client and connect to localhost:n where n is the display number printed by ''run_vncserver''.
* '''Login without TurboVNC Java Viewer for Windows users'''<br />Needed software: [https://sourceforge.net/projects/tigervnc/files/tigervnc/1.3.0 tigervnc], [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]<br />You need to start Putty and go to Connection -> SSH -> Tunnels. Fill in the parameters provided by ''run_vncserver''. After you clicked "Add" you must navigate to Session and connect to the bwUniCluster with your username and password. Once the connection is established start the tigervnc client and connect to localhost:n where n is the display number printed by ''run_vncserver''.

Revision as of 15:07, 8 October 2020

Description Content
module load vis/tigervnc
Availability bwUniCluster_2 | BwForCluster_JUSTUS_2
License GPL
Citing n/a
Links TigerVNC Homepage
Graphical Interface No

Description

TigerVNC is a high-performance implementation of Virtual Network Computing (VNC). VNC is a client/server application that allows users to launch and interact with graphical applications on remote machines. It is usually faster than standard X11 forwarding and thus should be used if a graphical software feels slow and has bad responsiveness.

Availability

TigerVNC is available on selected bwHPC-Clusters. A complete list of versions currently installed on the bwHPC-Clusters can be obtained from the Cluster Information System (CIS).

VNC Server

First, you have to start the VNC Server on the cluster. The startup procedure depends on the cluster and hardware you are using.

VNC Client

The startup script of the VNC Server should have printed out detailed instructions about how to establish a connection to the VNC Server from your local computer. These instructions depend on the operating system (e.g., Linux/macOS, MS Windows) you are using and if you work with TurboVNC Java Viewer which is a tool that can simplify the handling but needs the Java Development Kit (JDK) to run. Therefore, the next steps are divided into three cases. The commands should be executed on the local computer.

  • Login using TurboVNC Java Viewer
    Needed software: TurboVNC, JDK
    Open TurboVNC Java Viewer. Go to Options... -> Security -> Gateway and fill in the parameters provided by the run_vncserver script. You can save these settings in the "Global" tab if you want to. Now you can click "OK", supply the VNC server and connect to the server. You should be prompted for your ssh password and your VNC password and after that the connection is established.
  • Login using TightVNC Java Viewer
    Needed software: TightVNC Choose "TightVNC Java Viewer JAR in a ZIP archive". Unzip to get the jar file. Run with a double click or with
    java -jar tightvnc-jviewer.jar
    Fill in information from run_vncserver script (see picture. Adjust the data in red circles to match your user and VNC server).
tightvnc login window
  • Login without TurboVNC Java Viewer for Linux users
    Needed software: A VNC Client such as TurboVNC
    A SSH tunnel must be created with the command given to you by the run_vncserver script, e.g.: $ ssh -fCL 5903:localhost:5903 ul_cky67@justus2-vis01.rz.uni-ulm.de

Start your VNC Client and connect to localhost:n, where n is the display number printed by run_vncserver, using the command given to you by the run_vncserver script, e.g.: $ vncviewer localhost:3

  • Login without TurboVNC Java Viewer for Windows users
    Needed software: tigervnc, Putty
    You need to start Putty and go to Connection -> SSH -> Tunnels. Fill in the parameters provided by run_vncserver. After you clicked "Add" you must navigate to Session and connect to the bwUniCluster with your username and password. Once the connection is established start the tigervnc client and connect to localhost:n where n is the display number printed by run_vncserver.


Shutdown

To exit your VNC session it is not sufficient to only close the window of the viewer, because this will not terminate the VNC server. The server will keep running and you will run into problems when you try to start a new VNC session later on. Please use the "log out" function of the desktop environment inside the VNC session, this will terminate the server properly.

Starting OpenGL programs

Starting an OpenGL program in a 3D accelerated VNC session results in an error message. In order to fix this issue and redirect OpenGL commands to the graphics card on the cluster you have to use the vglrun command like in the following example:

$ vglrun glxgears -info