summaryrefslogtreecommitdiff
path: root/tools/vnc-connect.sh
blob: abb4f2c4458566c8f5ee42e43d6027eb7143f289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

#export DISPLAY=:99

VNC_HOST=127.0.0.1
VNC_PORT=5900

while ! nc -z $VNC_HOST $VNC_PORT; do   
  sleep 1
  echo "waiting for vnc in $VNC_HOST:$VNC_PORT ..."
done
echo "vnc on."

vncviewer -shared $VNC_HOST:$VNC_PORT