diff --git a/deprecated/vnc/Dockerfile.ubuntu b/deprecated/vnc/Dockerfile.ubuntu index 9e2ac36..65a4612 100644 --- a/deprecated/vnc/Dockerfile.ubuntu +++ b/deprecated/vnc/Dockerfile.ubuntu @@ -67,11 +67,7 @@ RUN ln -s /opt/TurboVNC/bin/* /opt/VirtualGL/bin/* /usr/local/bin/ # This can be ignored as the VNC server manages this lifecycle. RUN vglserver_config -config +s +f +t -RUN echo 'no-remote-connections\n\ -no-httpd\n\ -no-x11-tcp-connections\n\ -no-pam-sessions\n\ -' > /etc/turbovncserver-security.conf +COPY turbovncserver-security.conf /etc/turbovncserver-security.conf ENV VNC_SCRIPTS=$VNC_ROOT_DIR/scripts \ VNC_SETUP_SCRIPTS=$VNC_ROOT_DIR/setup \ diff --git a/deprecated/vnc/turbovncserver-security.conf b/deprecated/vnc/turbovncserver-security.conf new file mode 100644 index 0000000..c2d21bc --- /dev/null +++ b/deprecated/vnc/turbovncserver-security.conf @@ -0,0 +1,4 @@ +no-remote-connections +no-httpd +no-x11-tcp-connections +no-pam-sessions