From c410134c7de3de7f2c836862049e40afd5ceb0a1 Mon Sep 17 00:00:00 2001 From: m1k1o Date: Fri, 19 Feb 2021 17:13:52 +0100 Subject: [PATCH] add vncviewer. --- .m1k1o/vncviewer/Dockerfile | 17 + .m1k1o/vncviewer/openbox.xml | 763 ++++++++++++++++++++++++++++++ .m1k1o/vncviewer/supervisord.conf | 21 + 3 files changed, 801 insertions(+) create mode 100644 .m1k1o/vncviewer/Dockerfile create mode 100644 .m1k1o/vncviewer/openbox.xml create mode 100644 .m1k1o/vncviewer/supervisord.conf diff --git a/.m1k1o/vncviewer/Dockerfile b/.m1k1o/vncviewer/Dockerfile new file mode 100644 index 00000000..6deea331 --- /dev/null +++ b/.m1k1o/vncviewer/Dockerfile @@ -0,0 +1,17 @@ +FROM m1k1o/neko:base + +# +# install vncviewer +RUN set -eux; apt-get update; \ + apt-get install -y --no-install-recommends openbox xtightvncviewer; \ + # + # clean up + apt-get clean -y; \ + rm -rf /var/lib/apt/lists/* /var/cache/apt/* + +ENV NEKO_VNC_URL="" + +# +# copy configuation files +COPY supervisord.conf /etc/neko/supervisord/vncviewer.conf +COPY openbox.xml /etc/neko/openbox.xml diff --git a/.m1k1o/vncviewer/openbox.xml b/.m1k1o/vncviewer/openbox.xml new file mode 100644 index 00000000..7b5f0ecf --- /dev/null +++ b/.m1k1o/vncviewer/openbox.xml @@ -0,0 +1,763 @@ + + + + + + + + 10 + 20 + + + + + + no + true + yes + normal + + + + + yes + + no + + yes + + no + + 200 + + no + + + + + Smart + +
yes
+ + Primary + + 1 + +
+ + + Clearlooks + NLIMC + + yes + yes + + sans + 8 + + bold + + normal + + + + sans + 8 + + bold + + normal + + + + sans + 9 + + normal + + normal + + + + sans + 9 + + normal + + normal + + + + sans + 9 + + bold + + normal + + + + sans + 9 + + bold + + normal + + + + + + + 1 + 1 + + + + 875 + + + + + yes + Nonpixel + + Center + + + + + 10 + + 10 + + + + + + + 0 + 0 + 0 + 0 + + + + TopLeft + + 0 + 0 + no + Above + + Vertical + + no + 300 + + 300 + + Middle + + + + + C-g + + + + leftno + + + rightno + + + upno + + + downno + + + leftno + + + rightno + + + upno + + + downno + + + 1 + + + 2 + + + 3 + + + 4 + + + + + + + + + + + + + + + + + + + + scrot -s + + + + + + + + + + + + + + + + + + + + + + + + yesyes + + + + + + + + + + + + right + + + + + left + + + + + up + + + + + down + + + + + + + + true + Konqueror + + kfmclient openProfile filemanagement + + + + + scrot + + + + + 1 + + 500 + + 400 + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + previous + + + next + + + previous + + + next + + + previous + + + next + + + + + + + + + + + + + + no + + + + + + + + + + + yes + + + + + + + + + + + + + + + + + + + + + + + + + + + top + + + + + + left + + + + + + right + + + + + + bottom + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + vertical + + + horizontal + + + + + + + + + + + + + + + + + previous + + + next + + + + previous + + + next + + + previous + + + next + + + + + + + + + + + + + + + + + + + + previous + + + next + + + previous + + + next + + + + + + + + + + + menu.xml + 200 + + no + + 100 + + 400 + + yes + + yes + + + + + + + +
diff --git a/.m1k1o/vncviewer/supervisord.conf b/.m1k1o/vncviewer/supervisord.conf new file mode 100644 index 00000000..c3ebdd84 --- /dev/null +++ b/.m1k1o/vncviewer/supervisord.conf @@ -0,0 +1,21 @@ +[program:vncviewer] +environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s",DISPLAY="%(ENV_DISPLAY)s" +command=/usr/bin/vncviewer -autopass -x11cursor -nojpeg -quality 9 -compresslevel 9 %(ENV_NEKO_VNC_URL)s +autorestart=true +priority=800 +user=%(ENV_USER)s +stdout_logfile=/var/log/neko/vncviewer.log +stdout_logfile_maxbytes=100MB +stdout_logfile_backups=10 +redirect_stderr=true + +[program:openbox] +environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s",DISPLAY="%(ENV_DISPLAY)s" +command=/usr/bin/openbox --config-file /etc/neko/openbox.xml +autorestart=true +priority=300 +user=%(ENV_USER)s +stdout_logfile=/var/log/neko/openbox.log +stdout_logfile_maxbytes=100MB +stdout_logfile_backups=10 +redirect_stderr=true