Friday, February 13, 2015

How to Install COPS for E-Catalog on OpenWRT

What is COPS?
Please visit this website http://blog.slucas.fr/en/oss/calibre-opds-php-server
Briefly COPS much like a library or book catalog application
Just go ahead into the method installations:


Step 1:
opkg update
opkg install php5-mod-mod-dom php5-gd php5-json-mod-mod-php5 php5-pdo-sqlite mod-php5-pdo-sqlite mod-mod-php5 php5-sqlite3-xml mod-mod-php5 php5 XmlReader -mod-XmlWriter-mod-php5 zip

Step 2:
edit or uncomment php.ini in this part
; Dynamic Extensions
extension = dom.so
extension = pdo.so
extension = pdo_sqlite.so
extension = sqlite.so
extension = sqlite3.so
extension = xml.so
extension = xmlreader.so
extension = xmlwriter.so

Step 3:
create a web folder for storing data
mkdir /www/cops

Step 4:
create folders for storing books
mkdir /mnt/sdb6/books/

Step 5:
Download files
https://docs.google.com/file/d/0B8uKhOOykTAteWNKYTF6SFd4emc/edit?pli=1
Extract the contents to a folder /www/cops

Step 6:
Edit /www/cops/configlocal.php in the directory:
$ config ['calibre_directory'] = '/mnt/sdb6/books/';

Step 7:
Fix symlink from /www/cops/books
by using a putty application and point the link to /mnt/sdb6/books/
Step 8:
Copy - the contents of Calibre Library folder from the computer to the folder / mnt / usb / books
Make sure metadata.db also copied everything

Step 9:
uci set uhttpd.main.index_page = index.php
uci commit
/etc/init.d/uhttpd restart

Step 10:
Open a browser and navigate to http://192.168.1.1/cops

Step 11:
In order to be integrated with Aldiko and such, just edit the catalog and point it to the URL
http://192.168.1.1/cops/feed.php
As a result of your books neatly arranged and can search by Aldiko.


Source : https://www.facebook.com/notes/openwrt-indonesia/tutorial-install-cops/840685975972428

No comments:

Post a Comment

Berkomentarlah dengan kata-kata yang sopan,,
Jika menurut Sahabat Blogger Artikel ini bermanfaat silahkan di COPAST (Copy Paste) tanpa mencantumkan sumber..
#Kalau ingin dicantumkan, Alhamdulillah.. :) ^_^

Ilmu itu milik ALLAH, Siapapun berhak mempelajarinya.. :)

Terimakasih Telah Berkunjung.. :)