From b03603a6b47b0084ef2e338ef3e9ac03c71cb2e1 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 24 May 2022 08:27:31 -0400 Subject: [PATCH] Drop password auth from vnc server Currently we're held back by an `asyncvnc` issue, https://github.com/barneygale/asyncvnc/issues/1 but even still, given we're running the container to be only accessible by localhost i'm not sure we need this for the moment (or at all) anyway. --- dockering/ib/docker-compose.yml | 6 ++++++ dockering/ib/run_x11_vnc.sh | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 dockering/ib/run_x11_vnc.sh diff --git a/dockering/ib/docker-compose.yml b/dockering/ib/docker-compose.yml index d9e96e80..941d50b4 100644 --- a/dockering/ib/docker-compose.yml +++ b/dockering/ib/docker-compose.yml @@ -29,6 +29,12 @@ services: source: ./fork_ports_delayed.sh target: /root/scripts/fork_ports_delayed.sh + # force our noop script - socat isn't needed in host mode. + - type: bind + source: ./run_x11_vnc.sh + target: /root/scripts/run_x11_vnc.sh + read_only: true + # NOTE:to fill these out, define an `.env` file in the same dir as # this compose file which looks something like: # TWS_USERID='myuser' diff --git a/dockering/ib/run_x11_vnc.sh b/dockering/ib/run_x11_vnc.sh new file mode 100755 index 00000000..64197898 --- /dev/null +++ b/dockering/ib/run_x11_vnc.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +x11vnc \ + -ncache_cr \ + -display :1 \ + -forever \ + -shared \ + -logappend /var/log/x11vnc.log \ + -bg \ + -noipv6 \ + # can't use this because of ``asyncvnc`` issue: + # https://github.com/barneygale/asyncvnc/issues/1 + # -passwd "$VNC_SERVER_PASSWORD"