summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/vnc-connect.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/vnc-connect.sh b/tools/vnc-connect.sh
new file mode 100755
index 0000000..abb4f2c
--- /dev/null
+++ b/tools/vnc-connect.sh
@@ -0,0 +1,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