Skip to content

Commit 0adc0da

Browse files
author
Doro Wu
committed
feat: support x11vnc args - X11VNC_ARGS (bug #101)
Docker env X11VNC_ARGS
1 parent e6441d4 commit 0adc0da

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Dockerfile.amd64

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN apt-get update \
1717
supervisor nginx sudo vim-tiny net-tools zenity xz-utils \
1818
dbus-x11 x11-utils alsa-utils \
1919
mesa-utils libgl1-mesa-dri \
20-
lxde xvfb x11vnc \
20+
lxde xvfb x11vnc=0.9.16 \
2121
gtk2-engines-murrine gnome-themes-standard gtk2-engines-pixbuf gtk2-engines-murrine arc-theme \
2222
firefox chromium-browser \
2323
ttf-ubuntu-font-family ttf-wqy-zenhei \

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ Troubleshooting and FAQ
120120
1. boot2docker connection issue, https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/2
121121
2. Multi-language supports, https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/80
122122
3. Autostart, https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/85
123+
4. x11vnc arguments(multiptr), https://github.com/fcwu/docker-ubuntu-vnc-desktop/issues/101
123124

124125
License
125126
==================

image/startup.sh

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ if [ -n "$VNC_PASSWORD" ]; then
88
export VNC_PASSWORD=
99
fi
1010

11+
if [ -n "$X11VNC_ARGS" ]; then
12+
sed -i "s/^command=x11vnc.*/& ${X11VNC_ARGS}/" /etc/supervisor/conf.d/supervisord.conf
13+
fi
14+
1115
if [ -n "$RESOLUTION" ]; then
1216
sed -i "s/1024x768/$RESOLUTION/" /usr/local/bin/xvfb.sh
1317
fi

0 commit comments

Comments
 (0)