docker-android/src/vnc.sh

14 lines
266 B
Bash
Raw Normal View History

2020-06-18 15:08:48 +01:00
#!/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}