Commit a124b219 authored by Mathis Rosenhauer's avatar Mathis Rosenhauer
Browse files

Look for vncviewer in search path by default

parent 301181ae
......@@ -54,8 +54,8 @@ set -eu
# You can change the settings here or override them with command line
# options. SVNC_ACCTCODE is the only parameter you have to provide if
# your local username matches your username on the frontend and if
# vncviewer is installed in the standard location (tight/tigervnc on
# Linux for example).
# vncviewer is installed in the search path (tight/tigervnc on Linux
# for example).
# Project account code
......@@ -68,10 +68,9 @@ SVNC_USERNAME=$(id -un)
# Path to local vncviewer
# On Linux and other Unix systems chances are that vncviewer is
# installed in /usr/bin. If this is not the case, e.g. if you use
# TurboVNC or if you are on macOS, then change this parameter.
# If your local vnc client is not in the search path or named
# differently (e.g. TurboVNC, macOS), then change this parameter.
# Resolution of remote desktop window
......@@ -113,13 +112,13 @@ clean_up () {
set +e
if [[ -n ${vnc_host:-} ]]; then
echo "Killing vncserver :${vnc_display} on ${vnc_host}."
echo "Killing vncserver :${vnc_display} on ${vnc_host}."
ssh_frontend "ssh ${vnc_host} \"/opt/TurboVNC/bin/vncserver \
-kill :${vnc_display}\""
if [[ -n ${job_id:-} ]]; then
echo "Removing job ${job_id}."
echo "Removing job ${job_id}."
ssh_frontend "scancel -Q ${job_id}; sleep 1; \
cd .startvnc && rm -f out.${job_id}"
......@@ -252,7 +251,7 @@ main () {
local vnc_options="${SVNC_VNC_OPTIONS:-} \
-via ${SVNC_USERNAME}@${vnc_host}"
if [[ ${SVNC_PASSWORD} = "true" ]]; then
echo "Fetching password from frontend."
echo "Fetching password from frontend."
ssh_frontend "cat .vnc/passwd" > ${HOME}/vnc_passwd
vnc_options+=" -passwd ${HOME}/vnc_passwd"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment