How to get an
.epub
from an.acsm
on Fedora Linux
This guide is based on Installing on Arch Linux via WINE and Exactly how to remove DRM.
The steps below were tested with Fedora 32.
Since ADE is a Windows application, to run it under Linux we will to install Wine.
Configure environment variables:
wine_install="$HOME/.adewine/"
export WINEPREFIX=$wine_install
export WINEARCH=win32
Install dependencies:
sudo dnf install -y wine winetricks gnutls
Setup Wine:
wineboot
winetricks -q corefonts
winetricks -q dotnet35sp1
winetricks -q python27
Download and install ADE in Wine:
curl -L http://download.adobe.com/pub/adobe/digitaleditions/ADE_2.0_Installer.exe \
-o /tmp/adeinstaller.exe
wine /tmp/adeinstaller.exe
Note: You would need an Adobe ID. Please refer to: https://helpx.adobe.com/manage-account/using/create-update-adobe-id.html to create one.
- Start ADE
- Help > Authorize Computer
- Select eBook Vendor: Adobe ID
- Enter your Adobe ID and Password
Create the dedrm_plugins
directory in Wine:
mkdir -p "$wine_install/drive_c/dedrm_plugins/"
Install PyCrypto in Wine:
curl -L http://www.voidspace.org.uk/python/pycrypto-2.6.1/pycrypto-2.6.1.win32-py2.7.exe \
-o /tmp/pycrypto.exe
wine /tmp/pycrypto.exe
Download adobekey.py
from DeDRM:
curl -L https://raw.githubusercontent.com/apprenticeharper/DeDRM_tools/Python2/DeDRM_plugin/adobekey.py \
-o "$wine_install/drive_c/dedrm_plugins/adobekey.py"
Extract key:
wine python "$wine_install/drive_c/dedrm_plugins/adobekey.py"
Your key file can be found at $wine_install/drive_c/dedrm_plugins/adobekey_1.der
Note: We need use the Flatpack version for Calibre (v5.x) and DeDRM v7.x (pre-release) which are both written for Python 3. This is because the RPM version of Calibre (v4.x) from the Fedora 32 repo uses Python 3. This makes it incompatible with DeDRM v6.8.0 (latest-stable) which was written for Python 2.
- Install Calibre via Software.
- Select the Flatpack format (v5.10.1)
- Download DeDRM v7.x (pre-release version) e.g.
DeDRM_plugin_7.0.3.zip
- Open the Calibre application
- Install DeDRM Plugin:
- Preferences > Plugins > Load plugin from file. Select the DeDRM
.zip
file you just downloaded. - Search for the plugin, click on Customize plugin
- Click on Adobe Digital Editions ebooks
- Click on Import Exiting Keyfiles
- Navigate to
$HOME/.adewine/drive_c/dedrm_plugins
- Select
adobekey_1.der
- Navigate to
- Preferences > Plugins > Load plugin from file. Select the DeDRM
- Open Adobe Digital Editions
- Drag-and-drop the
.acsm
file into the ADE window.- This will download the encrypted
.epub
file into$HOME/Documents/My Digital Editions
directory.
- This will download the encrypted
- Open Calibre
- Add the encrypted
.epub
file into Calibre.- You will find the unecrypted
.epub
file in your$HOME/Calibre Library
directory.
- You will find the unecrypted
You can open the uncrypted file with your preferred .epub
reader app, such as Foliate.
The voidspace pycrypto doesn't work anymore. The site just doesn't exist at all. pycryptodome is a drop in replacement supposedly