Calibre Raspberry Pi





Published May 25, 2020

Calibre: The one stop solution for all your e-book needs. Comprehensive e-book software. Don't use Calibre on your Pi! It's a resource hog and has poor performance, especially searching. Instead use Calibre on your primary computer and host your Calibre library on the Pi (accessible via Samba or whatever), and then use COPS to access the ebook library in the Pi. COPS is lightweight, uses Apache, very fast, search capable, and won't bog down your Pi.


If you don’t want to use Kindle and Amazon for all your ebook needs, you can use a Raspberry PI to host your very own ebook server on the local network. This setup is specific to a RPI4 running a headless Arch Linux ARM, but should be similar to other distros using systemd as well.

Calibre raspberry pi 3

First of all, install calibre:

Next, make sure you have a calibre library on your RPI, either on an attached USB harddisk or on the SD card itself. I used rsync to copy over my existing library to the RPI. The great advantage of this is that rsync will only copy over what has changed since the last copy operation. It can also maintain all the modification dates, permissions and so on, which is handy for sorting your library on your various devices. Rsync needs to be installed separately, and it must be installed on BOTH the computers being synced. Run this on your source computer as well as on the RPI:

Next, copy the library from the source computer to the RPI, replacing user@rpi-hostname with the appropriate hostname and desired path:

On the RPI you will then have to create a systemd service:

Calibre Raspberry Pi

The contents of the file is this:

Calibre Raspberry Pi

Enable and run on the RPI.

Server

Raspberry Pi 3 Nas Server

And that should be it! You can now go to your ebook-reader of choice and browse your books. They will be served on the ip address of your RPI on port 8080 by default, so on my network it looks like this: 192.168.1.125:8080. You can even point your browser to the address and get a nicely laid out catalogue of your ebooks.