Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 10-26-2016, 05:38 PM   #1366
vowi
Member
vowi began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2016
Device: none
Hi mariosipad,

Thanks for your reply.
I'm using cops 1.0.0rc4 on synology with apache Webserver.
I've installed it manually without a syno package.

Vowi
vowi is offline   Reply With Quote
Old 10-26-2016, 05:42 PM   #1367
vowi
Member
vowi began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2016
Device: none
Hi mariosipad,

I'm using cops 1.0.0rc4 on synology with apache webserver.
I've installed it manually without syno package.

Vowi
vowi is offline   Reply With Quote
Advert
Old 10-31-2016, 12:31 PM   #1368
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
As far as I know there is no "official" update procedure.

What I do on my Synology:
1 - rename existing COPS to something like cops-bak
2 - install COPS manually from github
2a - download the latest master
2b - unzip in web directory on my synology (either use samba or ssh)
2c - rename cops-master to cops
3 - copy config_local.php from cops-bak to cops
4 - make sure everything works http://<IP>/cops/checkconfig.php
if not, maybe you need to move some calibre libraries (from cops-bak to cops)?
mariosipad is offline   Reply With Quote
Old 11-02-2016, 05:44 PM   #1369
vowi
Member
vowi began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2016
Device: none
Quote:
Originally Posted by mariosipad View Post
As far as I know there is no "official" update procedure.

What I do on my Synology:
1 - rename existing COPS to something like cops-bak
2 - install COPS manually from github
2a - download the latest master
2b - unzip in web directory on my synology (either use samba or ssh)
2c - rename cops-master to cops
3 - copy config_local.php from cops-bak to cops
4 - make sure everything works http://<IP>/cops/checkconfig.php
if not, maybe you need to move some calibre libraries (from cops-bak to cops)?
Thanks! I will try that procedure.

Gesendet von meinem Nexus 5 mit Tapatalk
vowi is offline   Reply With Quote
Old 11-06-2016, 06:09 AM   #1370
richo
Connoisseur
richo began at the beginning.
 
richo's Avatar
 
Posts: 68
Karma: 10
Join Date: Sep 2014
Device: KOReader on: Kindle Paperwhite and Android
Please excuse me if this question has no sense, but:
Is there a way in Calibre to access and load books from a OPDS Server ?
richo is offline   Reply With Quote
Advert
Old 11-06-2016, 06:20 AM   #1371
richo
Connoisseur
richo began at the beginning.
 
richo's Avatar
 
Posts: 68
Karma: 10
Join Date: Sep 2014
Device: KOReader on: Kindle Paperwhite and Android
Quote:
Originally Posted by richo View Post
Please excuse me if this question has no sense, but:
Is there a way in Calibre to access and load books from a OPDS Server ?
I found my answer to my question here: https://www.mobileread.com/forums/sho...d.php?t=276420
richo is offline   Reply With Quote
Old 11-29-2016, 01:20 AM   #1372
DouglasK
Member
DouglasK knows the square root of minus one.DouglasK knows the square root of minus one.DouglasK knows the square root of minus one.DouglasK knows the square root of minus one.DouglasK knows the square root of minus one.DouglasK knows the square root of minus one.DouglasK knows the square root of minus one.DouglasK knows the square root of minus one.DouglasK knows the square root of minus one.DouglasK knows the square root of minus one.DouglasK knows the square root of minus one.
 
DouglasK's Avatar
 
Posts: 24
Karma: 7938
Join Date: Oct 2010
Location: Ottawa, Ontario, Canada
Device: Onyx Note Air3, Kobo Aura HD, Nexus 7 (2013)
Ubuntu Xenial (16.04) has depreciated PHP 5 in favour of PHP 7.

Any words to the wise for getting cops to work on current versions of Ubuntu?
DouglasK is offline   Reply With Quote
Old 12-04-2016, 08:41 AM   #1373
vowi
Member
vowi began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2016
Device: none
Quote:
Originally Posted by mariosipad View Post
As far as I know there is no "official" update procedure.

What I do on my Synology:
1 - rename existing COPS to something like cops-bak
2 - install COPS manually from github
2a - download the latest master
2b - unzip in web directory on my synology (either use samba or ssh)
2c - rename cops-master to cops
3 - copy config_local.php from cops-bak to cops
4 - make sure everything works http://<IP>/cops/checkconfig.php
if not, maybe you need to move some calibre libraries (from cops-bak to cops)?

It worked perfectly!
Thanks!!
vowi is offline   Reply With Quote
Old 12-12-2016, 01:10 AM   #1374
tnemec
Junior Member
tnemec began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2016
Device: iPad & iPhone with Marvin
After changing to a new notebook (and installation of latest calibre) - but this should not be a trigger of problems I think, I do get grey empty screen in COPS. Running checkconfig stops after "Check if Calibre database file contains at least some of the needed tables"

Does anybody know this behavior?

Rgrds,
Thomas
tnemec is offline   Reply With Quote
Old 12-12-2016, 06:08 AM   #1375
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
Can you post a screenshot of cops with checkconfig.php?

It's probably a rights issue. Cops needs to be able to read (open) the database files.
Just to test set the rights of the calibre folder and the file therein to read and write allowed. You can always go back later.
mariosipad is offline   Reply With Quote
Old 12-17-2016, 03:25 PM   #1376
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Put COPS on a QNAP TS-251. Really new at this, but after some trial & error got the basic COPS working and can connect with a local browser.

2 questions:

How to implement multiple libraries?

Can I specify a larger cover image size the users will see? In Calibre they are all saved at 900x1200. I don't need them to display at that size, but larger than the default is.

Thanks!
MontyJ is offline   Reply With Quote
Old 12-19-2016, 08:36 AM   #1377
mariosipad
Guru
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 725
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
2 answers:

Answer 1 - just follow the explanation in "config_local.php"

For 1 library:
Code:
$config['calibre_directory'] = './Calibre_library/';
for multiple libraries:
Code:
$config['calibre_directory'] = array (
     "First database name" => "./Calibre_library1/",
     "Second database name" => "/Calibre_library2/");
Answer 2 - Edit (with a text editor not a word processor) the file (in the COPS directory ./templates/default/styles/style-base.css
You need to change a few lines: (starting around line 219)
Code:
.books .cover {
    float:left;
    margin: 4px 10px 4px 4px;
    width: 60px; 
    height: 82px;
}
then change 60 and 82 to a larger number for example 120 & 164.

then you need to change one more line: (starting around line 214)
Code:
.books {
    clear: both;
   min-height: 90px;
}
change value 90 to for example 180. This value needs to be larger than the new value for height you just changed.

This worked for me.

Success!
mariosipad is offline   Reply With Quote
Old 12-19-2016, 10:39 AM   #1378
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by mariosipad View Post
2 answers:

Answer 1 - just follow the explanation in "config_local.php"

For 1 library:
Code:
$config['calibre_directory'] = './Calibre_library/';
for multiple libraries:
Code:
$config['calibre_directory'] = array (
     "First database name" => "./Calibre_library1/",
     "Second database name" => "/Calibre_library2/");
Answer 2 - Edit (with a text editor not a word processor) the file (in the COPS directory ./templates/default/styles/style-base.css
You need to change a few lines: (starting around line 219)
Code:
.books .cover {
    float:left;
    margin: 4px 10px 4px 4px;
    width: 60px; 
    height: 82px;
}
then change 60 and 82 to a larger number for example 120 & 164.

then you need to change one more line: (starting around line 214)
Code:
.books {
    clear: both;
   min-height: 90px;
}
change value 90 to for example 180. This value needs to be larger than the new value for height you just changed.

This worked for me.

Success!

Thanks! On a brief travel, but will implement soon as I get back

Monty
MontyJ is offline   Reply With Quote
Old 12-30-2016, 02:42 PM   #1379
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by mariosipad View Post
2 answers:

Answer 1 - just follow the explanation in "config_local.php"

For 1 library:
Code:
$config['calibre_directory'] = './Calibre_library/';
for multiple libraries:
Code:
$config['calibre_directory'] = array (
     "First database name" => "./Calibre_library1/",
     "Second database name" => "/Calibre_library2/");
Answer 2 - Edit (with a text editor not a word processor) the file (in the COPS directory ./templates/default/styles/style-base.css
You need to change a few lines: (starting around line 219)
Code:
.books .cover {
    float:left;
    margin: 4px 10px 4px 4px;
    width: 60px; 
    height: 82px;
}
then change 60 and 82 to a larger number for example 120 & 164.

then you need to change one more line: (starting around line 214)
Code:
.books {
    clear: both;
   min-height: 90px;
}
change value 90 to for example 180. This value needs to be larger than the new value for height you just changed.

This worked for me.

Success!
Mario,

Well, got the multiple libraries working great...thanks!

However, the cover images did not change when I made those 3 changes. I used your example the first time and when I could not see any diff I tripled the original values of the cover images. I did not triple the original 'Books' value, only 'Books.cover', but did make it larger than the height in both tries.

Still no change. I am using cops-1.0.1

Anything else I can check?
MontyJ is offline   Reply With Quote
Old 12-30-2016, 05:02 PM   #1380
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Setup COPS for reliable web access

I share (some of) my Calibre libraries with others. Currently I have this working great on my Linux PC running the Calibre servers. The libraries are big, so I have them broken down into smaller separate libraries. Each is assigned a different port number, ie 8186, 8187, etc.

Then I use a great service called Pagekite to handle the domain/dns issues; my ISP changes my IP address frequently. This is working ok, but the users have to keep 6 different URL's handy and login to each separately. Hassle.

With COPS on my QNAP, I can use a single login since COPS can handle the multiple libraries. Great!

But I don't want anyone to have access to anything except COPS.

1. Can I put COPS on a unique port, say 8199 or so, and then have the Pagekite scripts handle it like I have in my Linux pc?

2. Is there a more simple way to let users have secure access to only COPS with a login?

I am pretty weak on the who web server setup thing and can't see how to put COPS on its own unique port.

Ideas, pointers?

Thanks!
MontyJ is offline   Reply With Quote
Reply

Tags
calibre opds, dns, kobo aura, synology


Forum Jump

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


All times are GMT -4. The time now is 10:51 AM.


MobileRead.com is a privately owned, operated and funded community.