HOW TO: add Calibre content server in a jail on your FreeNAS server
1. Add Jail manually using GUI
..... Jails Tab - Jails
..... .....- Add Jail
..... ..... - call it calibre_1
2. Add storage with GUI (optional?)
..... Jails Tab - Storage
..... - Add Storage
..... ..... - source (files already on disk)
..... ..... - destination (files mirrored in jail)
3. Install Packages in Jail
..... Open Shell from root
..... ..... - jls
..... ..... - jexec #jail_num# csh
or
..... Jails Tab - Jails
..... ..... calibre_1 - Shell
pkg install nano
pkg install calibre
nano -c usr/local/etc/rc.d/calibre
..... ..... - tells how to modify /etc/rc.conf
..... ..... - change user to root (line 38)
..... ..... - close using ctrl-shift-x
nano etc/rc.d
..... ..... - add to end of file
..... ..... - calibre_enable="YES"
..... ..... - calibre_user="root"
..... ..... - calibre_library="/mnt/books"
calibredb add /mnt/books/_toadd/* --library-path /mnt/books
4. Port Forwarding at Router
5. Create a cron job
..... Tasks - Cron Jobs
..... ..... - Add Cron Job (I think this is close)
..... ..... jexec 6 csh ;
..... ..... calibredb add /mnt/books/_toadd/* --library-path /mnt/books ;
..... ..... rm /mnt/books/_toadd/* ;
..... ..... exit
------------------------------------------------------------------------------------------------------
I apologize in advance, I am aware I misspoke at many points in the video, but I hope this helps someone out there.