summaryrefslogtreecommitdiffstats
path: root/CALIBRE_CLI_INSTRUCTIONS.md
diff options
context:
space:
mode:
authorJonah Weissman <[email protected]>2018-10-13 14:34:47 -0400
committerJonah Weissman <[email protected]>2018-10-13 14:34:47 -0400
commit63c8b28efd6a96e89f218d0e9ee0406452878af3 (patch)
treefc36139c1b5ff7df701bf59257b893d5097ca1ea /CALIBRE_CLI_INSTRUCTIONS.md
parent114c4988c0c75918c37dbd681274286d5aeec578 (diff)
Clarify CLI instructions are for Calibre plugin
Diffstat (limited to 'CALIBRE_CLI_INSTRUCTIONS.md')
-rw-r--r--CALIBRE_CLI_INSTRUCTIONS.md47
1 files changed, 47 insertions, 0 deletions
diff --git a/CALIBRE_CLI_INSTRUCTIONS.md b/CALIBRE_CLI_INSTRUCTIONS.md
new file mode 100644
index 0000000..d579348
--- /dev/null
+++ b/CALIBRE_CLI_INSTRUCTIONS.md
@@ -0,0 +1,47 @@
+# Using the DeDRM plugin with the Calibre command line interface
+
+If you prefer the Calibre CLI instead of the GUI, follow this guide to
+install and use the DeDRM plugin.
+
+This guide assumes you are on Linux, but it may very well work on other
+platforms.
+
+## Step-by-step Tutorial
+
+#### Install Calibre
+ - Follow [Calibre's installation instructions](https://calibre-ebook.com/download_linux)
+
+#### Install plugins
+ - Download the DeDRM `.zip` archive from DeDRM_tools'
+ [latest release](https://github.com/apprenticeharper/DeDRM_tools/releases/latest).
+ Then unzip it.
+ - Add the DeDRM plugin to Calibre:
+ ```
+ cd *the unzipped DeDRM_tools folder*
+ calibre-customize --add DeDRM_calibre_plugin/DeDRM_plugin.zip
+ ```
+ - Add the Obok plugin:
+ ```
+ calibre-customize --add Obok_calibre_plugin/obok_plugin.zip
+ ```
+
+#### Enter your keys
+ - Figure out what format DeDRM wants your key in by looking in
+ [the code that handles that](src/prefs.py).
+ - For Kindle eInk devices, DeDRM expects you to put a list of serial
+ numbers in the `serials` field: `"serials": ["012345689abcdef"]` or
+ `"serials": ["1111111111111111", "2222222222222222"]`.
+ - Now add your keys to `$CALIBRE_CONFIG_DIRECTORY/plugins/dedrm.json`.
+
+#### Import your books
+ - Make a library folder
+ ```
+ mkdir library
+ ```
+ - Add your book(s) with this command:
+ ```
+ calibredb add /path/to/book.format --with-library=library
+ ```
+
+The DRM should be removed from your book, which you can find in the `library`
+folder.