|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Sep 2021
Device: PC, smartphone,tablet
|
HOWTO, K4PC 1.17 installation, remove DRM settings, Linux, Playonlinux
0. Presentation
This is the result of 3 days working to find why suddenly the 1.17 connection to amazon fails. This is a tutorial for: - installing K4PC 1.17 in a Linux environment with the PlayOnLinux application. - solving problems: impossible network connection, blank registration screen, failure to refresh the list of books. I assume you get the background knowledge for using Linux, PlayOnLinux, Calibre 6.6.1, DeDRM 10.0.3, wine config 1. Install k4PC with Playonlinux (POL) download https://keybase.pub/koumaza/Archive/...1-17-44183.exe Launch the K4PC installation procedure. Choose wine 5.0 During installation, K4PC is launched, quit the regitration windows, go to the settings, go to "General", uncheck "automatic update" Do not forget to click on "register" button after unchecking "automatic update" Quit K4PC Continue until the end of the installation. Warning : there is no updating problem with 1.17, so there is nothing to do to forbid the update, just uncheck "automatic update" 2. Install python 3.9.6 download https://www.python.org/ftp/python/3....thon-3.9.6.exe With Calibre 6.6.1 and the new DeDRM plugin (10.0.3) you need python 3 installed with K4PC. With POL select K4PC then go to its settings then the "wine" tab click on "configure wine" Change "windows 7" to "windows 8.1" (python 3.9.6 requires "windows 8.1") then "OK". With POL select K4PC then go to its settings then the "miscellaneous" tab. Click on "run an exe in this virtual disk". The following steps are the same as for any app installation. 3. Install "cryptodome" module in python 3.9.6 needed for DeDRM 10.0.3 to find book encryption key With POL select K4PC then go to its settings then the "miscellaneous" tab. Click on "open terminal" run the command wine py -m pip install pycryptodome 4. Install a recent K4PC authentication certificate In K4PC, to connect to the amazon server, you need an authentication certificate whose validity date has not expired. The authentication certificate installed during the installation of K4PC 1.17 has an expired validity date. Consequences of an obsolete certificate: - error message saying that the connection is impossible - blank registering screen - book list refresh fails. See explanations here https://bugs.winehq.org/show_bug.cgi?id=50471 create a text file named b204d74a.0 copy in the following text -----BEGIN CERTIFICATE----- MIIE0zCCA7ugAwIBAgIQGNrRniZ96LtKIVjNz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E BAMCAQYwbQYIKwYBBQUHAQwEYTBfoV2gWzBZMFcwVRYJaW1hZ2 UvZ2lmMCEwHzAH BgUrDgMCGgQUj+XTGoasjY5rw8+AatRIGCx7GS4wJRYjaHR0cD ovL2xvZ28udmVy aXNpZ24uY29tL3ZzbG9nby5naWYwHQYDVR0OBBYEFH/TZafC3ey78DAJ80M5+gKv MzEzMA0GCSqGSIb3DQEBBQUAA4IBAQCTJEowX2LP2BqYLz3q3J ktvXf2pXkiOOzE p6B4Eq1iDkVwZMXnl2YtmAl+X6/WzChl8gGqCBpH3vn5fJJaCGkgDdk+bW48DW7Y 5gaRQBi5+MHt39tBquCWIMnNZBU4gcmU7qKEKQsTb47bDN0lAt ukixlE0kF6BWlK WE9gyn6CagsCqiUXObXbf+eEZSqVir2G3l6BFoMtEMze/aiCKm0oHw0LxOXnGiYZ 4fQRbxC1lfznQgUy286dUV4otp6F01vvpX1FQHKOtw5rDgb7Mz VIcbidJ4vEZV8N hnacRHr2lVz2XTIIM6RUthg/aFzyQkqFOFSDX9HoLPKsEdao7WNq -----END CERTIFICATE----- attention from here, the following steps are only valid for openSUSE As administrator put b204d74a.0 file in /usr/share/pki/trust/anchors/ run the command to add the certificate in the OS update-ca-certificates then the command to check the certificate is added trust list the last certificate in the list is certificate b204d74a.0 pkcs11:id=%7F%D3%65%A7%C2%DD%EC%BB%F0%30%09%F3%43% 39%FA%02%AF%33%31%33;type=cert type: certificate label: VeriSign Class 3 Public Primary Certification Authority - G5 trust: anchor category: authority 5. Setting up the DeDRM plugin in Calibre launch Calibre go to plugin management look for the DeDRM plugin and select it click on "Customize an extension" click on "Kindle For Mac/PC ebooks" in the WINEPREFIX field indicate the path to K4PC in Playonlinux /home/your_user_name/.PlayOnLinux/wineprefix/name_of_the_kindle_virtual_disk/ for example /home/toto/.PlayOnLinux/wineprefix/kindle/ then click "+", after a while you see that a file containing the decryption key is added close the window then "OK" then "apply" 6. Have fun |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
K4PC 1.26, DeDRM or KFX input can't find any key to remove drm | promeneur | Conversion | 3 | 10-11-2022 10:08 AM |
[Command-line] Easy way to remove DRM on Linux? | Shohreh | Library Management | 12 | 06-10-2022 10:54 AM |
Linux Users: Is Wine + ADE/K4PC still working for you? | latepaul | Amazon Kindle | 7 | 10-04-2021 12:45 PM |
howto bring a likebook mars t80d back to life under gnu/linux? | prout | Boyue | 32 | 08-09-2021 03:34 PM |
Remove DRM in Linux | Spektakel | Workshop | 15 | 10-15-2010 08:25 PM |