|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#16 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The content server connection provides navigation capability. Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#17 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jan 2014
Device: Coolreader
|
Thanks for the response, Chaley.
I've done a tcpdump on my connection in to my server, and you are very much correct - Calibre Sync is talking to the content server to do the navigation within the android app. I'd not done any googling on running Calibre headless, your mention of xvfb helps a lot, getting me to threads like https://www.mobileread.com/forums/sho...t=97841&page=2 It sounds like my use case is fairly niche for the general user population of Calibre, so I'll pursue the xvfb option, as I do very much want to be able to run Calibre headless (I'll be killing the process and firing it up in the GUI if/when I need to do some advanced library management). As an FYI - the benefit of all of this: I'm running this on a VM on a small home microserver, along with a variety of other headless services. I want to be able to drop and restart this VM without having to worry about logging into a GUI to fire up various apps. |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jan 2014
Device: Coolreader
|
OK, after a bit of mucking around I'm giving up on Calibre Sync in favour of Calibre Library, as it a) connects via IP, not zeroconf/bonjour/avahi and as such will be able to be seen from the Internet once I configure my firewall, and b) it works with the calibre-server component (ie: as it doesn't rely on the wireless device connection component I don't have to do anything funky like using xvfb).
As an aside - I couldn't quickly figure out how to fire up Calibre via xvfb and also start the connection server. As such, that is possibly a dead-end anyway. I haven't tried Calibre Companion, but from the description on the Play Store it appears to also rely on bonjour and as such doesn't appear a good option for headless, nor for general purpose access via the Internet. Finishing off, if anyone is reading this without having seen the various pages out there for headless Calibre implementations, check out something like http://alt236.blogspot.com.au/2010/0...t-boot-in.html ...and note that as chaley mentions, you can't daemonize the wireless device connection protocol, so don't attempt to use client apps that don't support hard-coding in the configuration of the Calibre server (IP : port and optionally user/pass) |
![]() |
![]() |
![]() |
#19 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Chaley is the developer of Calibre Companion and I'm sure he will correct me if I misspoke. |
|
![]() |
![]() |
![]() |
#20 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
First, although Calibre Companion (CC) can use bonjour and other discovery mechanisms, neither CC's wireless device connection nor its content server connection require their use. Both allow specification of an IP address and port. CC's content server connection setup goes beyond IP/port, supporting connection using arbitrary URLS. A URL is most useful when calibre's content server is behind a reverse proxy, often meaning that there are file path components in addition to the address/port specification. In addition, you can supply a second connection specification that would be used when the content server is on a LAN behind a port-forwarding router that does not support port loopback (the vast majority do not). In this case the content server has two "addresses", one when inside the LAN and one when outside the LAN (on the 'net). I don't think that any other client gives you this level of flexibility. Second: xvfb is required to run calibre's headless content server. It satisfies a calibre dependency for an output x-server. It is true that the headless server does no input, avoiding a passel of problems, and it is also true that starting the content server from the command line avoids a lot of complexity. Finally, no matter which client you use, be sure that you handle the case where calibre's database changes underneath the content server. In some cases, especially when a delete-then-add file scheme is used (dropbox appears to do this), the content server does not see changes and therefore does not refresh. I solve this problem on my VPS by copying the database to /tmp (only the database) and using monit to watch the "real" database's timestamp. Quote:
Quote:
Two final notes: 1) DoctorOhh's comment about CC's multiple book download from the content server, such as "download all books in series X" or "download all books by author Y" is very pertinent. I know of no other client that supports this capability. 2) Although one can use CC uniquely with the content server, doing so gives up a lot of useful functionality. For example, the wireless device connection supports:
|
|||
![]() |
![]() |
Advert | |
|
![]() |
#21 | ||
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jan 2014
Device: Coolreader
|
Hi Chaley,
Sounds like I need to drop a few dollars to check out CC as well ![]() WRT xvfb, we may be talking at cross purposes at this point. I'm able to fire up calibre-server as my linux box starts up. I don't use xvfb, and I'm then able to connect to calibre-server via my android app. Now if I wanted to make metadata changes I'd need to shut down calibre-server and fire up the GUI, but I can live with this for the benefit of the server auto-starting without me having to log in when the box fires up. Quote:
|
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Content Server / Wireless Device Connection both not working | Mousebumples | Calibre Companion | 6 | 01-20-2013 09:03 AM |
Headless Calibre-Server enable "Wireless device connection" | mohataj | Devices | 11 | 10-11-2012 05:39 AM |
[Android App] Can't start wireless device on OS X 10.8.2 | edebill | Devices | 19 | 09-29-2012 04:51 PM |
What is the difference: content server v wireless device connection | BeccaPrice | Calibre | 8 | 08-23-2012 04:35 PM |
Wireless internet connection frustrating IDS connection | Socrates | iRex | 8 | 10-21-2009 12:46 PM |