In my grand scheme of “abuse all the low-power computing things!”, I’ve moved my crashplan backups over to the Raspberry Pi 2 (rpi2 for short). Installation is relatively painless: download the installer from the crashplan site, and unpack and execute. I installed mine under /opt/crashplan.
Afterwards, there are some things to fix, though, as by default Crashplan is only supported on the Intel architecture:
Install a working JRE (& dependencies for the GUI app should you want to launch it through X forwarding):
apt-get install oracle-java8-jdk libswt-gtk-3-jni libswt-cairo-gtk-3-jni
rm /opt/crashplan/jre; ln -s /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/ /opt/crashplan/jre
rm /opt/crashplan/lib/swt.jar; ln -s /usr/share/java/swt.jar /opt/crashplan/lib/swt.jar
Replace some libraries by their recompiled variants – you can compile them yourself (thanks to Jon Rogers for the instructions) or download them straight from his site if you’re lazy.
wget http://www.jonrogers.co.uk/wp-content/uploads/2012/05/libmd5.so -O /opt/crashplan/libmd5.so
wget http://www.jonrogers.co.uk/wp-content/uploads/2012/05/libjtux.so -O /opt/crashplan/libjtux.so
Add a library to the CrashplanEngine startup classpath:
sed -i 's|FULL_CP="|FULL_CP="/usr/share/java/jna.jar:|' /opt/crashplan/bin/CrashPlanEngine
And now you should be able to start your engine(s)!
And the desktop app (which you can forward to your local Linux pc via ssh -X [email protected])
this does take forever to start. But it works. Or you can use these instructions (from Crashplan Support) to administer it remotely.
Since I recently moved, and now have my Tomato based WRT54GL on 24/7, I also wanted a way to keep a backup of those nice statistics the router generates. You have the option (built-in) to write them to nvram or to a CIFS share, but the former has a limited amount of writes, and the latter is not really stable (and I don’t have anything powered on all the time to keep the backups on).
I found some nice scripts on gulbsoft.de that showed how to make backups on an ftp/website combination, but I wanted to move this to an internet-host (since that thing IS up 24/7 in contrast to my inhouse infrastructure) and I didn’t really like them, I ‘redesigned’ them.
Lo and behold!
The only thing you need to do is put this in your WAN-up script:
FILES="rstats-history.gz rstats-speed.gz rstats-stime rstats-source"
cat > $FTPSCRIPT << EOF
for FILE in $FILES; do
ftpput -u $USER -p $PW $FTP \$FILE $STATSDIR/\$FILE
chmod a+x $FTPSCRIPT
cru d bkstat
cru a bkstat "2,15,30,45 * * * * $FTPSCRIPT"
for FILE in $FILES; do
Don’t forget to change the lines reading URL, FTP, USER and PW to your respective website address, ftp server name, ftp login name and ftp password!
Yesterday I had some good old fun trying to replace the backup battery of an Acer Travelmate 803 laptop.
I thought that since this is a part that should be replaceable by the user, it should be reachable (like the memory, harddisk, you know). Guess again !
After flipping through the service manual (which I had luckily found), it seemed that there were no disassembly instructions for this battery. Looking on the blueprints of the motherboard, it showed the battery as being on the underside of the motherboard – ergo, requiring full disassembly of the laptop… wtf?!?
I’m damn glad that I had the manual, because otherwise I think getting this thing apart is not quite so easy.
Here are some after-disassembly-pics:
And here, the battery…
which ofcourse had to be of another type than the five we have in the house, so now I have to wait with the reassembly until tomorrow after I get the friggin’ battery! -damnit! Couldn’t they stick to the standard CR2032!?