Able to have pass in vnc

This commit is contained in:
butomo1989
2020-06-18 16:08:48 +02:00
parent ea5661fa41
commit 7ad2eb45c8
3 changed files with 19 additions and 1 deletions
Executable
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
vnc="/usr/bin/x11vnc -display ${DISPLAY} -forever -shared "
pass_path="/root/vncpass"
if [ ! -z "${VNC_PASSWORD}" ]; then
/usr/bin/x11vnc -storepasswd ${VNC_PASSWORD} ${pass_path}
param="-rfbauth ${pass_path}"
else
param="-nopw"
fi
${vnc}${param}