Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ##################################################################################################
- #
- # Installs Crashplan on Debian on ARM for users of hacked pogoplugs, dockstars, etc
- # by Erik Speckman http://geekfun.com
- #
- # Assumes you have used the instructions linked below to install and boot into Debian Linux.
- # Check the forums for updated scripts/advice.
- # http://jeff.doozan.com/debian/
- # http://forum.doozan.com/list.php?2
- #
- # Script is crude, with no error checking, and assumes that the required resources will be available
- # at the provided URLs.
- #
- # At the very least, you may want to make sure the crashplan download URL is for the
- # most recent version.
- #
- # To configure the engine after installation, see:
- # http://support.crashplan.com/doku.php/how_to/configure_a_headless_client
- #
- # This script basically assembles the work of many others into executable form.
- # Much thanks to the authors and contributors of the following resources:
- # https://crashplan.zendesk.com/entries/390250-crashplan-on-sheevaplug
- # http://www.pchilton.co.uk/2011/01/29/crashplan-online-backup-on-qnap-ts-210-nas/
- #
- # Copyright (c) 2011, 2012 by Erik Speckman
- # All rights reserved.
- #
- # Redistribution and use in source and binary forms, with or without modification, are
- # permitted provided that the following conditions are met:
- # * Redistributions of source code must retain the above copyright notice, this list
- # of conditions and the following disclaimer.
- # * Redistributions in binary form must reproduce the above copyright notice, this
- # list of conditions and the following disclaimer in the documentation and/or other
- # materials provided with the distribution.
- #
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
- # OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
- # GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- # POSSIBILITY OF SUCH DAMAGE.
- #
- ##################################################################################################
- aptitude install default-jdk build-essential cpio libjna-java
- cd /tmp
- wget http://geekfun.com/wp-content/uploads/2011/08/jtux.tar
- tar -zxf jtux.tar.gz
- cd jtux
- wget http://geekfun.com/wp-content/uploads/2011/08/jtux.PS3-YDL6.1.patch_.txt -O jtux.PS3-YDL6.1.patch
- patch <jtux.PS3-YDL6.1.patch
- patch <<-"PATCHDATA"
- --- Makefile 2011-08-23 23:20:28.837431247 -0700
- +++ Makefile 2011-08-23 23:21:12.637429481 -0700
- @@ -1,4 +1,4 @@
- -JAVA_INCLUDE = /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/include
- +JAVA_INCLUDE = /usr/lib/jvm/default-java/include/
- INCLUDE = -I. -Iinclude -I$(JAVA_INCLUDE) -I$(JAVA_INCLUDE)/linux
- CFLAGS = -Wall -D_REENTRANT -D_THREAD_SAFE -std=c99
- OBJECTS = jtux_clock.o jtux_dir.o jtux_file.o jtux_network.o \
- PATCHDATA
- make
- cd /tmp
- wget http://download.crashplan.com/installs/linux/install/CrashPlan/CrashPlan_3.0.3_Linux.tgz
- tar -zxf CrashPlan_3.0.3_Linux.tgz
- cd CrashPlan-install
- ./install.sh
- mv /tmp/jtux/libjtux.so /usr/local/crashplan/
- /etc/init.d/crashplan restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement