After a bit of googling I decided to go with Oracle’s Java 8 preview which supposed to be much faster than OpenJDK.
The following mainly based on Bion & Jon Rogers great posts.
I'm not a developer nor system admin so any suggestion is welcome.
I only tested it briefly and backed up about 100mb, but it seems very fast and stable.
Everything was compiled on the RPi against Oracle’s Java 8.
Install some dependencies
- Code: Select all
# pacman -S cpio nss nspr ca-certificates-java libffi
Create a temporary working folder
- Code: Select all
# mkdir /tmp/cpins
# cd /tmp/cpins
Install Java
Get & install java, use the latest from http://jdk8.java.net/fxarmpreview/
- Code: Select all
# wget http://www.java.net/download/JavaFXarm/jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz
# tar -xvf jdk-8-*.tar.gz
# mv jdk1.8.0/ /opt/jdk1.8.0/
Temporarily add the Java binaries location for path.
- Code: Select all
# export PATH=$PATH:/opt/jdk1.8.0/bin
The above won't be kept during reboots, but this doesn't matter for CrashPlan as the installation script store this path in Crashplan's configs.
If you want to permanently store Java location in your path read about Environment Variables on the ArchWiki.
A fix for the missing libffi.so.5
Option 1: Just link
- Code: Select all
# ln -s /usr/lib/libffi.so.6.0.0 /usr/lib/libffi.so.5
Option 2: Install precompiled libffi5 package
- Code: Select all
# wget http://dl.dropbox.com/u/6902100/archlinux/rpi-crashplan/arch_compiled/libffi5-3.0.10-1-armv6h.pkg.tar.xz
# pacman -U libffi5-*-armv6h.pkg.tar.xz
Option 3: Build & install libffi5 package
- Code: Select all
# wget https://aur.archlinux.org/packages/li/libffi5/libffi5.tar.gz
# tar -xzvf libffi5.tar.gz
# cd libffi5
# makepkg -A
# pacman -U libffi5-*-armv6h.pkg.tar.xz
# cd ..