05-26-2017, 05:29 PM | #1576 |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2017
Device: Kindle paperwhite 3
|
Well that's good! With basic auth working it should be fairly simple to setup the per user configs!
Also know that with the alternate filematch in you config_local.php file you need to set the secure fetch.php option. I'm posting from my phone at the moment, so I can't send you the exact option, and you shouldn't worry about it until everything else is working. But that filematch option opens fetch.php to being insecure and you can access it to potentially download files et centers without authentication Last edited by Calibius; 05-26-2017 at 05:33 PM. |
05-26-2017, 05:45 PM | #1577 | |
Addict
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
Quote:
Next step was to add the send email option. Here is the entry I made in config_local.cfg: Code:
$config['cops_mail_configuration'] = array( "smtp.host" => "smtp.gmail.com", "smtp.username" => "myacct@gmail.com", "smtp.password" => "mygmailpassword", "smtp.secure" => "ssl", "address.from" => "myhotmailacct"); |
|
05-26-2017, 05:57 PM | #1578 |
Guru
Posts: 718
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@MontyJ
My e-mail entry looks like: Code:
$config['cops_mail_configuration'] = array( "smtp.host" => "smtp.gmail.com", "smtp.username" => "myacct@gmail.com", "smtp.password" => "mypasswd", "smtp.secure" => "ssl", "address.from" => "myacct@gmail.com", "subject" => "Sent by COPS : " ); |
05-26-2017, 06:03 PM | #1579 | |
Guru
Posts: 718
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Quote:
Or are you referring to: Code:
/* * If you use a Sony eReader or Aldiko you can't download ebooks if your catalog * is password protected. A simple workaround is to leave fetch.php not protected (see .htaccess). * But In that case your COPS installation is not completely safe. * Setting this parameter to "1" ensure that nobody can access fetch.php before accessing * index.php or feed.php first. * BEWARE : Do not touch this if you're not using password, not using PRS-TX or not using Aldiko. */ $config ['cops_fetch_protect'] = '0'; Last edited by mariosipad; 05-26-2017 at 06:07 PM. |
|
05-26-2017, 06:27 PM | #1580 |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2017
Device: Kindle paperwhite 3
|
Of course, I believe you're correct. I don't know where I pulled that from. Haha. I got confused. I really thought I read something about that but I guess I'm crazy.
Edit: I actually did find that in .htaccess in a comment before the filesmatch block at the bottom. I knew I wasn't completely crazy. Monty only needs it if he uses the modified filematch, which he said he requires for it to work for him. Thus, you wouldn't need to worry about the config setting. Last edited by Calibius; 05-26-2017 at 06:37 PM. |
05-26-2017, 06:33 PM | #1581 | |
Addict
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
Quote:
|
|
05-26-2017, 06:35 PM | #1582 | |
Guru
Posts: 718
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Quote:
However, if you use <FilesMatch "(index|feed)\.php"> in .htaccess that would mean that fetch.php is not password protected. Not good. |
|
05-26-2017, 06:37 PM | #1583 | |
Addict
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
|
Quote:
I should have added I turned on Pagekite and this all working through the web as well, not just locally! By the way, the email thing is working; I just had a book sent to my Kindle Paperwhite. It does show up as a "Doc" format. No clue why that is but it opens like a normal .mobi file, so no complaints so far! Last edited by MontyJ; 05-26-2017 at 06:42 PM. Reason: update |
|
05-26-2017, 06:39 PM | #1584 |
Junior Member
Posts: 7
Karma: 10
Join Date: May 2017
Device: Kindle paperwhite 3
|
Haha. That's what I thought I had said! Maybe I just didn't clarify what I meant very well.
|
05-26-2017, 06:39 PM | #1585 |
Guru
Posts: 718
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
Maybe not now, maybe later if everything works. ;-)
|
06-06-2017, 10:56 AM | #1586 |
Guru
Posts: 718
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
To prepare for the upcoming launch of Debian Stretch and to see if COPS still works with the new Debian version I decided to try to install COPS from the github source (git clone) on a fresh install of stretch.
What i did (add sudo or su where needed. to test I just use root ): Code:
apt-get install apache2 php7.0 git apt-get install php7.0-gd php7.0-sqlite3 php7.0-json php7.0-intl systemctl restart apache2 cd /var/www/html git clone https://github.com/seblucas/cops cd cops wget https://getcomposer.org/composer.phar php composer.phar global require "fxp/composer-asset-plugin:~1.1" php composer.phar install --no-dev --optimize-autoloader Code:
Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested PHP extension ext-xml * is missing from your system. Install or enable PHP's xml extension. Problem 2 - The requested PHP extension ext-mbstring * is missing from your system. Install or enable PHP's mbstring extension. Problem 3 - Installation request for seblucas/php-epub-meta 1.0.0 -> satisfiable by seblucas/php-epub-meta[1.0.0]. - seblucas/php-epub-meta 1.0.0 requires ext-xml * -> the requested PHP extension xml is missing from your system. Code:
apt-get install php7.0-xml php7.0-mbstring php7.0-zip I just thought I document it here for future reference. |
06-16-2017, 05:19 PM | #1587 |
Member
Posts: 14
Karma: 10
Join Date: Aug 2016
Device: Kobo Touch
|
Does Calibre 3.0 introduce any changes to the database format it uses that might break compatibility with COPS?
|
06-16-2017, 10:52 PM | #1588 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
THere are no changes to the database format.
|
06-22-2017, 12:54 PM | #1589 |
Member
Posts: 13
Karma: 10
Join Date: Oct 2003
Device: Palm Tungsten T
|
Monocle reader trigger
way back in 1.0.0RC1 - 20140404 Monocle was added:
"Added an embedded Epub Reader based on Monocle. Thanks to all the beta testers." my question is: the vast majority of my books (and they all all in both epub and mobi format) do not show the reader icon. Some do, but I cannot figure out what the difference is. Undoubtedly some formatting difference (almost all were converted in Calibre over the years). What triggers the embedded reader icon? |
06-22-2017, 01:41 PM | #1590 |
Guru
Posts: 718
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
|
@dscottf
I just tested on my ebooks if it still works, and it does (with everyone of the epub files I tried = 10+). It works only with epub files (It's an epub reader after all). Can you give an example of an epub where it does not work? (Maybe make your own epub in calibre out of some random text?) |
Tags |
calibre opds, dns, kobo aura, synology |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre OPDS server with windows apps? | nickdma | Related Tools | 10 | 03-03-2024 02:53 PM |
[Old Thread] Android FBreader and Calibre OPDS server question | kalex | Calibre | 5 | 12-24-2015 10:16 PM |
PHP+Apache web server for calibre ... | chaley | Related Tools | 254 | 04-28-2014 08:18 PM |
External OPDS catalogue in Calibre | bolton | Calibre | 1 | 09-05-2012 06:14 AM |
Calibre Command Line usage with PHP | artoros | Related Tools | 13 | 07-01-2010 09:57 AM |