Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A VNC desktop session can be started on the compute nodes of Alps vclusters calling the script startvncdesktop, if the latter is available on the selected system. Please note that you will need toinstall a VNC viewer on your local machine as well, like:

  • RealVNC Viewer
  • TigerVNC Viewer
  • TightVNC Viewer

Please search online the instructions to install the VNC viewer, that might depend on your local operating system.

Step-by-step guide


  1. Please check the availability of startvncdesktop on the selected system with the command which startvncdesktop  
  2. Submit Adjust the following Slurm jobscriptbatch script, that targets the system Eiger.Alps  as an example example and provide an <executable>   
    Code Block
    languageshell
    #!/bin/bash
    #
    # VNC desktop on a compute node of Alps
    #
    # 1 node, 1 task per node
    #
    #SBATCH --job-name="vncdesktop"
    #SBATCH --output=vncdesktop.out
    #SBATCH --nodes=1
    #SBATCH -t 1:00:00
    #SBATCH -C mc&startx
    #SBATCH --account=csstaff
    if [ ! -e $HOME/.vnc/passwd ] ; then
      echo "For your protection, please run 'vncpasswd' before using vnc"
      exit 1
    fi
    
    echo "VNC Server accepting connections on 5901"
    echo "On client machinePlease choose a local free port (e.g. 60010) on the client machine and run: the commands below"
    echo "  ssh -f -L 60010:${HOSTNAME}:5901 -J $USER@ela.cscs.ch $USER@eiger.cscs.ch sleep 3600"
    echo "  vncviewer localhost:60010"
    echo "  You may use any available non-privileged port on your system in place of 60010."
    sync
    srun -n1 /usr/local/bin/startvncdesktop 1920x1080 {code}<executable>
  3. Once the Slurm job has started , you should successfully on a compute node of the selected system, please check the Slurm output file and follow the instructions on your local (client) machine to connect remotely to the compute node allocated by Slurm VNC server running on the selected system  allocated node

Content by Label
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("kb-software","kb-how-to-article") and type = "page" and space = "KB"
labelskb-how-to-article kb-software

...

Page properties
hiddentrue
Related issues