Advertisement
Guest User

Installing Crashplan into Centos on Freenas

a guest
Dec 6th, 2015
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. Installing Crashplan into Centos on Freenas
  2. New Jail
  3. Setup a virtual machine template jail
  4.  
  5. VNC
  6. Some clients require vnc to have a password (e.g, Fedora’s). In phpVB, display -> add password
  7. Then vnc to IP:9000
  8.  
  9. Install CentOS 7 minimal named ‘centos'
  10.  
  11. Enable vbox to auto start. This didn not seem to work last time I rebooted.
  12. In vbox jail, edit /etc/rc.conf and add
  13. vboxnet_enable="YES"
  14. vboxheadless_enable="YES"
  15. vboxheadless_machines="centos"
  16. vboxheadless_icinga_name="centos"
  17. vboxheadless_icinga_user="vbox"
  18. vboxheadless_icinga_stop="savestate"
  19. following: https://forums.freenas.org/index.php?threads/enabling-autostart-of-virtualbox-vms-on-freenas.26503/
  20.  
  21. Setup networking in centos
  22. sudo chkconfig NetworkManager on
  23. sudo chkconfig sshd on
  24. sudo service sshd start
  25. sudo service NetworkManager start
  26. sudo /etc/init.d/network restart
  27.  
  28. in the sshd_config file confirm
  29. X11Forwarding yes
  30.  
  31. Crashplan pre-reqs
  32. sudo yum install grep sed cpio gzip coreutils
  33.  
  34. the non-headless java might be required. I am not sure, as installing it did not fix anything for me. If ui_error.log has SWT errors that the below steps dont’ fix, this *might* fix it.
  35. sudo yum install java-1.8.0-openjdk
  36.  
  37. Install crashplan
  38. curl https://download2.code42.com/installs/linux/install/CrashPlan/CrashPlan_4.3.0_Linux.tgz -o CrashPlan_4.3.0_Linux.tgz
  39. tar -xzf CrashPlan_*_Linux.tgz
  40. cd CrashPlan_
  41. sudo ./install [use default]
  42.  
  43. Setup X11 and gtk
  44. sudo yum install xorg-x11-xauth xorg-x11-fonts-* xorg-x11-utils gtk2 Xvfb bzip2
  45.  
  46. Xvfb auto start:
  47. vim /etc/init.d/xvfb
  48. #!/bin/bash
  49. #chkconfig: 345 95 50
  50. #description: Starts xvfb on display 99
  51. if [ -z "$1" ]; then
  52. echo "`basename $0` {start|stop}"
  53. exit
  54. fi
  55.  
  56. case "$1" in
  57. start)
  58. /usr/bin/Xvfb :1 1280x1024x24 +extension RANDR &
  59. ;;
  60.  
  61. stop)
  62. killall Xvfb
  63. ;;
  64. esac
  65.  
  66. chmod +x xvfb
  67. chkconfig xvfb on
  68.  
  69. bvox guest tools reqs
  70. sudo yumkernel-devel gcc* epel-release cifs-utils
  71. download centos7 guest tools, need this version because of centos7 support.
  72. http://download.virtualbox.org/virtualbox/4.3.14/
  73.  
  74. Mount in vbox
  75. mkdir /media/cdrom
  76. sudo mount /dev/sr0 /media/cdrom
  77. cd /media/cdrom
  78. run installer
  79.  
  80. if it fails to build, install the yum pkg the guest tools suggests, eg. The kernel-devel above grabbed the wrong version for me.
  81. yum install kernel-devel-3.10.0-229.el7.x86_64
  82.  
  83. then share the folders via phpvbox ui, and access from within vbox
  84. Guest/host share requires ‘other' r-x on the dir otherwise it fails!!!
  85. In the vbox jail permissions are limited to other r-x so don’t have to add explicit permissions
  86.  
  87.  
  88. enable -X on ssh in, and start crashplan via
  89. CrashPlanDesktop
  90.  
  91. If it fails, UI errors from Crashplan here
  92. cat /usr/local/crashplan/log/ui_error.log
  93.  
  94.  
  95.  
  96. © 2015 GitHub, Inc. Terms Privacy Security Contact Help
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement