Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Installing Crashplan into Centos on Freenas
- New Jail
- Setup a virtual machine template jail
- VNC
- Some clients require vnc to have a password (e.g, Fedora’s). In phpVB, display -> add password
- Then vnc to IP:9000
- Install CentOS 7 minimal named ‘centos'
- Enable vbox to auto start. This didn not seem to work last time I rebooted.
- In vbox jail, edit /etc/rc.conf and add
- vboxnet_enable="YES"
- vboxheadless_enable="YES"
- vboxheadless_machines="centos"
- vboxheadless_icinga_name="centos"
- vboxheadless_icinga_user="vbox"
- vboxheadless_icinga_stop="savestate"
- following: https://forums.freenas.org/index.php?threads/enabling-autostart-of-virtualbox-vms-on-freenas.26503/
- Setup networking in centos
- sudo chkconfig NetworkManager on
- sudo chkconfig sshd on
- sudo service sshd start
- sudo service NetworkManager start
- sudo /etc/init.d/network restart
- in the sshd_config file confirm
- X11Forwarding yes
- Crashplan pre-reqs
- sudo yum install grep sed cpio gzip coreutils
- 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.
- sudo yum install java-1.8.0-openjdk
- Install crashplan
- curl https://download2.code42.com/installs/linux/install/CrashPlan/CrashPlan_4.3.0_Linux.tgz -o CrashPlan_4.3.0_Linux.tgz
- tar -xzf CrashPlan_*_Linux.tgz
- cd CrashPlan_
- sudo ./install [use default]
- Setup X11 and gtk
- sudo yum install xorg-x11-xauth xorg-x11-fonts-* xorg-x11-utils gtk2 Xvfb bzip2
- Xvfb auto start:
- vim /etc/init.d/xvfb
- #!/bin/bash
- #chkconfig: 345 95 50
- #description: Starts xvfb on display 99
- if [ -z "$1" ]; then
- echo "`basename $0` {start|stop}"
- exit
- fi
- case "$1" in
- start)
- /usr/bin/Xvfb :1 1280x1024x24 +extension RANDR &
- ;;
- stop)
- killall Xvfb
- ;;
- esac
- chmod +x xvfb
- chkconfig xvfb on
- bvox guest tools reqs
- sudo yumkernel-devel gcc* epel-release cifs-utils
- download centos7 guest tools, need this version because of centos7 support.
- http://download.virtualbox.org/virtualbox/4.3.14/
- Mount in vbox
- mkdir /media/cdrom
- sudo mount /dev/sr0 /media/cdrom
- cd /media/cdrom
- run installer
- if it fails to build, install the yum pkg the guest tools suggests, eg. The kernel-devel above grabbed the wrong version for me.
- yum install kernel-devel-3.10.0-229.el7.x86_64
- then share the folders via phpvbox ui, and access from within vbox
- Guest/host share requires ‘other' r-x on the dir otherwise it fails!!!
- In the vbox jail permissions are limited to other r-x so don’t have to add explicit permissions
- enable -X on ssh in, and start crashplan via
- CrashPlanDesktop
- If it fails, UI errors from Crashplan here
- cat /usr/local/crashplan/log/ui_error.log
- © 2015 GitHub, Inc. Terms Privacy Security Contact Help
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement