====== Cryptic Kindle notes ====== I don't expect the information on this page to be easily comprehensible to anyone else; it is more of an aide-mémoire for my own use. * https://www.python.org/downloads/release/python-2717/ * http://www.voidspace.org.uk/python/modules.shtml wine python kk.py wkdir ===== Less cryptic notes ===== **(Still very much a work in progress...)** I own a Tolino Epos eBook reader. It works nicely with standard epub format eBooks (as well as PDF or text files, which do work, but are far less usable, just as they are on any eBook reader). I buy eBooks on Amazon, and use [[ https://kindleforpc.s3.amazonaws.com/70682/KindleForPC-installer-2.3.70682.exe|Kindle for PC]] (running under [[https://www.winehq.org/|Wine]] on Linux) to download the books. I then use [[http://calibre-ebook.com/download|Calibre]] with a [[https://github.com/noDRM/DeDRM_tools/releases/download/v10.0.9/DeDRM_tools_10.0.9.zip|plugin]] which understands Amazon's non-standard AZW format to convert these into standard epub format so that I can read them. This has been working nicely for several years. However, since around early 2023, Amazon has been creating Kindle eBooks using a new DRM mechanism called KFX, which only later versions of the Calibre plugin can convert, and this later plugin also requires a more up-to-date underlying operating system than I had been using with the above setup. So, in February 2024, this is a writeup of my attempts (I haven't quite got there yet) to create a new system to achieve what I wanted and be able to continue buying the new Amazon eBooks. - Install Devuan Daedalus with KDE (in fact I started from Chimaera and performed an upgrade, but this should not be significant) - Install the **wine64** package * I also installed **wine** and **fonts-wine** - Download **Kindle_for_PC_v2.0.70350.exe** from Amazon - Run **wine Kindle_for_PC_v2.0.70350.exe** and find out that you need 32-bit support as well even on a modern 64-bit machine - Tell your machine to use the i386 architecture as well as AMD64, with the command **dpkg --add-architecture i386** - Install the **wine32** package - Run **wine Kindle_for_PC_v2.0.70350.exe** again * This will generate the error message **wine: could not load kernel32.dll, status c0000135** * This is [[https://bugs.winehq.org/show_bug.cgi?id=51086|claimed]] not to be a wine bug, but something to do with gstreamer * So, I purged the package **gstreamer1.0-x**, which made no difference * I then purged the package **libgstreamer-gl1.0-0**, which also made no difference * So, I reverted the above package removals and tried another potential [[https://medium.com/%@rupesharma1335/wine-could-not-load-kernel32-dll-status-c0000135-fc3c11ffa216|solution]] * Interestingly this seems to work - Run **wine Kindle_for_PC_v2.0.70350.exe** again * The error message now says that **"KRFDynamic.dll" failed to initialise** * I downloaded it (it's not hard to find on the Internet) and put it into **windows/system32**, and also into **windows/system** * This made no difference - As far as I know, I only need Kindle for PC version 1.40 or higher in order to be able to download the KFX format books, so I started again and tried to install **KindleForPC-installer-1.40.65535.exe** * This still needed the fix for the "kernel32.dll" bug above, but otherwise appeared to install happily * Unfortunately the first screen displayed is for registering your "device" with Amazon, and this is simply a blank window, so there's no way to register (without which, of course, you can't download the books you've bought). ===== Cannot connect to Internet ===== A common problem with trying to install Kindle for PC on a "newer" (I can't give any clear definition of what that means) computer is that it complains that you have no connection to the Internet, even though you do. It [[https://forums.linuxmint.com/viewtopic.php?f=47&t=342186|turns out]] that this is due to an SSL certificate for Symantec which is present in older Operating Systems having been removed, and Kindle for PC still depends on it. The solution is simple: create the following text file as **/etc/ssl/certs/b204d74a.0** -----BEGIN CERTIFICATE----- MIIE0zCCA7ugAwIBAgIQGNrRniZ96LtKIVjNzGs7SjANBgkqhkiG9w0BAQUFADCB yjELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQL ExZWZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJp U2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxW ZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0 aG9yaXR5IC0gRzUwHhcNMDYxMTA4MDAwMDAwWhcNMzYwNzE2MjM1OTU5WjCByjEL MAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZW ZXJpU2lnbiBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJpU2ln biwgSW5jLiAtIEZvciB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bidJ4vEZV8N hnacRHr2lVz2XTIIM6RUthg/aFzyQkqFOFSDX9HoLPKsEdao7WNq -----END CERTIFICATE----- Hm, it's [[https://bugs.winehq.org/show_bug.cgi?id=50471|possible]] that another one is (also?) needed: **/etc/ssl/certs/facacbc6.0** However, the certificate itself turns out to be identical to the one above - it just has a different name. ===== Other links ===== Might be of interest: * https://forum.puppylinux.com/viewtopic.php?f=142&t=2397 * https://bugs.winehq.org/show_bug.cgi?id=50471 ---- [[.:|Go up]]\\ Return to [[:|main index]].