moved to ubuntu18

This commit is contained in:
Ville Rantanen
2019-02-14 11:51:00 +02:00
parent 024295c98a
commit 514e6bd042
4 changed files with 8 additions and 45 deletions

View File

@@ -35,7 +35,6 @@ for (( i=1; i<=$#; i++ )); do
}
done
set -e
[[ -f vnc_passwd ]] || pwgen
[[ -f .id_rsa.pub ]] || rsagen
[[ -f .id_rsa ]] || rsagen
@@ -76,14 +75,6 @@ while :; do
ssh-keyscan $IP && break
done
[[ "$VNC" -eq 1 ]] && {
ssh -i .id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $USER@$IP /home/$USER/bin/vncs "$VNCSIZE"
while :; do
wget -qO- ${IP}:5900 && break
sleep 5
done
vncviewer -passwd vnc_passwd ${IP}:5900 &> /dev/null &
}
ssh -i .id_rsa -XY -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $USER@$IP #&& break
echo "Shutting down $nname"
sleep 1