User Tools

Site Tools


config:calibre

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
config:calibre [2020/04/07 17:10] Wulf Rajekconfig:calibre [2023/05/29 11:55] (current) – external edit 127.0.0.1
Line 13: Line 13:
 see https://bugs.launchpad.net/calibre/+bug/1760535 see https://bugs.launchpad.net/calibre/+bug/1760535
  
 +Autoupdate script:
 +https://www.mobileread.com/forums/showthread.php?t=237233
 +https://github.com/eli-schwartz/calibre-installer
  
-===== DeDRM Kobo =====+====== Calibre server autostart ======
  
-Source: https://medium.com/@angeldan1989/a-complete-guide-to-convert-kobo-to-epub-pdf-kindle-d8523197d927+Calibre content server systemd: 
 +https://manual.calibre-ebook.com/server.html
  
-Step 1. Download Kobo books to Computer/Kobo eReader first. +<code> 
-Downloading Kobo titles onto Kobo eReader or the Kobo desktop will download eBooks in .kepub format (and kepub drm), But downloading Kobo books from Kobo's official site ("My Books"), the file will be .acsm files (in fact they are .epub or .pdf, adobe adept drm adopted).+sudo vi /etc/systemd/system/calibre-server.service 
 +</code> 
 +<code - /etc/systemd/system/calibre-server.service> 
 +[Unit] 
 +Description=calibre content server 
 +After=network.target 
 +RequiresMountsFor=/path/to/calibre_library_directory 
 + 
 +[Service] 
 +Type=simple 
 +User=mylinuxuser 
 +Group=mylinuxgroup 
 +ExecStart=/opt/calibre/calibre-server "/path/to/calibre_library_directory" 
 + 
 +[Install] 
 +WantedBy=multi-user.target 
 +</code> 
 +<code> 
 +sudo systemctl start calibre-server 
 +</code> 
 +<code> 
 +sudo systemctl status calibre-server 
 +</code> 
 +To make it start at boot, run: 
 +<code> 
 +sudo systemctl enable calibre-server 
 +</code> 
 + 
 + 
 +====== DeDRM Kobo ====== 
 + 
 +Source: https://medium.com/@angeldan1989/a-complete-guide-to-convert-kobo-to-epub-pdf-kindle-d8523197d927 \\  
 +Source: https://medium.com/@angeldan1989/calibre-drm-removal-plugins-2019-remove-ebook-drm-with-calibre-4ec9c07cae80  \\  
 + 
 +Download Kobo books to Kobo desktop app/Kobo eReader first.\\  
 +Downloading Kobo titles onto Kobo eReader or the Kobo desktop will download eBooks in .kepub format (and kepub drm), But downloading Kobo books from Kobo's official site ("My Books"), the file will be .acsm files (in fact they are .epub or .pdf, adobe adept drm adopted).\\ 
  
 Note: .acsm files require the use of Adobe Digital Editions (Adobe ID) to deDRM. Note: .acsm files require the use of Adobe Digital Editions (Adobe ID) to deDRM.
  
 +===== Remove DRM from Kobo (KEPUB) =====
 +Required: obok_plugin v6.5.4 (https://www.epubor.com/download/obok_plugin.zip).\\ 
 +Load the kepub files into calibre.\\ 
 +By default the ebooks are stored in kepub format in ...\Kobo\Kobo Desktop Edition\kepub. \\ 
 +Run Calibre, and then add the obok_plugin.zip into Calibre via Preferences -> Plugins -> Load plugin from file\\ 
 +Restart Calibre; The plugin is available in the top menu bar.\\ 
 +Click on the plugin, it will show all your downloaded KEPUB books. Choose books and select “OK”.\\ 
 +
 +===== Remove Kobo DRM from Kobo ACSM =====
 +Use Adobe Digital Editions (Adobe ID with the same email address as your kobo account) to download the kobo acsm as ePub/PDF.\\ 
 +Download Calibre DeDRM_plugin.zip (v 6.6.3) http://download.epubor.com/DeDRM_plugin.zip and add it into Calibre. \\ 
 +Restart Calibre, import the kobo acsm books into the library and the DRM will be removed by the plugin automatically.\\ 
 +Adobe Digital Editions stores downloaded ebooks into ...\My Documents\My Digital Editions.
 +
 +If Calibre failed to find the correct Adobe adept key file, configure the via DeDRM plugin -> Customize plugin -> Adobe Digital Editions ebooks.\\ 
 +The plugin will list all the key files. If you used different Adobe ID to sync your books, there will be different key files.
  
-Step 2: Convert Kobo (KEPUB) to ePub/PDF/Mobi and Remove DRM.\\  +Make sure to use the same email address as your kobo account to authorize the Adobe ID.
-Tools we will need: Calibre; obok_plugin v6.5.4 (https://www.epubor.com/download/obok_plugin.zip). +
-Run Calibre, and then add the newly downloaded obok_plugin.zip into Calibre.+
  
-Preferences -> Plugins -> Load plugin from file 
  
-Once the plugin added well, restart Calibre, you will find it from the top menu bar.\\  +====== Calibre-Web ======
-Click on the plugin, it will show all your downloaded KEPUB books. Choose books and select “OK”.+
  
-Soon the kobo kepub drm removing begin. I must say that this plugin is so powerful that all kobo books drm will be finished within several seconds. From the right side area you will found that the drm free kobo books will be EPUB (not .kepub).+https://github.com/janeczku/calibre-web
  
-By this method we can extract kobo kepub to common ePub format.+<code> 
 +pip3 install APScheduler 
 +pip3 install calibreweb 
 +pip3 install advocate 
 +pip3 install flask-limiter 
 +</code>
  
 +/usr/local/bin/cps
  
-Step 2 (optional). Remove Kobo DRM from Kobo ACSM and convert formats.+    Launch web browser and write http://localhost:8083  
 +    Username: admin 
 +    Password: admin123
  
-What if I downloaded the kobo books from kobo library online (.acsm)? In this situation firstly use Adobe Digital Editions (Adobe ID, the same email address as your kobo account please) to download the kobo acsm as ePub/PDF please.+Service file for installation via pip
  
-Then, download Calibre DeDRM_plugin.zip (v 6.6.3) and add it into Calibre please. More info read my previous blog Calibre DRM Removal Plugins 2019 please. https://medium.com/@angeldan1989/calibre-drm-removal-plugins-2019-remove-ebook-drm-with-calibre-4ec9c07cae80  +If you want to get Calibre-Web started automatically after reboot follow this instructions 
 +Create a file cps.service as root in the folder /etc/systemd/system with the following content:
  
-Restart Calibre, choose the kobo books you want to convert. By defaultonce books added into the library, the drm will be removed soon, then you can continue to convert the formats by “Convert books” -> Output format selecting.+Replace the elements in {} like UserExecStart and WorkingDirectory with your username and fileand foldernames.
  
-But if you failed (Calibre failed to find out the corrent Adobe adept key file), find the newly added dedrm plugin -> Customize plugin -> Adobe Digital Editions ebooks.\\  +Find the location of the calibre-web starterfile cps, this should be something like /home/<user>/.local/bin/cps.  
-DeDRM -> Customize plugin -> Adobe Digital Editions ebooks\\  +Another option is using {path to correct pythoninstance} -m cps as starterfile.  
-Soon the plugin will list all the key filesThis meansif you used different Adobe ID to sync your books, there will be different key files.+The correct python instance depends on how you installed calibre-web (e.gvirtual environmentsystem interpreter)
  
-So make sure use the same email address as your kobo account to authorize the Adobe ID please, this is very importantAnd just because of this point, someone will get stuck with this method. Use correct Adobe ID and make sure you can open your kobo acsm with ADE please!+<code>sudo vi /etc/systemd/system/cps.service</code> 
 +<code> 
 +[Unit] 
 +Description=Calibre-Web
  
 +[Service]
 +Type=simple
 +User=root
 +ExecStart=/home/USER/.local/bin/cps
 +   
 +[Install]
 +WantedBy=multi-user.target
 +</code>
  
-The bottom line: Tips&More.+Enable the service 
 +<code> 
 +sudo systemctl enable cps.service 
 +</code> 
 +start the service 
 +<code> 
 +sudo systemctl start cps.service 
 +</code>
  
-  - Kobo books will be adopted in different drm scheme and format. In a word, if books are downloaded via Kobo its desktop app or eReader, Kobo unique drm and format — KEPUB; If books are downloaded via Adobe Digital Editions, they are bundled with Adobe DRM — ACSM. +extras: 
-  - Different DRM scheme, different Calibre plugin to be installed. But for 100% success to remove drm from kobo books, I highly recommend you use Kobo desktop app/eReader to download kobo books, not the ADE! Trust me it’s an easier method, saves your time much. +https://github.com/janeczku/calibre-web/wiki/Dependencies-in-Calibre-Web-Linux-Windows
-  - Where are my kobo books stored on my Mac or Win 10 computer? By default they are actually stored in kepub format in …\Kobo\Kobo Desktop Edition\kepub. If you download books via ADE, they are in … /My Documents/My Digital Editions. +
-  Why I need to convert Kobo books to ePub or PDF or Kindle mobi? You own your books, your own your devices, yes there is no need to convert the formats. Here I write down this blog is just for those people who want to back up/share their kobo books (for personal use), or who want to read purchased kobo eBooks on Kindle Paperwhite, or who want to read kobo books on non-Kobo apps! +
-  - Calibre and the plugins are free. But if you think it’s not so easy to use especially when loading plugin files to remove the drm, or if you met problems but didn’t find the answer, here is a good alternative — Epubor Ultimate. It’s paid software, but it’s 24 hour online customer service. What’s better, it automatically detects all the kobo books (both kepub and acsm epub), this saves our time to search the files location, right?+
  
  
 +Url for OPDS catalog:
 +http://localhost:8083/opds 
  
config/calibre.1586275820.txt.gz · Last modified: 2023/05/29 11:53 (external edit)