diff options
author | Rob Austein <sra@hactrn.net> | 2019-09-16 00:50:49 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2019-09-16 00:50:49 +0000 |
commit | d0eb10aebbe3a31f4cc67b3dc368233d528e0377 (patch) | |
tree | 5efe5438e1873569097bbae0fc77d3f304cfcc64 | |
parent | 56d82f8631bdd94739e7f39eac15a52b2d833c57 (diff) |
Working, ish
-rw-r--r-- | Dockerfile | 16 | ||||
-rw-r--r-- | README.md | 22 | ||||
-rw-r--r-- | icewm.menu (renamed from menu) | 0 | ||||
-rwxr-xr-x | startup.sh | 5 |
4 files changed, 36 insertions, 7 deletions
@@ -6,6 +6,7 @@ RUN apt-get --yes update && apt-get --yes install --no-install-recommends \ bzip2 \ fonts-droid-fallback \ fonts-noto \ + icewm \ libasound2 \ libdbus-glib-1-2 \ libgtk-3-0 \ @@ -15,14 +16,16 @@ RUN apt-get --yes update && apt-get --yes install --no-install-recommends \ x11-xserver-utils \ xterm -COPY startup.sh ratpoisonrc waterfox*.tar.bz2 jre-*.tar.gz / +COPY startup.sh waterfox*.tar.bz2 jre-*.tar.gz /root/ +COPY icewm.menu /root/.icewm/menu +COPY ratpoisonrc /root/.ratpoisonrc RUN set -x; \ mkdir -p /usr/local/java && \ - tar -C /usr/local -xf /waterfox*.tar.bz2 && \ - rm -f /waterfox*.tar.bz2 && \ - tar -C /usr/local/java -xf /jre-*.tar.gz && \ - rm -f /jre-*.tar.gz && \ + tar -C /usr/local -xf /root/waterfox*.tar.bz2 && \ + rm -f /root/waterfox*.tar.bz2 && \ + tar -C /usr/local/java -xf /root/jre-*.tar.gz && \ + rm -f /root/jre-*.tar.gz && \ echo >>/etc/profile export JRE_HOME=`echo /usr/local/java/jre*` && \ echo >>/etc/profile export 'PATH="$PATH:$JRE_HOME/bin"' && \ update-alternatives --install /usr/bin/java java /usr/local/java/jre*/bin/java 1 && \ @@ -31,6 +34,7 @@ RUN set -x; \ update-alternatives --set javaws /usr/local/java/jre*/bin/javaws && \ ln -s /usr/local/waterfox/waterfox /usr/local/bin -CMD ["/startup.sh"] +CMD ["/root/startup.sh"] +WORKDIR /root EXPOSE 5900 @@ -25,3 +25,25 @@ Oracle, get an account, and check through a license agreement, so I can't just give it away, you'll have to download the JRE yourself. [Kate's reference on installing Java](https://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux) + +Even with this, Java still whines a lot when dealing with the kind of +crappy old IPMI consoles that require this insanity in the first +place. Among other things, Java whines that the crappy Java app +supplied by IPMI isn't signed properly (true), and therefore refuses +to run it (why were we doing this again?). Once one gets past that, +one has to argue with Waterfox a bit to get it to believe that you +want to use `javaws` as the launcher for `jnlp` files. + +You can bypass the Java whining by prepopulating +`/root/.java/deployment/security/exception.sites` with a URL +whitelist. The format appears to be one URL per line, no comments or +other formatting. Example: + +``` +https://ipmi.foo.example.org +https://ipmi.bar.example.org +``` + +There's probably some way to preset Waterfox's MIME handler for `jnlp` +files to run `/usr/bin/javaws` but after working out all of the above +I lack the patience to dig further today. @@ -7,5 +7,8 @@ echo '' | vncpasswd -f >$HOME/.vnc/passwd chmod -R go= $HOME/.vnc vncserver $DISPLAY -geometry 1280x768 -depth 16 -nolisten tcp -ratpoison -f /ratpoisonrc + +#ratpoison +icewm + vncserver -kill $DISPLAY |