mirror of
https://github.com/budtmo/docker-android.git
synced 2026-07-29 19:00:34 +00:00
Able to have pass in vnc
This commit is contained in:
Executable
+13
@@ -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}
|
||||
Reference in New Issue
Block a user