Credits to http://www.bionoren.com/blog/2013/02/raspberry-pi-crashplan/ for this guide. I am replicating here for my own benefit, should the site above ever go offline.
Download the latest version of Java JDK 8 for ARM and transfer it to your Raspberry Pi.
Unpack it to /opt (the filename will probably change with each update) and check it is installed ok:
1 |
sudo tar zxvf jdk–8u6–linux–arm–vfp–hflt.gz –C /opt |
Add the path to the root user’s bash profile. IT needs to go at the beginning of the path so that it is picked up before any other pre-installed version of java – i.e. the one at /usr/local/java:
1 |
sudo vi /root/.bashrc |
Add the following line to the end of the file and save it:
1 |
export PATH=/opt/jdk1.8.0_06/bin:$PATH |
Now, if you switch to a root shell, JDK8 should be the version it picks up by default, compared to 1.7 for a normal user, i.e:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
matt@pi1 ~ $ sudo bash root@pi1:/home/matt# which java /opt/jdk1.8.0_06/bin/java root@pi1:/home/matt# java -version java version “1.8.0_06” Java(TM) SE Runtime Environment (build 1.8.0_06–b23) Java HotSpot(TM) Client VM (build 25.6–b23, mixed mode) root@pi1:/home/matt# exit exit matt@pi1 ~ $ which java /usr/bin/java matt@pi1 ~ $ java –version java version “1.7.0_40” Java(TM) SE Runtime Environment (build 1.7.0_40–b43) Java HotSpot(TM) Client VM (build 24.0–b56, mixed mode) |
Install Crashplan
Download crashplan for linux and copy it to your Pi.
Extract and install it:
1 2 |
tar –xvf CrashPlan_3.6.3_Linux.tgz ./CrashPlan–install/install.sh |
Copy some additional files to the crashplan dir:
1 2 3 4 5 6 |
wget http://www.jonrogers.co.uk/wp-content/uploads/2012/05/libjtux.so wget http://www.jonrogers.co.uk/wp-content/uploads/2012/05/libmd5.so cd /usr/local/crashplan sudo mv libjtux.so libjtux.so.orig sudo mv libmd5.so libmd5.so.orig sudo cp ~/downloads/CrashPlan–install/lib* . |
Install another required library:
1 |
sudo apt–get install libjna–java |
Next, edit the crashplan startup script
1 |
vi /usr/local/crashplan/bin/CrashPlanEngine |
and find the line that begins with FULL_CP= (its around the start case)
add /usr/share/java/jna.jar: to the begining of the string, i.e. so that it becomes:
1 |
FULL_CP=“/usr/share/java/jna.jar:$TARGETDIR/lib/com.backup42.desktop.jar:$TARGETDIR/lang” |
Reboot
1 |
sudo reboot |
After rebooting, crashplan should start automatically (the installer puts a startup script in /etc/rc2.d etcin order to do this) and running
1 |
/usr/local/crashplan/bin/CrashPlanEngine status |
should result in success.
Connect the GUI
The next step is to install the crashplan client on your workstation, set up an SSH tunnel from your workstation to the raspberry pi so that you can run the GUI on your local machine and have it connect to the backend service running on the Pi. Follow Crashplan’s Headless guide