Skip to content

Commit 363a1d4

Browse files
authored
Docker: Node env vars to disable/enable VNC view only, password (#2489)
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
1 parent 9800a03 commit 363a1d4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

NodeBase/start-vnc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ if [ "${START_XVFB:-$SE_START_XVFB}" = true ]; then
1414
fi
1515
done
1616
VNC_NO_PASSWORD=${VNC_NO_PASSWORD:-$SE_VNC_NO_PASSWORD}
17-
if [ ! -z $VNC_NO_PASSWORD ]; then
17+
if [ "${VNC_NO_PASSWORD}" = "true" ] || [ "${VNC_NO_PASSWORD}" = "1" ]; then
1818
echo "Starting VNC server without password authentication"
1919
X11VNC_OPTS=
2020
else
2121
X11VNC_OPTS=-usepw
2222
fi
2323

2424
VNC_VIEW_ONLY=${VNC_VIEW_ONLY:-$SE_VNC_VIEW_ONLY}
25-
if [ ! -z $VNC_VIEW_ONLY ]; then
25+
if [ "${VNC_VIEW_ONLY}" = "true" ] || [ "${VNC_VIEW_ONLY}" = "1" ]; then
2626
echo "Starting VNC server with viewonly option"
2727
X11VNC_OPTS="${X11VNC_OPTS} -viewonly"
2828
fi

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,9 +1661,9 @@ Then, you would use in your VNC client:
16611661
If you get a prompt asking for a password, it is: `secret`. If you wish to change this,
16621662
you can set the environment variable `SE_VNC_PASSWORD`.
16631663

1664-
If you want to run VNC without password authentication you can set the environment variable `SE_VNC_NO_PASSWORD=1`.
1664+
If you want to run VNC without password authentication you can set the environment variable `SE_VNC_NO_PASSWORD=true`.
16651665

1666-
If you want to run VNC in view-only mode you can set the environment variable `SE_VNC_VIEW_ONLY=1`.
1666+
If you want to run VNC in view-only mode you can set the environment variable `SE_VNC_VIEW_ONLY=true`.
16671667

16681668
If you want to modify the open file descriptor limit for the VNC server process you can set the environment variable `SE_VNC_ULIMIT=4096`.
16691669

0 commit comments

Comments
 (0)