vnc 

vnc 

Description

VNC for EL 8.10

Available Versions of vnc

Version

Module

Available on

Version

Module

Available on

9.4

tools/vnc/9.4

Otus

8.10

tools/vnc/8.10

Noctua 2

This table is generated automatically. If you need other versions please click pc2-support@uni-paderborn.de.

Usage Hints for vnc

If you need support in using this software or example job scripts please click pc2-support@uni-paderborn.de.

Usage

We recommend to always use a screen/tmux session to make reconnection to the running session possible.

Prerequisites:

  • you must be able to connect to a login node, e.g. ssh n2login

  • you need a VNC viewer program installed on your local machine

We do not recommend to use the login nodes to keep the load on them light.

Here is the usage for a compute node:

  1. In a first terminal:

    1. SSH into login node

    2. Enter a screen/tmux session

    3. Start an interactive job using srun

    4. Load the module, e.g. `module load tools vnc`

    5. Start the script VNC.sh

    6. The script will show a line similar to ssh -L PORT:[..] HOSTNAME, for example:

      ############# ssh -L 5901:/run/user/12345/vnc1 n2login1 Afterwards connect with your local VNC client to your local port 5901 #############
  2. In a second terminal:

    1. Tunnel the VNC port to the compute node, e.g. ssh -L PORT:[..] -J n2login HOSTNAME, use

      1. This will tunnel your local port PORT to the VNC server running on the compute node

  3. Open your local VNC viewer and open localhost:PORT

  4. Use the task bar menu to open xterm or xfce4-terminal to start more commands.

  5. In case your internet connection fails:

    1. Redo step 2 to reestablish the port tunneling (in case it disconnected)

    2. Redo step 3

If VNC.shcomplains about used up display numbers, use VNC.sh -d 1001 or higher to use a different display number. This should not happen.

If your VNC viewer does not change the resolution when changing the window size, then you can use the -g WIDTHxHEIGHT parameter to set the resolution of the VNC display according to your preference. For example, if your local resolution is 1920x1080, then you could specify -g 1920x1000 to use the complete width of your local screen and leave a little height for the UI of the VNC viewer.