From 7f38218243d6badd4f9acff075e18dcb9ea26fa6 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Wed, 17 Jul 2019 03:50:29 +1000 Subject: [PATCH] messages --- acquirevnc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/acquirevnc b/acquirevnc index 178a6ad..21fdd1c 100755 --- a/acquirevnc +++ b/acquirevnc @@ -10,10 +10,14 @@ for file in /var/lib/vnc/* ; do done let "DISPLAY++" -echo $DISPLAY - # add user file echo "$DISPLAY" > /var/lib/vnc/${USER} chmod 644 /var/lib/vnc/${USER} /usr/local/bin/startvnc + +PORT=$((DISPLAY + 5900)) + +echo +echo "Your port number is ${PORT}; please note it down." +echo "You might like to see https://wiki.thunix.net/wiki/vnc for further information."