So I’ve set up my RaspberryPi to actually do something other than sit there: I’ve turned it into an eBook server using Calibre. I’ll admit it’s similar to the Library Box in concept but works a bit differently from the user’s perspective. (Mainly, the user needs to be on the same network as this server instead of connecting to a specific WiFi signal.)
How to set it up:
- I’m assuming you’re using Rasperian.
- Install Calibre via
sudo apt-get install calibre. (This installs an older version of Calibre but it’s the only one I can find to work on the Pi.)
- Instead of running the Calibre GUI and manually starting the Calibre server, you can run the Caliber server from the command line instead. This allows the server to run in the background, using a lot fewer system resources and since it’s done at the command line, you can set it up to run at boot. To do this:
$ cd /home/pi
$ cd .config
- If you don’t already have an autostart folder here create it:
$ mkdir autostart
$ cd autostart
- Create the autostart file:
$ nano calibre-server.desktop
- Enter the following into the blank file:
Exec=calibre-server --with-library "Calibre Library"
“Calibre Library” in line four above is the name of the directory containing your Calibre content. Change as needed. The quotes are not necessary if your directory name does not include spaces.
- CTRL-X | Y to save the file.
To access the Calibre content go to http://piIPaddress:8080 . (On my network I’d go to http://192.168.1.108:8080/.
It’ll look something like this:
2 Replies to “RaspberryPi: Creating an eBook server”
The calibre server is one role that works nicely. Another would be to compile Kiwix for the RPi on Raspbian which would then allow you to serve up mirrors of Wikipedia content. I’ve got that set up on mine for some selected articles that I downloaded as ZIM files using the Book Creator function. Ready-made ZIM files for a variety of languages are available for download too. Apparently you can find out more here where they also talk about a very, very new effort to build a purpose-built hotspot for serving up Wikipedia mirrors: http://www.kiwix.org/wiki/Kiwix-serve/en
Kiwix provides pre-compiled version of kiwix-serve (ZIM HTTP server) for ARM (like the RaspberryPi):
Beside Wikipedia ZIM files, the project has also started to release other files. For example a ZIM file with 2600 e-books of the French literrature (EPUB+PDF format):
* http://library.kiwix.org/bouquineux/ (demo with kiwix-serve)
Wikimedia France with the project Afripedia already proposes hotspots (based on plug-computers) delivering this (we call the solution “kiwix-plug”):
We would love to port kiwix-plug to RaspberryPi…. this should be so complicated, kiwix-serve works well on raspberry Pi: