Page History
...
- Please check the availability of
startvncdesktopon the selected system with the commandwhich startvncdesktop - Adjust the following Slurm batch script, that targets the system
Eiger.Alpsas an example and provide an<executable>Code Block language shell #!/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 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 "Please 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 <executable> - Once the Slurm job has started , you should successfully the VNC server on the compute nodes, check the Slurm output file and follow the instructions on your local (client) machine to connect remotely to the compute node allocated by Slurm on VNC server on the compute of the selected system
Related articles
...