Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 02-03-2011, 04:41 AM   #1
mhomann
Member
mhomann began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2011
Device: Sony PRS 350
Calibre on linux: root password for unmounting?

Hi there,

how do i get calibre on linux to not ask me for the root password on unmounting the device? my linux user account is set up to use sudo with my own password instead.
mhomann is offline   Reply With Quote
Old 02-03-2011, 10:50 AM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,259
Karma: 6020309
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by mhomann View Post
Hi there,

how do i get calibre on linux to not ask me for the root password on unmounting the device? my linux user account is set up to use sudo with my own password instead.
What flavor Linux (and version number).?

That is NOT normal on the 8., 9.,10. Ubuntu versions (32 bit Intel)
theducks is offline   Reply With Quote
Old 02-03-2011, 10:57 AM   #3
mhomann
Member
mhomann began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2011
Device: Sony PRS 350
calibre 0.7.43 on opensuse 11.3...
mhomann is offline   Reply With Quote
Old 02-03-2011, 11:00 AM   #4
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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Make sure you are using the official calibre binary from calibre-ebook.com and not the distribution provided package.
kovidgoyal is offline   Reply With Quote
Old 02-03-2011, 11:24 AM   #5
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,259
Karma: 6020309
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by mhomann View Post
calibre 0.7.43 on opensuse 11.3...
Thank you (the Guru's of Suse Linux will be by )

and

Welcome to MR
theducks is offline   Reply With Quote
Old 02-03-2011, 11:37 AM   #6
mhomann
Member
mhomann began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2011
Device: Sony PRS 350
kovidgoyal: make sure the official binary package comes with an uninstaller and conforms to LSB2 standards.... also, make sure that the sources build properly when not building as root user.
mhomann is offline   Reply With Quote
Old 02-03-2011, 11:44 AM   #7
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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
mhonman: Good luck getting help.
kovidgoyal is offline   Reply With Quote
Old 02-03-2011, 11:52 AM   #8
mhomann
Member
mhomann began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2011
Device: Sony PRS 350
kovidgoyal: I'm trying to build a properly working package of calibre for openSUSE here, you should be encouraging that (like you seemed to be in another thread where you were pointing people at "the packages that came with your linux distribution" when people asked about how to uninstall...)
mhomann is offline   Reply With Quote
Old 02-03-2011, 11:57 AM   #9
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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I dont encourage that. In my experience, distro packages of calibre never work correctly. calibre is simply too complex and has too many dependencies for traditional linux package management to keep up.
kovidgoyal is offline   Reply With Quote
Old 02-03-2011, 12:00 PM   #10
mhomann
Member
mhomann began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2011
Device: Sony PRS 350
does that mean that calibre is more complex than the whole rest of a distribution?
mhomann is offline   Reply With Quote
Old 02-03-2011, 12:09 PM   #11
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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Sigh. The vast majority of software in a linux distribution is slow moving and has a relatively small number of slow moving dependencies.

The typical linux package management infrastructure is well suited to managing this kind of software.

calibre is both extremely fast moving and relies on cutting edge functionality from several dependencies. Package management simply cannot keep up. That is why I provide an "application bundle" version of calibre with all needed dependencies. The number of tickets that I have to waste my time with from linux users using distro provided packages is ridiculous given that only 5% of calibre users use linux. Hence my standard policy of closing all such tickets with the recommendation to install the official calibre binary.

Don't get me wrong, central package management is great, when it works, it just doesn't work for calibre. If you want to help with calibre packaging, I suggest you work on the official installer, add an uninstaller if you feel like that's what you want.
kovidgoyal is offline   Reply With Quote
Old 02-03-2011, 12:41 PM   #12
mhomann
Member
mhomann began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2011
Device: Sony PRS 350
just for the sake of the experiment, I get prompted for the root password by the official binary as well.

"Action: unmount a disk mounted by a different user" is what details I get.
mhomann is offline   Reply With Quote
Old 02-03-2011, 06:22 PM   #13
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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Good, then I'm happy to help. Unmounting in calibre happens in two stages

1) calibre tries to use udisks

2) If udisks is not available a setuid root executable calibre_mount_helper is used which simply calls eject

Most likely automounting on your system happens in a way that causes udisks to prompt you for permission.
kovidgoyal is offline   Reply With Quote
Old 02-05-2011, 05:35 AM   #14
mhomann
Member
mhomann began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Feb 2011
Device: Sony PRS 350
solved. had to set a Policykit rule that allows user.org.freedesktop.udisks.filesystem-unmount-others for the active user without password.

that being fixed, now I have a rpm package for openSUSE that works (for me) as good as the official binary ^^
mhomann is offline   Reply With Quote
Old 02-05-2011, 12:26 PM   #15
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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Cool, note that I don't claim its impossible to produce a distro package that works as well as the official binary, I do claim its very difficult to keep it working over time.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Login/Password for Calibre Server myudkowsky Calibre 15 11-21-2010 11:07 PM
PRS-700 Warning, mounting/unmounting in linux, be carefull eksor Sony Reader 0 10-01-2009 04:44 AM
libprs500 on SuSE linux 10.3 doesn't recognize non-root user flubu Calibre 9 03-22-2008 06:20 AM
iLiad dropbear ssh: how to change root password? daudi iRex Developer's Corner 2 01-10-2008 05:49 PM
iLiad Thoughts on 2.5 and root password TadW iRex Developer's Corner 16 07-26-2006 04:37 AM


All times are GMT -4. The time now is 07:31 AM.


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