Some helping notes regarding Calibre and Amazon Kindle

Forum Forums General Tips and Tricks Some helping notes regarding Calibre and Amazon Kindle

  • 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)
  • Author
    Posts
  • #96330
    Member
    ctcx

      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.

      #96367
      Member
      marcelocripe
        Helpful
        Up
        0
        ::

        Thank you very much ctcx.

        #104072
        Member
        ctcx
          Helpful
          Up
          0
          ::

          Forgot one detail: the calibre_postinstall script needs package libopengl0 as installed dependency in order to work properly and not throw errors/warnings.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.