Skip to content
Snippets Groups Projects
Commit b1cdd18e authored by Mathis Rosenhauer's avatar Mathis Rosenhauer
Browse files

Create .vnc if it doesn\'t exist

parent fff9537b
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,9 @@
#
# The vncviewer client has to support the -via option. TurboVNC,
# TigerVNC and TightVNC are known to work.
#
# You really should use publickey authentication. Otherwise you
# have to type your password many times.
set -e
......@@ -108,7 +111,8 @@ fi
if ! ${ssh_mistral} "test -s .vnc/passwd"; then
echo "No VNC password found. Please set now."
${ssh_mistral} -t "salloc -Q -n1 -pgpu -A${acctcode} -- /bin/bash -c \
'ssh -tt \$SLURM_JOB_NODELIST -- /opt/TurboVNC/bin/vncpasswd'"
'ssh -tt \$SLURM_JOB_NODELIST -- mkdir -p .vnc \
&& /opt/TurboVNC/bin/vncpasswd'"
fi
trap clean_up INT QUIT TERM ERR EXIT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment