...
If is your first time starting a VNC server on CSUC HPC you need to set a vnc passowrd through the following the instructions:
Start an interactive session on a GPU node:
Info title Start interactive job salloc -n 24 -N 1 -p gpu --gres=gpu:1 -C vnc -t 2:00:00
Run the following commands and follow the screen instructions:
Info title Start vnc server module load tools/turbovnc/2.1.1
vncserver
- When you complete de "wizard" go to step 2.
If is not your first time starting a VNC server on CSUC HPC: Copy the following script into a slm file and launch it.
Info title Start VNC server #!/bin/bash
#SBATCH -p gpu
#SBATCH -N 1
#SBATCH -n 24
#SBATCH --job-name="VNC_server"
#SBATCH -o vnc_server.out
#SBATCH -e vnc_server.err
#SBATCH --gres=gpu:11##SBATCH -C "vnc"
#SBATCH -t 01:00:00 #1Hour time limit, you can change it as your convenience
module load tools/turbovnc/2.1.1vncserver
sleep 1000000 #Wait until time finishes
- Download the vnc_tunnel.sh bash scrip and wait until your batch job were on running state.
- Run vnc_tunnel.sh on your local machine and follow the instructions (It is possible that script ask for your CSUC HPC username and password several times during the execution).
- After the script execution, a ssh tunnel should be created on a local port of your choice. Start your VNC client targeting to "localhost:your_local_port" using the password that you typed the first time you started vncserver (step 1).
...