fahadshery
Contributor
- Joined
- Sep 29, 2017
- Messages
- 179
All,
I have been trying to install the community plugin of
That's it. Enjoy!
I have been trying to install the community plugin of
calibre-web
but its not working as expected. Here are the steps I took to resolve the issues.- Goto to community plugins, install
calibre-web
- Create an
Open Share
on TrueNAS. This is where your existingCalibre Library
to be copied to. (I used open share to avoid any permission issues and I don't mind anyone in the household reading the books anyway coz no knowledge is forbidden knowledge ;-) ). Note: If you don't have an existingCalibre Library
then you will need to initialise themetadata.db
file in the jail. The easiest way to create this file is to install calibre on your computer. This will generate themetadata.db
file which you could copy into thesame folder
in the Jail where your books will live. (In my case it was the folder namedCalibre Library
) - I already had the calibre installed on my Mac. The location of the Calibre Library on Mac was:
/Users/YOUR_USER_NAME/Calibre Library
- I copied the entire
Calibre Library
folder from my Mac to theOpen Share
folder (See step 2) on the TrueNAS via SMB share. It was important becauseCalibre Library
folder holds an important file namedmetadata.db
which is used by thecalibre-web
plugin - Stop the
Calibre-web
Jail and Add the mount point of theCalibre Library
which you copied into theOpen Share
folder (in Step 4.) - Start the Plugin
- If you click on
Manage
in the TrueNAS UI Plugins, you will getUnable to connect
in the browser. - Open the shell of the `Jail` i.e.
iocage console calibre-web
ps aux | grep calibre
will show that the process is running already.- I had to manually start by
nohup python3 /usr/local/app/calibre-web/cps.py &
- then created a script which will automatically do it upon reboot. at
/usr/local/app/calibre-web/cw-startup.sh
(Location of the script doesn't matter though). the contents of thecw-startup.sh
are:
Code:#!/bin/sh nohup python3 /usr/local/app/calibre-web/cps.py &
chmod +x cw-startup.sh
- Setup the crontab: echo '@Reboot root /usr/local/app/calibre-web/cw-startup.sh' >> /etc/crontab
- restart the plugin and see if you get the
UI
now - change admin password
- create a user
- click on the
Admin
menu item at the top - then click
Edit Basic Configuration
and then expandExternal Binaries
and paste/usr/local/bin/ebook-convert
in thePath to Calibre E-Book Converter
textbox (this will enable book conversion i.e. from epub to mobi - you could enable
Upload
books to add more in the future from the sameBasic Configuration
section and thenFeature Configuration
section.
That's it. Enjoy!