Skip to content

Commit

Permalink
Docker: Node env vars to disable/enable VNC view only, password (#2489)
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 authored Dec 3, 2024
1 parent 9800a03 commit 363a1d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions NodeBase/start-vnc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ if [ "${START_XVFB:-$SE_START_XVFB}" = true ]; then
fi
done
VNC_NO_PASSWORD=${VNC_NO_PASSWORD:-$SE_VNC_NO_PASSWORD}
if [ ! -z $VNC_NO_PASSWORD ]; then
if [ "${VNC_NO_PASSWORD}" = "true" ] || [ "${VNC_NO_PASSWORD}" = "1" ]; then
echo "Starting VNC server without password authentication"
X11VNC_OPTS=
else
X11VNC_OPTS=-usepw
fi

VNC_VIEW_ONLY=${VNC_VIEW_ONLY:-$SE_VNC_VIEW_ONLY}
if [ ! -z $VNC_VIEW_ONLY ]; then
if [ "${VNC_VIEW_ONLY}" = "true" ] || [ "${VNC_VIEW_ONLY}" = "1" ]; then
echo "Starting VNC server with viewonly option"
X11VNC_OPTS="${X11VNC_OPTS} -viewonly"
fi
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1661,9 +1661,9 @@ Then, you would use in your VNC client:
If you get a prompt asking for a password, it is: `secret`. If you wish to change this,
you can set the environment variable `SE_VNC_PASSWORD`.

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

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

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`.

Expand Down

0 comments on commit 363a1d4

Please sign in to comment.