Calibre is a multi-platform eBook management software which supports multiple eBook reader and formats.
It also contains a simple eBook distribution server which can be accessed both via a web browser and an
OPDS compatible client.
In this article I will set-up the Calibre server to start at boot time and serve books.
Even though Ubuntu 10.4 has Calibre in its repositories, I prefer to download and install the latest version as Calibre updates quite often with both compatibility fixes and new functionality.
The following procedure can be completely done over command line, on a headless system.
To do this, enter the following in a terminal:
sudo apt-get install xdg-utils
sudo python -c "import urllib2; exec urllib2.urlopen('http://status.calibre-ebook.com/linux_installer').read(); main()"
And follow the on-screen instructions. In case something goes wrong, go
here and see if the instructions have changed.
There has been a report (by Emil in the comments) that the following are also needed in Ubuntu 10.10:
sudo apt-get install xdg-utils imagemagick python-imaging python-mechanize python-lxml python-dateutil python-cssutils python-beautifulsoup python-dnspython python-poppler libpodofo-utils libwmf-bin python-chm
After installing Calibre, it is time to set it up for boot start up.
Enter the following:
cd /etc/init.d
sudo pico calibre
In the editor which opens up, copy and paste the following script, making changes as needed (check the top 20-30 lines).
UPDATE: if you are sing Calibre 0.7.27+ you need the script from
here instead.