File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,13 @@ if [ ! -z "$REMOTE_HOST" ]; then
40
40
REMOTE_HOST_PARAM=" -remoteHost $REMOTE_HOST "
41
41
fi
42
42
43
+ if [ ! -z $VNC_NO_PASSWORD ]; then
44
+ echo " starting VNC server without password authentication"
45
+ X11VNC_OPTS=
46
+ else
47
+ X11VNC_OPTS=-usepw
48
+ fi
49
+
43
50
if [ ! -z " $SE_OPTS " ]; then
44
51
echo " appending selenium options: ${SE_OPTS} "
45
52
fi
71
78
72
79
fluxbox -display $DISPLAY &
73
80
74
- x11vnc -forever -usepw -shared -rfbport 5900 -display $DISPLAY &
81
+ x11vnc $X11VNC_OPTS -forever -shared -rfbport 5900 -display $DISPLAY &
75
82
76
83
wait $NODE_PID
Original file line number Diff line number Diff line change @@ -261,6 +261,8 @@ When you are prompted for the password it is `secret`. If you wish to change thi
261
261
RUN x11vnc -storepasswd <your-password-here> /home/seluser/.vnc/passwd
262
262
` ` `
263
263
264
+ If you want to run VNC without password authentication you can set the environment variable `VNC_NO_PASSWORD=1`.
265
+
264
266
# ## Troubleshooting
265
267
266
268
All output is sent to stdout so it can be inspected by running :
Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ function shutdown {
11
11
wait $NODE_PID
12
12
}
13
13
14
+ if [ ! -z $VNC_NO_PASSWORD ]; then
15
+ echo " starting VNC server without password authentication"
16
+ X11VNC_OPTS=
17
+ else
18
+ X11VNC_OPTS=-usepw
19
+ fi
20
+
14
21
if [ ! -z " $SE_OPTS " ]; then
15
22
echo " appending selenium options: ${SE_OPTS} "
16
23
fi
38
45
39
46
fluxbox -display $DISPLAY &
40
47
41
- x11vnc -forever -usepw -shared -rfbport 5900 -display $DISPLAY &
48
+ x11vnc $X11VNC_OPTS -forever -shared -rfbport 5900 -display $DISPLAY &
42
49
43
50
wait $NODE_PID
You can’t perform that action at this time.
0 commit comments