diff options
author | Rob Austein <sra@hactrn.net> | 2019-09-15 22:14:36 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2019-09-15 22:14:36 +0000 |
commit | 27d1b74e6448f1a3a455e94b7f7dd307f86a0c48 (patch) | |
tree | c814cc0fa577967a3b7fef06762103a41423eec1 | |
parent | 52bd9bb98c5a43865e4bd7705636ce9e25148d13 (diff) |
Hack for JavaSE instead of OpenJDK
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Dockerfile | 15 | ||||
-rw-r--r-- | README.md | 14 | ||||
-rwxr-xr-x | startup.sh | 1 |
4 files changed, 17 insertions, 14 deletions
@@ -1 +1,2 @@ +jre-8u221-linux-x64.tar.gz waterfox-*.tar.bz2 @@ -6,7 +6,6 @@ RUN apt-get --yes update && apt-get --yes install --no-install-recommends \ bzip2 \ fonts-droid-fallback \ fonts-noto \ - icedtea-8-plugin \ libdbus-glib-1-2 \ libgtk-3-0 \ ratpoison \ @@ -15,14 +14,18 @@ RUN apt-get --yes update && apt-get --yes install --no-install-recommends \ x11-xserver-utils \ xterm -COPY startup.sh ratpoisonrc waterfox*.tar.bz2 / +COPY startup.sh ratpoisonrc waterfox*.tar.bz2 jre-*.tar.gz / RUN set -x; \ tar -C /usr/local -xf /waterfox*.tar.bz2 && \ - rm -f /waterfox*.tar.bz2 && \ - ln -s /usr/local/waterfox/waterfox /usr/local/bin - -COPY menu /root/.icewm/ + rm -f /waterfox*.tar.bz2 && \ + ln -s /usr/local/waterfox/waterfox /usr/local/bin && \ + mkdir -p /usr/local/java && \ + tar -C /usr/local/java -xf /jre-*.tar.gz && \ + echo >>/etc/profile JRE_HOME=`echo /usr/local/java/jre*` && \ + echo >>/etc/profile 'PATH="$PATH:$JRE_HOME/bin"' && \ + update-alternatives --install /usr/bin/java java /usr/local/java/jre*/bin/java 1 && \ + update-alternatives --set java /usr/bin/java java /usr/local/java/jre*/bin/java CMD ["/startup.sh"] @@ -16,12 +16,12 @@ Something along the lines of the `run.sh` formulation might work well as the command portion of a tunneling `ssh -L 5900:127.0.0.1:5900` command. This version is based on Ubuntu rather than Debian, because I was -trying to get the icedtea-web Java Plugin stuff to work. Still fails, -too many things know that no browser supports this crap anymore. +trying to get the icedtea-web Java Plugin stuff to work. Didn't work, +but then I tried a recipe for getting Java SE instead of OpenJDK, and +that does seem to work. Might work equally well on Debian. -In theory, we might be able to get somewhere by building icedtea -ourselves, or using an old packaged version. See: - -* <https://github.com/AdoptOpenJDK/icedtea-web> -* <https://packages.debian.org/source/stretch/icedtea-web> +Sadly, this approach requires one to download JRE directly from +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) @@ -6,7 +6,6 @@ mkdir -p $HOME/.vnc echo '' | vncpasswd -f >$HOME/.vnc/passwd chmod -R go= $HOME/.vnc -# -localhost vncserver $DISPLAY -geometry 1280x768 -depth 16 -nolisten tcp ratpoison -f /ratpoisonrc vncserver -kill $DISPLAY |