Calibre: Difference between revisions
Line 104: | Line 104: | ||
* Discover Magazine | * Discover Magazine | ||
The recipes files (*.recipe) and the <index.json> file are saved in $HOME/.config/calibre/custom_recipes. They can be loaded through 'Add custom news source' dialog. | The recipes files (*.recipe) and the <index.json> file are saved in '''$HOME/.config/calibre/custom_recipes'''. They can be loaded through 'Add custom news source' dialog. So backing up the ~/'Calibre Library' does not include the custom recipes. | ||
Tips | Tips |
Revision as of 12:29, 25 November 2020
Installation
$ sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin [sudo] password for brb: 2019-07-21 10:36:31 URL:https://download.calibre-ebook.com/linux-installer.sh [31301/31301] -> "-" [1] Using python executable: /usr/bin/python3 Installing to /opt/calibre Downloading tarball signature securely... Will download and install calibre-3.46.0-x86_64.txz Downloading calibre-3.46.0-x86_64.txz 100% [==============================================================================================================] Downloaded 62459384 bytes Checking downloaded file integrity... Extracting files to /opt/calibre ... Extracting application files... Creating symlinks... Symlinking /opt/calibre/lrfviewer to /usr/bin/lrfviewer Symlinking /opt/calibre/calibre-smtp to /usr/bin/calibre-smtp Symlinking /opt/calibre/ebook-polish to /usr/bin/ebook-polish Symlinking /opt/calibre/ebook-device to /usr/bin/ebook-device Symlinking /opt/calibre/lrs2lrf to /usr/bin/lrs2lrf Symlinking /opt/calibre/calibre-parallel to /usr/bin/calibre-parallel Symlinking /opt/calibre/fetch-ebook-metadata to /usr/bin/fetch-ebook-metadata Symlinking /opt/calibre/calibredb to /usr/bin/calibredb Symlinking /opt/calibre/calibre-customize to /usr/bin/calibre-customize Symlinking /opt/calibre/lrf2lrs to /usr/bin/lrf2lrs Symlinking /opt/calibre/ebook-viewer to /usr/bin/ebook-viewer Symlinking /opt/calibre/markdown-calibre to /usr/bin/markdown-calibre Symlinking /opt/calibre/calibre to /usr/bin/calibre Symlinking /opt/calibre/ebook-meta to /usr/bin/ebook-meta Symlinking /opt/calibre/web2disk to /usr/bin/web2disk Symlinking /opt/calibre/ebook-edit to /usr/bin/ebook-edit Symlinking /opt/calibre/calibre-server to /usr/bin/calibre-server Symlinking /opt/calibre/calibre-debug to /usr/bin/calibre-debug Symlinking /opt/calibre/ebook-convert to /usr/bin/ebook-convert Setting up command-line completion... Installing zsh completion to: /usr/share/zsh/vendor-completions/_calibre Installing bash completion to: /usr/share/bash-completion/completions/calibre Setting up desktop integration... Creating un-installer: /usr/bin/calibre-uninstall Run "calibre" to start calibre
By default, your books are saved in $HOME/Calibre Library folder.
Note
- "-nv" means non-verbose output
- "-O-" means output to stdout. It is the same as "-O -". See what is -O- option means for wget? The dash "-" means standard input or standard output (this case). See here or Download and Un-tar(Extract) in One Step.
- As we can see from the screen message when we run the command again, it (linux-installer.sh) will not download the file again. In fact the file is saved under /tmp/calibre-installer-cache/.
$ ls -lth /tmp/calibre-installer-cache/ total 60M -rw-r--r-- 1 root root 60M Jul 21 10:35 calibre-3.46.0-x86_64.txz -rw-r--r-- 1 root root 128 Jul 21 10:35 calibre-3.46.0-x86_64.txz.signature
- when we include sudo -v at the beginning, it will prompt us to enter the sudo password immediately. However, if we don't have sudo -v at the beginning, the prompt stays at a strange location when it is asking the sudo password.
$ wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin [sudo] password for brb: 2019-07-21 10:35:41 URL:https://download.calibre-ebook.com/linux-installer.sh [31301/31301] -> "-" [1] Using python executable: /usr/bin/python3 ...
Error on Ubuntu 20.04.1
$ calibre qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb. Aborted (core dumped)
Calibre 5.0.1 Could not load the Qt platform plugin "xcb" FIXED. After I installed just one missing component libxcb-xinerama0, then it works.
Create ebooks
https://itsfoss.com/create-ebook-calibre-linux
Fetch News and recipes
- How to Get Free Magazines on Your Kindle with Calibre 2/19/2018.
- The news can be scheduled to download once per day (e.g. 6AM).
- The advantage is you can read articles offline once the news has been automatically sent to Kindle. Also you can search the definition or the translation of any word in articles. The disadvantage is you can't download the latest minutes news after the scheduled time.
- Remember to change the Preferred Output Format to Mobi (its default is EPUB) through Preferences->Behavior->Default output format.
- gmx email sometimes cannot login.
- Gmail works fine. See this instruction. Hostname: imap.gmail.com, Port: 465, Encryption: SSL. Enable Less secure app access in your Goggle account settings under 'Security'.
- These emails in the Send folder will take a lot of space because of these mobi files in attachment. To delete them, click 'Send' and select the checkbox. By default, it only select 50 emails. Pay attention to some blue text (Select all XXX conversations in Sent Mail) below the icons row and it will allow us to select all sent emails. After we select this option, we still need to go to the 'Trash' folder and empty it (blue text).
- The fetched files (mobi) are located under /home/$USERNAME/Calibre Library/calibre/.
- http://manual.calibre-ebook.com/news.html
- https://michaeltalbotuk.wordpress.com/2013/03/23/how-to-use-calibre-to-read-newspapers-magazines-for-free/
- To customize a builtin recipe: Add custom news source -> Customize builtin recipe.
Some RSS feeds
- Top Chinese News RSS Feeds
- https://www.makeuseof.com/tag/top-10-rss-feeds-medical-news-alerts/
- https://udn.com/rssfeed/lists/2 聯合新聞網udn/新聞RSS, https://health.udn.com/rss/lists/1005/5681?ch=news 元氣網, https://health.udn.com/rss/news/1005/5681/6008?ch=health 元氣網/健康知識
- 自由電子報 (38MB so better selectively eg 國際 副刊) , Readers Digest (38MB), USA Today (6MB), Associated Press (8MB), National Geography (11MB), Newsweek (5MB, include a cover), Smithsonian Magazine (16MB) , TIME Magazine (username/password is required), xkcd (2MB), BBC News (4MB), Popular Science (1.6MB), The Washington Post (8MB), ScienceDaily (1.2MB)
- U.S.News https://www.usnews.com/info/features/rss-feeds
- 華人健康網 https://www.top1health.com/RSS
- Popular Science https://www.popsci.com/arcio/rss/
Builtin feeds that do not work
- US and World Report news
- Wired Magazine (monthly ed)
- Discover Magazine
The recipes files (*.recipe) and the <index.json> file are saved in $HOME/.config/calibre/custom_recipes. They can be loaded through 'Add custom news source' dialog. So backing up the ~/'Calibre Library' does not include the custom recipes.
Tips
- Calibre will show the file size for each title/recipe. If the title is too large, send to kindle may not work (>40MB not work but 27MB works)
- If we have multiple files to send, it will wait 301 seconds before sending for the 2nd one, to avoid being marked as spam. You can control this delay via Preferences->Tweaks
- Each recipe has two parameters: oldest article (how many days) and max # of articles per feed (default is 100). Since all recipes are scheduled to download every day, I can set 1 day for the oldest article.
A commercial service Keendly does it for a fee.
Autostart Calibre after a reboot
Two steps:
Remove a schedule download
Check the checkbox 'Schedule for download' at the top of source.
Some news source
- The 8 Best Free Alternatives to The New York Times
- Top 5 Unbiased World News Sources Free From Censorship
- 5 Smart Ways to Read Long Articles Quickly Instead of Hoarding Them
Command line
- https://manual.calibre-ebook.com/generated/en/cli-index.html
- https://manual.calibre-ebook.com/generated/en/ebook-convert.html
- https://manual.calibre-ebook.com/faq.html?highlight=author_sort#i-want-calibre-to-download-news-from-my-favorite-news-website
- https://askubuntu.com/a/49899, https://manual.calibre-ebook.com/news.html
ebook-convert ~/.config/calibre/custom_recipes/(your recipe) test.epub --test -v -v ebook-convert myrecipe.recipe test.epub --test -vv
Troublshooting
- Install a copy of Calibre on my local computer. Import the recipe files downloaded from the remote server.
- Enable VNC on the remote server. Or run Calibre on my local computer.
Reabble
- https://reabble.cn/help
- Because of this feature Calibre can replace the Reabble service. The free plan can only download 7 news per day.
ebook format
- pobi: this is a Kindle Store Magazine Ebook Format when Calibre generated and sent is to my Kindle. POBI is a variation of MOBI and enables the display of articles and sections in periodical content. NOTE: If you change the POBI extension to MOBI then the Sections & Articles index of the magazine will not appear.
- azw3: this is the format for the books I purchase from Amazon, or using the browser extension to send it to my kindle
Get books
How to turn a Raspberry Pi into an eBook server
Remove DRM from Ebooks
- https://www.makeuseof.com/tag/remove-drm-every-ebook-own/
- https://www.makeuseof.com/tag/ways-to-remove-drm-from-ebooks/
Calibre Ebook Server
- Ubuntu 14.04
- Ubuntu 16.04
- Calibre is awesome... Calibre Server is not
- How to Install Calibre Ebook Server on Ubuntu 20.04
Other ebook reader
- Foliate. How to Install and Use Foliate Ebook Reader on Linux, Foliate is an Epic eBook Reader for Linux Desktops (Updated), Linux eBook Reader Foliate 2.2.0 Adds Library View, eBook Discovery And Support For Comic Books
- Question: on Lubuntu 18.04, if I install the flatpak package I cannot find it after I installed it?
- Solution: Don't install the flatpak binary. There is a deb package (version 2.1.1) available that works fine. https://github.com/johnfactotum/foliate/releases. Tip: enable sidebar to get a table of contents.
- sudo apt install okular The table of contents icon on the sidebar is grayed out on the document created by Calibre.
- sudo apt install fbreader (too old)
- Bookworm: The following packages have unmet dependencies: bookworm : Depends: com.github.babluboy.bookworm but it is not going to be installed.
RSS feeder
The Best RSS Readers and News Aggregation Apps: Feedly and Inoreader.
Browser extension: FeedPro for FF, Chrome and and other Chromium-based browsers like Edge and Vivaldi.
Feedly
How to Import or Export Feedly OPML File of All Subscriptions
Create RSS feeds
- How to Find or Create an RSS Feed for Any Website. The trick to create an rss feed does not work by using the fivefilters service on https://kknews.cc/health/ (attribute name: loop-title)
- http://fetchrss.com/ works on https://kknews.cc/health/. Be skillful when using the mouse to select a new item, headline and summary. Free plan only got 5 RSS feeds and 5 news per feed.
- https://www.wikihow.com/Create-an-RSS-Feed
- https://www.makeuseof.com/tag/how-to-create-an-rss-feed-for-your-site-from-scratch/
Scribus
Design a book cover with an open source alternative to InDesign
ebook store
Where to Buy Ebooks: 10 Online Ebook Stores Worth Using