Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 07-11-2014, 11:56 AM   #1
Ackis
Member
Ackis began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Sep 2013
Location: Canada
Device: Galaxy Tab 2 10.1, iPad 2
Multiple Shared Libraries

Good day everyone, my current Calibre set up is running on a headless Ubuntu machine and my devices connect to the opds over the lan to get books. When I need to add a book to the library, I shut down the server, load up the client on my Windows machine, and then add the book there (which has issues due to the network aspect).

Now I have essentially three libraries of books: eBooks, Comics, Magazines.

I'm currently using Mylar and ComicRack for comics, and I'm not using anything for magazines.

I'm wondering if it's possible in my setup to share multiple libraries on the network, and if so, is it a good idea to have them separated like that?

I probably wouldn't add comics due to the way Calibre deals with folder structures (it'd break Mylar) but magazines would be nice.

Any tips/pointers/tricks would be appreciated.

PS: I'd also love an easier way to add books/update metadata, Calibre's single user DB is a frustrating constraint.
Ackis is offline   Reply With Quote
Old 07-11-2014, 05:53 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
It is not a god idea to use a Windows calibre library on a linux OS. Windows is case-insensitive, as is the db. Linux is case-sensitive and will not be able to find your books. You should be able to reemotely access calibre on the server, though: http://courses.cms.caltech.edu/cs11/misc/xwindows.html

You can run as many instances of
Code:
calibre-server --port #### --with-library /path/to/library
as you want. Just make sure they broadcast on different ports.

You could also merge the libraries and separate them via virtual libraries, which can be searched in the server.

Last edited by eschwartz; 07-11-2014 at 05:59 PM.
eschwartz is offline   Reply With Quote
Advert
Old 07-11-2014, 06:17 PM   #3
Ackis
Member
Ackis began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Sep 2013
Location: Canada
Device: Galaxy Tab 2 10.1, iPad 2
Quote:
Originally Posted by eschwartz View Post
It is not a god idea to use a Windows calibre library on a linux OS. Windows is case-insensitive, as is the db. Linux is case-sensitive and will not be able to find your books.
Already have dealt with that issue. It gets a lot more fun when you have *nix structure shared via Samba.

Quote:
Originally Posted by eschwartz View Post
You should be able to reemotely access calibre on the server, though: http://courses.cms.caltech.edu/cs11/misc/xwindows.html
Not going to install X on a headless server. I have no need for it.

Quote:
Originally Posted by eschwartz View Post
You can run as many instances of
Code:
calibre-server --port #### --with-library /path/to/library
as you want. Just make sure they broadcast on different ports.

You could also merge the libraries and separate them via virtual libraries, which can be searched in the server.
Thanks, I'll take a look into this, I think I had tried virtual libraries but ran into some hangups, time to look into them again.
Ackis is offline   Reply With Quote
Old 07-11-2014, 06:21 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Ackis View Post
Already have dealt with that issue. It gets a lot more fun when you have *nix structure shared via Samba.

Not going to install X on a headless server. I have no need for it.
Fair enough. You fixed i another way.
eschwartz is offline   Reply With Quote
Old 07-12-2014, 03:48 AM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,364
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Ackis View Post
PS: I'd also love an easier way to add books/update metadata, Calibre's single user DB is a frustrating constraint.
I use dropbox to sync the library from its home to my server-in-the-sky. On my server, I use monit to detect timestamp changes to the local calibre db. Monit restarts calibre. The restart script copies the db to /tmp to avoid simultaneous access problems and sets calibre's environment variable CALIBRE_OVERRIDE_DATABASE_PATH to tell calibre to use the db in /tmp.
chaley is offline   Reply With Quote
Advert
Old 07-14-2014, 11:24 AM   #6
Ackis
Member
Ackis began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Sep 2013
Location: Canada
Device: Galaxy Tab 2 10.1, iPad 2
Quote:
Originally Posted by chaley View Post
I use dropbox to sync the library from its home to my server-in-the-sky. On my server, I use monit to detect timestamp changes to the local calibre db. Monit restarts calibre. The restart script copies the db to /tmp to avoid simultaneous access problems and sets calibre's environment variable CALIBRE_OVERRIDE_DATABASE_PATH to tell calibre to use the db in /tmp.
Could you share your script with me please?
Ackis is offline   Reply With Quote
Old 07-14-2014, 01:43 PM   #7
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,364
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Ackis View Post
Could you share your script with me please?
This script is run by monit under the following conditions:
Code:
check process calibre-server with pidfile /var/run/calibre-server.pid
  start program = "/root/mon/calibre-server.sh start"
  stop program  = "/root/mon/calibre-server.sh stop"
  alert [elided-email-address] only on { timeout, nonexist }

check file metadata.db with path /home/dropbox/Dropbox/[elided]/metadata.db
  if changed timestamp
     then exec "/root/mon/calibre-server.sh restart"
The calibre-server script is attached. Although it looks like an init.d script and can actually run as one, instead I run it only through monit. I added the .txt extension so that I could attach the file.
Attached Files
File Type: txt calibre-server.sh.txt (3.6 KB, 205 views)
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple libraries Multiple Devices Marianne527 Library Management 2 12-03-2012 04:04 PM
Multiple Libraries gandor62 Calibre 42 08-01-2012 11:23 AM
Using Calibre to allow for shared highlights/notes on multiple devices? iseroma Calibre 0 06-30-2012 02:31 PM
Multiple libraries? netgirl Calibre 14 11-03-2009 10:13 AM
Google Books shared libraries? dhume01 Reading Recommendations 0 10-25-2009 10:40 PM


All times are GMT -4. The time now is 03:12 AM.


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