/usr/bin/ltsp-cluster-nxloadbalancer is in ltsp-cluster-nxloadbalancer 2.0.3-0ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #!/bin/sh
# This will attempt a unsecure connection to a remote ssh server, you're warned.
# It'll ignore unknown and invalid user hostkeys, you can still use global hostkeys.
. /etc/ltsp/nxloadbalancer.conf
# defaults
PORT=${PORT:-"8008"}
TIMEOUT=${TIMEOUT:-"10"}
URL="http://$SERVER:$PORT/"
if [ -n "$LBGROUP" ]; then
URL="$URL?group=$LBGROUP"
fi
NXSERVER=$(wget -q -O - --timeout=$TIMEOUT -t 1 $URL)
ssh -o StrictHostKeyChecking=no nx@$NXSERVER
|