- This topic has 2 replies, 2 voices, and was last updated Apr 5-12:05 am by ctcx.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Forum for users of antiX Linux. Mean and Lean and Proudly anti-fascist.
Forum › Forums › General › Tips and Tricks › Some helping notes regarding Calibre and Amazon Kindle
I was asked a simple task with a Kindle Paperwhite: uploading some books to the device via USB; i.e., sideloading.
Surprises, surprises:
—the Kindle ever-lasting cover-removing bug –solved with Calibre
—Calibre being unable to properly write to the device –DBus/polkit “Not Allowed” errors, and device always prematurely force-unmounting (possibly due to aforementioned errors?), so half of stuff was never uploaded, unless running Calibre with sudo
This was a hell, and still today I don’t want to see that piece of **** again –I gave it back after completing the task.
However I wondered if some of the learning I got could be useful for some future users, so tried to “report” here.
First, install Calibre manually instead of from repo (suggestion coming directly from the dev):
https://calibre-ebook.com/download_linux
Alas, Calibre is designed to work with udisks2, and udisks2 works with polkit…
Install packages policykit-1 and udisks2.
Polkit needs configuration for permissions…
Taken/based from here:
https://igurublog.wordpress.com/downloads/script-devmon/ (section “Troubleshooting UDisks”)
create file /etc/polkit-1/localauthority/50-local.d/10-udisks.pkla , including subdirectories if needed, with this:
[udisks2]
Identity=unix-user:demo
Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.encrypted-unlock;org.freedesktop.udisks2.eject-media;org.freedesktop.udisks2.power-off-drive;org.freedesktop.udisks2.filesystem-unmount-others
ResultAny=yes
AntiX, or overall Debian-based, seem to still be using Policykit (legacy v1) instead of Polkit (current v2).
With this Calibre should be able to mount/unmount, and without conflicting with udevil.
Forgot one detail: the calibre_postinstall script needs package libopengl0 as installed dependency in order to work properly and not throw errors/warnings.
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |