-
Step 1 - Name Jail and Choose FreeBSD Release
- Name: calibre-jail
- Jail Type: Default(Clone Jail)
- Release: 11.3-RELEASE
-
Step 2 - Configure Networking
- DHCP Autoconfigure IPv4 (check)
- VNET (check)
-
Step 3 - Confirm Options
- Start the jail and go to the shell.
- Make sure you have installed the package manager:
pkg update
- Install git, pip, python and sqlite3:
pkg install git && pkg install py37-pip && pkg install python && pkg install sqlite3 && pkg install py37-sqlite3
- Clone the calibre-web repository
cd /
git clone https://github.com/janeczku/calibre-web.git
- Follow the "Quick start":
cd calibre-web/
pip install --target vendor -r requirements.txt
- Execute:
python cps.py
Open your web browser and go to http://[jail-ip-address]:8083, if everything goes fine you will see:
-
Stop de Jail and add the mountpoint of your library (do not forget to check the Auto-start box in the edit section)
-
Start the Jail, go to the jail's shell and create an startup script:
touch /calibre-web/cw-startup.sh
echo '#\!/bin/sh' >> /calibre-web/cw-startup.sh
echo 'nohup python /calibre-web/cps.py &' >> /calibre-web/cw-startup.sh
chmod +x /calibre-web/cw-startup.sh
- Add the script to the crontab
echo '@reboot root /calibre-web/cw-startup.sh' >> /etc/crontab
- Restart the jail and go to http://[jail-ip-address]:8083
Yup. I can update too.. but for that have to enable "Enable Uploads" from admin Configuration.