Skip to content

Commit 50d63f5

Browse files
subanithakdiemol
andauthored
ENV variable to VNC view only. (#1372)
Co-authored-by: Diego Molina <[email protected]>
1 parent 6965e44 commit 50d63f5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

NodeBase/start-vnc.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ if [ "${START_XVFB}" = true ] ; then
2121
X11VNC_OPTS=-usepw
2222
fi
2323

24+
if [ ! -z $VNC_VIEW_ONLY ]; then
25+
echo "Starting VNC server with viewonly option"
26+
X11VNC_OPTS=${X11VNC_OPTS} -viewonly
27+
fi
28+
2429
for i in $(seq 1 10)
2530
do
2631
sleep 1

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,8 @@ RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
604604

605605
If you want to run VNC without password authentication you can set the environment variable `VNC_NO_PASSWORD=1`.
606606

607+
If you want to run VNC in view-only mode you can set the environment variable `VNC_VIEW_ONLY=1`.
608+
607609
### Using your browser (no VNC client is needed)
608610

609611
This project uses [noVNC](https://github.com/novnc/noVNC) to allow users inspect visually container activity with

0 commit comments

Comments
 (0)