Oiler Works
  • Home
    • My resume
    • Free premium
    • Privacy Policy
  • Science & MBA
  • Blog
    • Gaveta de remédios
    • Canadá
    • Computing
    • Presentes

Calibre COPS on Openwrt

4/8/2020

0 Comments

 
"In my opinion Calibre is a marvelous tool but is too big and has too much dependencies to be used for its content server. That's the main reason why I coded this OPDS server. I needed a simple tool to be installed on a small server (Seagate Dockstar in my case).
I initially thought of Calibre2OPDS but as it generate static file no search was possible.
Later I added an simple HTML catalog that should be usable on my Kobo.
So COPS's main advantages are :
  • No need for many dependencies.
  • No need for a lot of CPU or RAM.
  • Not much code.
  • Search is available.
  • It was fun to code."  From: Cops Source
opkg install php7 php7-cgi php7-cli 
opkg install 
php7-mod-dom php7-mod-gd php7-mod-json php7-mod-pdo php7-mod-pdo-sqlite php7-mod-sqlite3 php7-mod-xml php7-mod-xmlreader php7-mod-xmlwriter php7-mod-zip php7-mod-mbstring php7-mod-openssl php7-mod-phar  php7-mod-intl  php7-mod-ctype​
opkg install git-http unzip
opkg install zoneinfo-core zoneinfo-southamerica zoneinfo-northamerica

ln -sf /usr/share/zoneinfo/Brazil/East /etc/localtime

cd /
git clone https://github.com/seblucas/cops.git
mv cops www2
cd www2

# Composer download as stated on https://getcomposer.org/download/
php-cli -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php-cli composer-setup.php
php-cli -r "unlink('composer-setup.php');"

# Composer installation as stated by seblucas
php-cli composer.phar global require "fxp/composer-asset-plugin:~1.1"
php-cli composer.phar install --no-dev --optimize-autoloader

# It'll be needed to set uhttp specially index_page index_file interpreter
# It'll be needed to set config_local.php and config_default.php

0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Arquivos

    August 2020
    August 2019
    November 2018
    October 2018
    August 2017
    March 2017
    April 2016
    March 2016
    November 2013
    March 2013
    February 2013
    November 2012
    October 2012

    Categorias

    All
    Bugs
    Linux
    Openwrt
    Windows 8

    RSS Feed

Powered by Create your own unique website with customizable templates.
  • Home
    • My resume
    • Free premium
    • Privacy Policy
  • Science & MBA
  • Blog
    • Gaveta de remédios
    • Canadá
    • Computing
    • Presentes