소스 검색

Hack for JavaSE instead of OpenJDK

Rob Austein 5 년 전
부모
커밋
27d1b74e64
4개의 변경된 파일17개의 추가작업 그리고 14개의 파일을 삭제
  1. 1 0
      .gitignore
  2. 9 6
      Dockerfile
  3. 7 7
      README.md
  4. 0 1
      startup.sh

+ 1 - 0
.gitignore

@@ -1 +1,2 @@
+jre-8u221-linux-x64.tar.gz
 waterfox-*.tar.bz2

+ 9 - 6
Dockerfile

@@ -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"]
 

+ 7 - 7
README.md

@@ -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)

+ 0 - 1
startup.sh

@@ -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