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 Shareon TrueNAS. This is where your existingCalibre Libraryto 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 Librarythen you will need to initialise themetadata.dbfile in the jail. The easiest way to create this file is to install calibre on your computer. This will generate themetadata.dbfile which you could copy into thesame folderin 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 Libraryfolder from my Mac to theOpen Sharefolder (See step 2) on the TrueNAS via SMB share. It was important becauseCalibre Libraryfolder holds an important file namedmetadata.dbwhich is used by thecalibre-webplugin - Stop the
Calibre-webJail and Add the mount point of theCalibre Librarywhich you copied into theOpen Sharefolder (in Step 4.) - Start the Plugin
- If you click on
Managein the TrueNAS UI Plugins, you will getUnable to connectin the browser. - Open the shell of the `Jail` i.e.
iocage console calibre-web ps aux | grep calibrewill 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.share:
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
UInow - change admin password
- create a user
- click on the
Adminmenu item at the top - then click
Edit Basic Configurationand then expandExternal Binariesand paste/usr/local/bin/ebook-convertin thePath to Calibre E-Book Convertertextbox (this will enable book conversion i.e. from epub to mobi - you could enable
Uploadbooks to add more in the future from the sameBasic Configurationsection and thenFeature Configurationsection.
That's it. Enjoy!