there is an alternative way, which I'd like to share:
Adobe eBooks on (K)ubuntu Linux + DeDRM
[Tags]: [libgourou, acsm, Adobe Digital Editions, DeDRM, Linux, Kubuntu, Ubuntu]
Linux solution (without Wine or Windows)
Step 1 Get the sources
code bash
git clone https://forge.soutade.fr/soutade/libgourou.git
Copy the sources, e.g., to /home/user/userprograms/ or another directory of your choice.
Reference:
https://askubuntu.com/questions/1470645/transfert-my-legally-borrowed-e-books-to-my-kobo-e-reader
There also seems to be a Docker solution:
https://github.com/bcliang/docker-libgourou
Step 2 Prerequisites
code bash
sudo apt update
code bash
sudo apt install libcurl4-openssl-dev libssl-dev libzip-dev libpugixml-dev build-essential
- libcurl4-openssl-dev, libssl-dev, libzip-dev, libpugixml-dev --> These are the development files for the external libraries that libgourou requires.
- build-essential --> This package contains important development tools like make and gcc, which are necessary to compile the code.
Step 3 Compile Libgourou
Change to the directory where you cloned the source code and compile libgourou:
cd /home/user/userprograms/libgourou
make
This command compiles the library and utilities.
Step 4 Update internal libraries (optional, but recommended for updates)
If you update the libgourou source code (e.g., with git pull), you should also update the internal libraries:
make update_lib
Step 5 Install Libgourou
After successful compilation, you can install the library and utilities on your system.
By default, they will be installed in /usr/local.
sudo make install
Step 6 Set environment variable (for using the utilities)
For the libgourou utilities (utils) to find the library, you need to add the path to libgourou.so to your LD_LIBRARY_PATH. The easiest way to do this is permanently.
Open your shell configuration in your home directory with a text editor:
nano ~/.bashrc
or
nano ~/.zshrc
Add the following line to the end of the file:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
Apply the changes by reloading .bashrc or .zshrc:
source ~/.bashrc
or
source ~/.zshrc
Step 7 Using the utilities
The compiled utilities can now be found in the /usr/local/bin directory (unless you used a different PREFIX during installation) or directly in the utils directory if you want to run them from there.
With
code bash
adept_activate -h
you will get a list of possible options. In the following there are some examples of how to use the utility.
Step 8 Activate device (with your AdobeID)
Bash
adept_activate -u YOUR_ADOBEID_EMAIL -p YOUR_ADOBEID_PASSWORD
This typically creates a /home/user/.config/adept directory with your configuration files.
Example Output:
''user.name@mail.com fully signed and device activated in /home/user/.config/adept/''
'''Alternative Activation:''' with email only
adept_activate -u YOUR_ADOBEID_EMAIL
The program will then prompt you to enter the password.
After successful execution, a directory named .config/adept (by default in your home directory) will be created, containing the configuration files for your activated device. These files are used by libgourou and its utilities to manage DRM-protected books.
Step 9 Download ACSM file:
Bash
acsmdownloader /PATH_TO_YOUR_ACSM_FILE/book.acsm
e.g.: bookxyz-pdf.acsm
--> Resulting file depending on ACSM type (epub or PDF); e.g. "bookxyz.pdf"
Step 10 Remove DRM
code
adept_remove
e.g.: adept_remove bookxyz.pdf
Output: DRM removed from bookxyz.pdf
Note:
DRM removal is only permitted for private use, provided the book was legally acquired. You must refer to the contract with Adobe for the exact terms!
Reference:
Transfert my legally borrowed e-books to my Kobo e-reader
There also seems to be a Docker solution:
https://github.com/bcliang/docker-libgourou