Sunteți pe pagina 1din 4

Kindle and Mobipocket Plugin - K4MobiDeDRM_v04.19_plugin.

zip
============================================================
Credit given to The Dark Reverser for the original standalone script. Credit als
o to the many people who have updated and expanded that script since then.
Plugin for K4PC, K4Mac, eInk Kindles and Mobipocket.
This plugin supersedes MobiDeDRM, K4DeDRM, and K4PCDeDRM and K4X plugins. If you
install this plugin, those plugins should be removed, as should any earlier ver
sions of this plugin.
This plugin is meant to remove the DRM from .prc, .mobi, .azw, .azw1, .azw3, .az
w4 and .tpz ebooks. Calibre can then convert them to whatever format you desire.
It is meant to function without having to install any dependencies except for C
alibre being on your same machine and in the same account as your "Kindle for PC
" or "Kindle for Mac" application if you are going to remove the DRM from books
from those programs.
Installation
-----------Do **NOT** select "Get plugins to enhance calibre" as this is reserved for "offi
cial" calibre plugins, instead select "Change calibre behavior" to go to Calibre
's Preferences page. Under "Advanced" click on the Plugins button. Use the "Loa
d plugin from file" button to select the plugin's zip file (K4MobiDeDRM_v04.19_p
lugin.zip) and click the 'Add' button. Click 'Yes' in the the "Are you sure?" di
alog. Click OK in the "Success" dialog.
Make sure that you delete any old versions of the plugin. They might interfere w
ith the operation of the new one.
Customization
------------Highlight the plugin (K4MobiDeDRM under the "File type plugins" category) and cl
ick the "Customize Plugin" button on Calibre's Preferences->Plugins page.
If you have an eInk Kindle enter the 16 character serial number (these all begin
a "B" or a "9") in the serial numbers field. The easiest way to make sure that
you have the serial number right is to copy it from your Amazon account pages (t
he "Manage Your Devices" page). If you have more than one eInk Kindle, you can e
nter multiple serial numbers separated by commas.
If you have Mobipocket books, enter your 8 or 10 digit PID in the Mobipocket PID
s field. If you have more than one PID, separate them with commas.
These configuration steps are not needed if you only want to decode "Kindle for
PC" or "Kindle for Mac" books.
Troubleshooting
--------------If you find that it's not working for you (imported ebooks still have DRM), you
can save a lot of time and trouble by first deleting the DRMed ebook from calibr
e and then trying to add the ebook to calibre with the command line tools. This
will print out a lot of helpful debugging info that can be copied into any onlin

e help requests. I'm going to ask you to do it first, anyway, so you might as we
ll get used to it. ;)
On Macintosh only you must first run calibre, open Preferences, open Miscellaneo
us, and click on the Install command line tools button. (On Windows and Linux the
command line tools are installed automatically.)
On Windows, open a terminal/command window. (Start/Run and then type 'cmd' (witho
ut the 's) as the program to run).
On Macintosh, open the Terminal application (in your Utilities folder).
On Linux open a command window. Hopefully all Linux users know how to do this, a
s I do not.
You should now have a text-based command-line window open. Also have open the fo
lder containing the ebook to be imported. Make sure that book isnt already in cal
ibre, and that calibre isnt running.
Now type in "calibredb add " (without the " but dont miss that final space) and n
ow drag the book to be imported onto the window. The full path to the book shoul
d be inserted into the command line. Now press the return/enter key. The import
routines will run and produce some logging information.
Now copy the output from the
On Windows, you must use the
select all the text and then
On Macintosh and Linux, just

terminal window.
window menu (little icon at left of window bar) to
to copy it.
use the normal text select and copy commands.

Paste the information into a comment at my blog, http://apprenticealf.wordpress.


com/ describing your problem.

Linux Systems Only


----------------If you install Kindle for PC in Wine, the plugin should be able to decode files
from that Kindle for PC installation under Wine. You might need to enter a Wine
Prefix if its not already set in your Environment variables. You will need to i
nstall Python and PyCrypto under Wine as detailed below. In addition, some peopl
e who have successfully used the plugin in this way have commented as follows:
Here are the instructions for using Kindle for PC on Linux under Wine. (Thank yo
u Eyeless and Pete)
1. upgrade to very recent versions of Wine; This has been tested with Wine 1.3.1
5 1.3.2X. It may work with earlier versions but no promises. It does not work wi
th wine 1.2.X versions.
If you have not already installed Kindle for PC under wine, follow steps 2 and 3
otherwise jump to step 4
2. Some versions of winecfg have a bug in setting the volume serial number, so c
reate a .windows-serial file at root of drive_c to set a proper windows volume s
erial number (8 digit hex value for unsigned integer).
cd ~
cd .wine
cd drive_c
echo deadbeef > .windows-serial
Replace "deadbeef" with whatever hex value you want but I would stay away from t

he default setting of "ffffffff" which does not seem to work. BTW: deadbeef is i
tself a valid possible hex value if you want to use it
3. Only ***after*** setting the volume serial number properly download and insta
ll under wine K4PC version for Windows. Register it and download from your Archi
ve one of your Kindle ebooks. Versions known to work are K4PC 1.7.1 and earlier.
Later version may work but no promises.
FIRST user
---------Hi everyone, I struggled to get this working on Ubuntu 12.04. Here are the secre
ts for everyone:
1. Make sure your Wine installation is set up to be 32 bit. 64 bit is not going
to work! To do this, remove your .wine directory (or use a different wineprefix)
. Then use WINEARCH=win32 winecfg
2. But wait, you cant install Kindle yet. It wont work. You need to do: winetricks
-q vcrun2008 or else youll get an error: unimplemented function msvcp90.dll .
3. Now download and install Kindle for PC and download your content as normal.
4. Now download and install Python 2.7 32 bit for Windows from python.org, 32 bi
t, install it the usual way, and you can now run the Kindle DRM tools.
SECOND USER
----------It took a while to figure out that I needed wine 32 bit, plus Python 27 32 bit,
plus the winetricks, to get all this working together but once its done, its great
and I can read my Kindle content on my Nook Color running Cyanogenmod!!!
Linux Systems Only:
For all of the following wine installs, use WINEARCH=win32 if you are on x86_64.
Also remember that in order to execute a *.msi file, you have to run WINEARCH=wi
n32 wine msiexec /i xxxxx.msi.
1. Install Kindle for PC with wine.
2. Install ActivePython 2.7.x (Windows x86) with wine from here: http://www.acti
vestate.com/activepython/downloads
3. Install the pycrypto (Windows 32 bit for Python 2.7) module with wine from he
re: http://www.voidspace.org.uk/python/modules.shtml#pycrypto
4. Install the K4MobiDeDRM plugin into your _Linux_ Calibre installation
Now all Kindle books downloaded from Kindle for PC in Wine will be automatically
de-DRMd when they are added to your _Linux_ Calibre. As always, you can troubles
hoot problems by adding a book from the terminal using calibredb add xxxx.
Or something like that! Hope that helps someone out.
Installing Python on Windows
---------------------------I strongly recommend fully installing ActiveStates Active Python, free Community
Edition for Windows (x86) 32 bits. This is a free, full version of the Python.
It comes with some important additional modules that are not included in the bar
e-bones version from www.python.org unless you choose to install everything.
1. Download ActivePython 2.7.X for Windows (x86) (or later 2.7 version for Windo
ws (x86) ) from http://www.activestate.com/activepython/downloads. Do not downlo
ad the ActivePython 2.7.X for Windows (64-bit, x64) verson, even if you are runn
ing 64-bit Windows.

2. When it has finished downloading, run the installer. Accept the default optio
ns.
Installing PyCrypto on Windows
-----------------------------PyCrypto is a set of encryption/decryption routines that work with Python. The s
ources are freely available, and compiled versions are available from several so
urces. You must install a version that is for 32-bit Windows and Python 2.7. I r
ecommend the installer linked from Michael Foords blog.
1. Download PyCrypto 2.1 for 32bit Windows and Python 2.7 from http://www.voidsp
ace.org.uk/python/modules.shtml#pycrypto
2. When it has finished downloading, unzip it. This will produce a file pycrypto2.1.0.win32-py2.7.exe.
3. Double-click pycrypto-2.1.0.win32-py2.7.exe to run it. Accept the default optio
ns.

S-ar putea să vă placă și