Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-10-2012, 04:49 PM   #1
Mixx
Zealot
Mixx has a complete set of Star Wars action figures.Mixx has a complete set of Star Wars action figures.Mixx has a complete set of Star Wars action figures.Mixx has a complete set of Star Wars action figures.
 
Posts: 143
Karma: 387
Join Date: Sep 2010
Device: Kindle 3
Need help with calibre on Ubuntu

Hi,

I am trying to automate news download on a Ubuntu (12.04) based laptop using a script published here on the forum. It is harder than I thought, it probably exceeds my abilities.

It starts out with an error on calling ebook-convert:
Quote:
/opt/calibre/bin/ebook-convert: error while loading shared libraries: libcalibre-launcher.so: cannot open shared object file: No such file or directory
I'd appreciate any help. The latest calibre is installed and works without problems from the app, news feeds can be downloaded and mailed, too.

Thanxx for any help,

Mixx

PS: I was thinking of trying to host calibre on a VPS (virtual private server) but gave up on that. I picked up an old laptop instead and installed ubuntu. Despite its age, I can wake the laptop and put it back to hibernation using
Quote:
rtcwake -m disk -t $(date -d 'tomorrow 08:00' +%s)
Here is the plan: The laptop wakes up everyday at 8am, does a news download and goes back to hibernation, a state in which it does not use power. Just what I need. I am planning to use this script: https://www.mobileread.com/forums/sho...d.php?t=107722

Despite my lack of proper skills, I am determined to make this plan work. But I do need help, as you can see.
Mixx is offline   Reply With Quote
Old 07-10-2012, 08:37 PM   #2
mikeayers
Zealot
mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.mikeayers ought to be getting tired of karma fortunes by now.
 
mikeayers's Avatar
 
Posts: 136
Karma: 432377
Join Date: Nov 2010
Location: USA
Device: Kindle PW 10thGen, Kobo Clara HD
This is not much help but here is what I can tell:
I have a script that runs ebook-convert everyday on my 12.04 system, so I know it can work on Ubuntu.

"locate libcalibre-launcher.so" says it is located in /opt/calibre/lib/libcalibre-launcher.so
ebook-convert --version says it is calibre 0.8.59.

I would check to make sure that libcalibre-launcher.so is there and maybe check the permissions of the file (and the directories getting to it) to make sure you can access it.

Also, maybe it you don't have the newest verison, try upgrading calibre.

If you can think of anything else I can look at on my system for you let me know.

Good luck!
mikeayers is offline   Reply With Quote
Advert
Old 07-10-2012, 11:54 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,363
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to run /opt/calibre/ebook-convert not /opt/calibre/bin/ebook-convert
kovidgoyal is offline   Reply With Quote
Old 07-11-2012, 01:17 AM   #4
Mixx
Zealot
Mixx has a complete set of Star Wars action figures.Mixx has a complete set of Star Wars action figures.Mixx has a complete set of Star Wars action figures.Mixx has a complete set of Star Wars action figures.
 
Posts: 143
Karma: 387
Join Date: Sep 2010
Device: Kindle 3
Uh, that was it. The main script is working now, I am making progress!

Thanxx, Mixx
Mixx is offline   Reply With Quote
Old 07-14-2012, 01:29 PM   #5
Mixx
Zealot
Mixx has a complete set of Star Wars action figures.Mixx has a complete set of Star Wars action figures.Mixx has a complete set of Star Wars action figures.Mixx has a complete set of Star Wars action figures.
 
Posts: 143
Karma: 387
Join Date: Sep 2010
Device: Kindle 3
My automated news feeds on a cheap laptop

OK, just to close the thread, a couple of remarks.

I have succeeded to configure an old laptop running Ubuntu with just 3 scripts to do the following:

The laptop wakes up every morning at 6pm from hibernation and downloads a daily load of a number of recipes. Saturday mornings it additionally downloads more stuff for the weekend. After fetching and mailing the news feeds to my Kindle account at amazon is complete, the laptop hibernates to disk again (thereby consuming very little electric power).

This is what I wanted to accomplish and it seems to work now. I am a happy camper.

Anybody trying to do something similar should note that
  1. Old laptops might not be able to run the latest Ubuntu version, as starting with 12.04 there are kernel issues for old HW. The latest version of Calibre runs well on 10.04, thus this is not a big problem.
  2. Even if the rtcwake command (see first post in this thread) is working well, there are issues with waking up, the Ubuntu boot manager GRUB has sometimes problems (waits for user interaction). These can be fixed by configuring its scripts (/etc/grub.d/00_header with a timeout) and disabling legacy USB support in BIOS.
  3. rtcwake can go to deep sleep (S4) using a disk image, in which case it survives short power outages well. I use this mode (rtcwake -m disk...).
  4. rtcwake requires root privileges, which can be invoked by "sudo rtcwake..." in the script. By editing a config file via "visudo", one can specifiy that the user is permitted to run "sudo rtcwake" without having to enter the password (needed for the script).
  5. All of the above is documented in the newsgroups. I have minimal skills and could manage.
  6. I decided to put the recipes I like into two folders on Dropbox. That way I can manage them (selection, update, config, etc.) from my main PC. My scripts cycle through these folders and process all recipes in them (depending on the day).
  7. I keep the scripts in a Dropbox folder, too. That way I can easily upgrade/change them from anywhere.
  8. The main work is done by the script https://www.mobileread.com/forums/sho...d.php?t=107722 published on this forum, the rest is just messing around until it works.

Cheers, Mixx

Last edited by Mixx; 07-14-2012 at 02:10 PM.
Mixx is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre 0.8.51 for ubuntu 10.04 anishtain4 Calibre 26 05-28-2012 08:43 AM
Calibre 0.8.8 in Ubuntu? anfisco Calibre 12 11-29-2011 06:19 AM
Ubuntu Karmic with Calibre 0.6.13 BertReader Calibre 4 04-25-2010 04:21 PM
Calibre under Ubuntu 9.04 ebeckhusen Calibre 4 04-10-2009 04:22 PM
Cannot install calibre on ubuntu 8.04 kkkidder Calibre 1 03-19-2009 10:44 PM


All times are GMT -4. The time now is 06:57 AM.


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