Advertisement
Guest User

Crashplan on Raspberry Pi

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