From 94f1cd5c38cf9418bd31c2882dfef41c07bc4f06 Mon Sep 17 00:00:00 2001 From: m1k1o Date: Sat, 3 Apr 2021 17:55:27 +0200 Subject: [PATCH] add tor-browser. --- .m1k1o/tor-browser/Dockerfile | 25 + .m1k1o/tor-browser/openbox.xml | 763 ++++++++++++++++++++++++++++ .m1k1o/tor-browser/supervisord.conf | 24 + README.md | 1 + 4 files changed, 813 insertions(+) create mode 100644 .m1k1o/tor-browser/Dockerfile create mode 100644 .m1k1o/tor-browser/openbox.xml create mode 100644 .m1k1o/tor-browser/supervisord.conf diff --git a/.m1k1o/tor-browser/Dockerfile b/.m1k1o/tor-browser/Dockerfile new file mode 100644 index 00000000..0aff01e6 --- /dev/null +++ b/.m1k1o/tor-browser/Dockerfile @@ -0,0 +1,25 @@ +ARG BASE_IMAGE=m1k1o/neko:base +FROM $BASE_IMAGE + +# +# install dependencies +RUN set -eux; apt-get update; \ + apt-get install -y --no-install-recommends openbox curl xz-utils file libgtk-3-0 libdbus-glib-1-2; \ + # + # download TOR browser + DOWNLOAD_URI="$(curl -s -N https://www.torproject.org/download/ | grep -Po -m 1 '(?=(dist/torbrowser)).*(?<=.tar.xz)')"; \ + echo "Downloading $DOWNLOAD_URI"; \ + curl -sSL -o /tmp/tor.tar.xz "https://www.torproject.org/$DOWNLOAD_URI"; \ + tar -xvJf /tmp/tor.tar.xz -C /opt; \ + chown -R neko:neko /opt/tor-browser_en-US/; \ + rm -f /tmp/tor.tar.xz; \ + # + # clean up + apt-get --purge autoremove -y curl xz-utils; \ + apt-get clean -y; \ + rm -rf /var/lib/apt/lists/* /var/cache/apt/*; + +# +# copy configuation file +COPY supervisord.conf /etc/neko/supervisord/tor-browser.conf +COPY openbox.xml /etc/neko/openbox.xml diff --git a/.m1k1o/tor-browser/openbox.xml b/.m1k1o/tor-browser/openbox.xml new file mode 100644 index 00000000..f288d364 --- /dev/null +++ b/.m1k1o/tor-browser/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/tor-browser/supervisord.conf b/.m1k1o/tor-browser/supervisord.conf new file mode 100644 index 00000000..647075bc --- /dev/null +++ b/.m1k1o/tor-browser/supervisord.conf @@ -0,0 +1,24 @@ +[program:tor-browser] +environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s",DISPLAY="%(ENV_DISPLAY)s" +command=/opt/tor-browser_en-US/Browser/start-tor-browser --display=%(ENV_DISPLAY)s --setDefaultBrowser --window-size 1280,720 +autorestart=true +priority=800 +user=%(ENV_USER)s +stdout_logfile=/var/log/neko/tor-browser.log +stdout_logfile_maxbytes=100MB +stdout_logfile_backups=10 +redirect_stderr=true +stderr_logfile=/var/log/neko/tor-browser.err.log +stderr_logfile_maxbytes=100MB +stderr_logfile_backups=10 + +[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 diff --git a/README.md b/README.md index 4244834d..a389e29b 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,7 @@ Use following docker images: - `m1k1o/neko:latest` - for Firefox. - `m1k1o/neko:chromium` - for Chromium (needs `--cap-add=SYS_ADMIN`). - `m1k1o/neko:ungoogled-chromium` - for [Ungoogled Chromium](https://github.com/Eloston/ungoogled-chromium) (needs `--cap-add=SYS_ADMIN`) (by @whalehub). +- `m1k1o/neko:tor-browser` - for Tor Browser. - `m1k1o/neko:vncviewer` - for simple VNC viewer (specify `NEKO_VNC_URL` to your VNC target). - `m1k1o/neko:vlc` - for VLC Video player (needs volume mounted to `/media` with local video files, or setting `VLC_MEDIA=/media` path). - `m1k1o/neko:xfce` - for an shared desktop / installing shared software.