It contains the following parts:
Enabling Linux emulation in the freeBSD core
Installing TheBrig as jail manager
Creating a jail to run crashplan
Build all required SW inside the jail and install Crashplan
Setup the connection between the desktop ui app and the crashplan engine in N4F
Enabling Linux emulation:
Goto system/advance/loader.conf and add
Code: Select all
linprocfs_load=YES
linsysfs_load=YES
linux_load=YES ssh into n4f and run
Code: Select all
kldstatInstalling jail manager:
Create a zfs dataset so you can snapshot and rollback if you make mistakes.
I created
Code: Select all
/tank/jailsssh into n4f and run
Code: Select all
cd /tmp
fetch https://raw.githubusercontent.com/fsbruva/thebrig/alcatraz/thebrig_install.sh
/bin/sh thebrig_install.sh /tank/jails 3
Now load all tarballs.
Go to extensions/TheBrig/Maintenance/Tarbal_management and hit "query"
Select all 4 tarbals of the 10.2 release and hit "fetch"
Wait till the tarbals are downloaded
Now you have to create the jail that runs crashplan
Go to extensions/TheBrig/Jails and hit the "+" to create a new jail.
Set name to
Code: Select all
crashplanCode: Select all
192.168.0.85/24Hit "more" and select add
Code: Select all
allow.mount.procfs
allow.mount.nullfs
allow.mount.zfsHit "apply changes" and "start" to start the jail
If the starting of the jail fails you have to look in the /tmp folder for a file with the name crashplan.log to search for the error.
Install crashplan:
Use ssh to go into the jail
Code: Select all
jls
jexec 1 chsand run
Code: Select all
portsnap fetch extract
cd /usr/ports/emulators/linux_base-f10/ && make install clean
cd /usr/ports/sysutils/linux-f10-procps/ && make install clean
cd /usr/ports/editors/nano && make install clean
Exit the jail, stop the jail. Go to extensions/TheBrig/Jails and click the pencil after the "Crashplan" jail, hit "more" and add to the fstab
Code: Select all
linprocfs /tank/jails/crashplan/compat/linux/proc linprocfs rw 0 0Download from http://www.oracle.com/technetwork/java/ ... 80-oth-JPR the file
Code: Select all
jre-7u80-linux-i586.tar.gzCode: Select all
jre-7u80-linux-i586.tar.gzUpload the file into
Code: Select all
/tank/jails/crashplan/usr/ports/distfilesIf the jail does not start there is an error in either the new fstab entry (linprocfs) or building linprocfs failed.
Run
Code: Select all
cd /usr/ports/sysutils/linux-crashplan && make installUse nano to edit
Code: Select all
/usr/local/share/crashplan/conf/my.service.xmlThe ui token you need for the desktop application connection can be found here
Code: Select all
/compat/linux/var/lib/crashplan/.ui_info
Do
Code: Select all
nano /etc/rc.confCode: Select all
crashplan_enable=YESCode: Select all
/usr/local/share/crashplan/bin/CrashPlanEngine startStop crashplan with
Code: Select all
/usr/local/share/crashplan/bin/CrashPlanEngine stopStop the crashplan jail (this will take a couple of seconds, be patient) and edit the jail configuration and set as startupscript
Code: Select all
/usr/local/share/crashplan/bin/CrashPlanEngine startCode: Select all
/usr/local/share/crashplan/bin/CrashPlanEngine stopLink to folder to backup:
Now you have to add the folder you want crashplan to backup
Create folder /tank/jails/crashplan/tank/shared and add an fstab entry
Code: Select all
/tank/shared /tank/jails/crashplan/tank/shared nullfs ro 0Save, apply changes
Now you have the crashplan engine fully setup.
If you ever use the "house" icon in the desktop application to change system settings this will reset the servicehost to 127.0.0.1 and may break the connections between desktop and engine
Connect with desktop GUI:
Go to your desktop windows computer and install crashplan 4.5.2
Follow https://miketabor.com/install-crashplan-synology/ guide on how to connect your desktop crashplan gui to you freebsd crashplan engine or use the instructions below
You can find the gui token in
Code: Select all
/compat/linux/var/lib/crashplan/.ui_infoEdit the desktop crashplan UI.Properties files to point to the jails IP address (192.168.0.85 in this case)
Edit the desktop .ui_info to have the same GUI token and the IP address of the crashplan jail. Port number should be 4243 (at least same as in the crashplan engine .ui_info
Start the crashplan desktop and use top inside the jail to see if the java process start to use cpu time. if not the connection between desktop and engine is not established
After some 10 or more seconds the desktop app will request you to login.
The main purpose of this post is to have a record for myself on how I did enable crashplan. Hope it helps some other people.




