vnc
Description
VNC for EL 8.10
Available Versions of vnc
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 n2loginyou 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:
In a first terminal:
SSH into login node
Enter a screen/tmux session
Start an interactive job using srun
Load the module, e.g.
`module load tools vnc`Start the script
VNC.shThe 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 #############
In a second terminal:
Tunnel the VNC port to the compute node, e.g.
ssh -L PORT:[..] -J n2login HOSTNAME, useThis will tunnel your local port
PORTto the VNC server running on the compute node
Open your local VNC viewer and open
localhost:PORTUse the task bar menu to open xterm or xfce4-terminal to start more commands.
In case your internet connection fails:
Redo step 2 to reestablish the port tunneling (in case it disconnected)
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.