A few ebook reader apps are able to connect to an OPDS catalog and fetch books from there directly. Since I store all my calibre-managed ebooks on my owncloud share, it would be nice to automatically generate such a catalog. Frank de Lange has built a plugin for owncloud to do just that. You can find it in his github or here.
To install, download the files and unzip them into the owncloud/apps/ directory.
After that change the directory permissions:
sudo chmod -R 750 /var/www/owncloud/apps/files_opds/
You also have to app the option
„appcodechecker“ => false
to your config.php. You can then activate the extension in the apps menu.
Visit the administration page and check your settings (defaults should be fine). After that change to your personal settings. Edit the directory containing your ebooks. Make sure, you don’t add a backslash at the end of the path. This one took me some time to figure out.
Root directory: /documents/ebooks
Click the „Schedule rescan“ button. After that you can access your OPDS catalog using your owncloud login at the url
Chrome doesn’t know what to do with the data, but firefox displays the catalog nicely.