Skip to content

Quick-Guide

//Installing CrashPlan 3.2.1 release on beaglebone with a clean install of Ubuntu 12.04 LTS on ARM (OMAP3)
//
//All Packages needed for this install that did not come preloaded with 12.04
sudo apt-get install openjdk-6-jre-headless
sudo apt-get install openjdk-6-jdk
sudo apt-get install libjna-java
sudo apt-get install make
sudo apt-get install gcc
sudo apt-get install unzip
sudo apt-get install autofs

//Install CrashPlan with the following selections.
//
//Your selections:
//CrashPlan will install to: /opt/crashplan
//And put links to binaries in: /usr/local/bin
//And store datas in: /opt/crashplan/manifest
//Your init.d dir is: /etc/init.d
//Your current runlevel directory is: /etc/rc2.d
//
wget http://download.crashplan.com/installs/linux/install/CrashPlan/CrashPlan_3.2_Linux.tgz
tar xfzv CrashPlan_3.2_Linux.tgz
cd CrashPlan-install
sudo ./install.sh

//Note crashplan will claim to start but in reality it wont.
//We need to get versions of libmd5.so and libjtux.so that are compiled for arm before we can start crashplan sucessfully.
//Copy a precompiled libjtux.so file to crashplan folder
// Compile jtux
cd ~/
wget http://forum.excito.net/download/file.php?id=145 -O jtux.PS3-YDL6.1.patch.txt.gz
gunzip jtux.PS3-YDL6.1.patch.txt.gz
wget http://basepath.com/aup/jtux/jtux.tar.gz
tar xfzv jtux.tar.gz
cd jtux
patch < ~/jtux.PS3-YDL6.1.patch.txt
vi Makefile
//
replave path with following line
JAVA_INCLUDE=/usr/lib/jvm/java-6-openjdk-armhf/include/
//
make
sudo mv /opt/crashplan/libjtux.so /opt/crashplan/libjtux.so.bak
sudo cp ./libjtux.so /opt/crashplan/
sudo chmod 644 /opt/crashplan/libjtux.so

sudo vi /etc/profile
//make sure following lines are near end
LANG=en_US.utf8
LC_ALL=en_US.utf8
export LANG LC_ALL

//Compile libmd5.so
cd ~/
wget ftp://sourceware.org/pub/libffi/libffi-3.0.10.tar.gz
tar zxf libffi-3.0.10.tar.gz
cd libffi-3.0.10
CFLAGS="$CFLAGS -O3" ./configure –host=arm-none-linux-gnueabi –prefix=$DEST –disable-static
make clean && make
export FFI=`pwd`
cd ..
wget http://www.twmacinta.com/myjava/fast-md5-2.7.1.zip
unzip fast-md5-2.7.1.zip
cd fast-md5
gcc -O3 -shared -fPIC -I. -I/usr/lib/jvm/java-6-openjdk-armhf/include src/lib/arch/linux_x86/MD5.c -o libmd5.so
sudo mv /opt/crashplan/libmd5.so /opt/crashplan/libmd5.so.bak
sudo cp ./libmd5.so /opt/crashplan/
sudo chmod 644 /opt/crashplan/libmd5.so

//Configure system to watch a greater amount of files.
sudo vi /etc/sysctl.conf

// Add the following line towards the end of the file.
fs.inotify.max_user_watches=1048576

//Setup CrashPlan to start and run as a specific user. Not root.
sudo chown -R ubuntu:ubuntu /opt/crashplan/
sudo vi /etc/init.d/crashplan

//In order to do this, we have, to take all the instances where it says $SCRIPTNAME start, $SCRIPTNAME stop etc. (five of them) and modify them so that they say
su ubuntu -c "$SCRIPTNAME" (stop, restart etc., with replacing your-user-name with your username)

// Configure automount for USB attached storage
//Add the following line to /etc/auto.master
sudo vi /etc/auto.master
//add the following line to the file
/bkup /etc/auto.bkup

//create file /etc/auto.bkup and add the following:
/bkup /etc/auto.bkup

//Setup Timezone and NTP so crashplan has accurate logging times.
sudo vi /etc/cron.daily/ntpdate

//Places this in file
#!/bin/bash
ntpdate ntp.ubuntu.com

//Make it executible
sudo chmod 755 /etc/cron.daily/ntpdate

// Run the below line and select timezone
sudo dpkg-reconfigure tzdata

//Setup Samba to share files at home. (Home NAS)

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: