Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
2 answers
456 views
How to Wget with Subset Condition + generate CHM/... e-book?
I want to generate a CHM/... e-book by wgetting with a subset condition: download a subset of data recursively in the [website][1] that is within HTML class `.container` for a CHM book. Pseudocode 0. wget recursively all links of chapters # TODO returns only index.html wget --random-wait -r -p -nd -...
I want to generate a CHM/... e-book by wgetting with a subset condition: download a subset of data recursively in the website that is within HTML class .container for a CHM book. Pseudocode 0. wget recursively all links of chapters # TODO returns only index.html wget --random-wait -r -p -nd -e robots=off -A".html" \ -U mozilla https://wwwnc.cdc.gov/travel/yellowbook/2018/table-of-contents 1. Contents in the current main page in .container of Fig. 1 and contents in the daughter pages of links. 2. create CHM e-book and/or other format Fig. 1 Inspection of CDC Yellow Book .container enter image description here Output: just index.html Expected output: e-book CHM and/or other format Wget Proposals 1. TimS wget -w5 --random-wait -r -nd -e robots=off -A".html" -U mozilla https://wwwnc.cdc.gov/travel/yellowbook/2018/table-of-contents Output: same as with the first code. 2. With Rejection List wget -w5 --random-wait -r -nd -e robots=off -A".html" \ -U mozilla -R css https://wwwnc.cdc.gov/travel/yellowbook/2018/table-of-contents Output: same as without rejection lists. 3. Another variant wget -w5 --random-wait -r -nd -e robots=off -A".html" \ -U mozilla https://wwwnc.cdc.gov/travel/yellowbook/2018/table-of-contents Output: similar as before. The tool www.html2pdf.it gives > Cannot get http://wwwnc.cdc.gov/travel/yellowbook/2016/table-of-contents : http status code 404 OS: Debian 8.7
Léo Léopold Hertz 준영 (7138 rep)
Apr 19, 2016, 04:01 PM • Last activity: Mar 7, 2025, 10:36 PM
2 votes
1 answers
174 views
Flatpak-installed Calibre: cannot find ebook-convert command
On my Linux Mint 22 Cinnamon (Wilma) based on Ubuntu 24.04 LTS (Noble). I ended up installing Calibre in spite my initial dislike, via Flatpak: ```none $ flatpak install flathub com.calibre_ebook.calibre ``` The installation was successful, **but the the shell can't find the `ebook-convert` command*...
On my Linux Mint 22 Cinnamon (Wilma) based on Ubuntu 24.04 LTS (Noble). I ended up installing Calibre in spite my initial dislike, via Flatpak:
$ flatpak install flathub com.calibre_ebook.calibre
The installation was successful, **but the the shell can't find the ebook-convert command** (official manual page link ). *** Reasoning about choosing Flatpak version: At this point of time, reading upon the changelog here: https://calibre-ebook.com/whats-new It is obvious the developer(s) are very active. The packaged version is Release: 7.6 [01 Mar, 2024], whereas the Flatpak version is the latest available (Release: 7.20 [18 Oct, 2024]). In spite, I originally have thought I would only use the ebook conversion command, this software might *surprise me*,..
Vlastimil Burián (30505 rep)
Oct 21, 2024, 08:06 PM • Last activity: Oct 22, 2024, 06:52 AM
0 votes
3 answers
240 views
How to extract table of contents from fb2 book?
I have a book in fb2 format. I want to print the table of contents, containing names and numbers of "parts", "chapters", "episodes" and so on. Is there a way I can do this from terminal? There is a [similar question, but for epub format][1]. I know fb2 is an xml format. But is there a tool to extrac...
I have a book in fb2 format. I want to print the table of contents, containing names and numbers of "parts", "chapters", "episodes" and so on. Is there a way I can do this from terminal? There is a similar question, but for epub format . I know fb2 is an xml format. But is there a tool to extract only TOC? They are inside tags `, and `. If there is not, I guess it is possible to make xsl file based on official FB2_to_txt.xsl file. Also maybe ebook-convert could do this? The book that I am working on has the following structure:
fiction
      
        John
        Doe
      
      Fiction Book
      
        

Hello

john, doe, fiction 18.07.2011 en Fb2 Gem 18.07.2011 1.0

John Doe

Fiction Book

Part 1

Some name of Part 1

Chapter 1

Some name of Chapter 1

Episode 1

Line one of the first episode

Line two of the first episode

Line three of the first episode

Episode 2

Line one of the second episode

Line two of the second episode

Line three of the second episode

Part 2

Some name of Part 2

Chapter 3

Some name of Chapter 3

Episode 3

Line one of the third episode

Line two of the third episode

Line three of the third episode

Episode 4

Line one of the fourth episode

Line two of the fourth episode

Line three of the fourth episode

I want to get the following on the output:
Part 1
Some name of Part 1
Chapter 1
Some name of Chapter 1
Episode 1
Episode 2
Part 2
Some name of Part 2
Chapter 3
Some name of Chapter 3
Episode 3
Episode 4
Ashark (1069 rep)
May 4, 2023, 11:43 PM • Last activity: May 15, 2023, 03:05 PM
16 votes
3 answers
8085 views
Downloading a .epub from a .acsm
I want to transfer books I buy on Google Play (downloads a .acsm) to my Kobo reader device. Everything I can find on internet about it: - has you running Adobe Digital Editions - aims at removing the DRM I want to avoid both: I'm fine with the DRM as long as I can read the book on my device, and I d...
I want to transfer books I buy on Google Play (downloads a .acsm) to my Kobo reader device. Everything I can find on internet about it: - has you running Adobe Digital Editions - aims at removing the DRM I want to avoid both: I'm fine with the DRM as long as I can read the book on my device, and I don't want to run ADE through wine or otherwise (already lost hours trying that). I guess acsm -> epub "conversion" is mostly a download, but are there conversions/encryptions along the way ? There is an url in the `` tag in the .acsm, but also a lot of other parameters. Is there a way to download "manually" (without ADE) ?
Gnurfos (283 rep)
Oct 12, 2015, 12:35 PM • Last activity: Jun 5, 2022, 04:18 AM
4 votes
2 answers
1421 views
Uploading ebook files to a Kobo Aura One
https://www.kobo.com/desktop offers a software to handle ebook collections and upload it to Kobo ebook readers. Unfortunately, it works only on Windows and Mac. I am thinking on buying a Kobo ebook reader but it is not clear whether I can use Linux to manage my ebooks and upload them to the reader w...
https://www.kobo.com/desktop offers a software to handle ebook collections and upload it to Kobo ebook readers. Unfortunately, it works only on Windows and Mac. I am thinking on buying a Kobo ebook reader but it is not clear whether I can use Linux to manage my ebooks and upload them to the reader with a USB cable. What software do I need on Linux to connect to a Kobo ebook reader? Can I simply use it as an external drive?
Gergely (826 rep)
Nov 3, 2017, 07:13 PM • Last activity: Jan 19, 2021, 02:38 AM
10 votes
3 answers
14926 views
How to convert pdf to eBook format
Is there a way to convert a PDF document into an eBook format such as epub, azw or mobi? I am looking for an application, which is fast in conversion. I have just tried calibre. After 10 minutes not even 2% of the conversion have been reached. So please no calibre. CLI is preferred.
Is there a way to convert a PDF document into an eBook format such as epub, azw or mobi? I am looking for an application, which is fast in conversion. I have just tried calibre. After 10 minutes not even 2% of the conversion have been reached. So please no calibre. CLI is preferred.
ManuelSchneid3r (4455 rep)
Apr 26, 2013, 06:36 PM • Last activity: Nov 17, 2020, 12:55 PM
8 votes
2 answers
7459 views
How can I highlight text in Calibre?
according to a 4 year-old forum entry at Calibre, they started working on the feature of being able to highlight text, 4 years ago. Does anyone know how if it is implemented yet and how to use it?
according to a 4 year-old forum entry at Calibre, they started working on the feature of being able to highlight text, 4 years ago. Does anyone know how if it is implemented yet and how to use it?
user46399
Oct 30, 2013, 09:16 AM • Last activity: Oct 10, 2020, 08:06 AM
-1 votes
2 answers
1121 views
How to use wget to download an online eBook
sorry for my English.... I to try to Download [this][1] Ebook, I tried different methods with **Wget**, with wget --domains --no-parent https://www.oreilly.de/german/freebooks/linag3ger and wget --domains --no-parent https://www.oreilly.de/german/freebooks/linag3ger/418_LinuxIVZ.html Only Download t...
sorry for my English.... I to try to Download this Ebook, I tried different methods with **Wget**, with wget --domains --no-parent https://www.oreilly.de/german/freebooks/linag3ger and wget --domains --no-parent https://www.oreilly.de/german/freebooks/linag3ger/418_LinuxIVZ.html Only Download the Links for the Site. With, wget -r https://www.oreilly.de/german/freebooks/linag3ger/418_LinuxIVZ.html so, with recursive, Download all Webpage....more as 1GB.... I'll Download it, and late to convert it to PDF, as here to say. Can please someone help me, Thanks!
dsaj34v (177 rep)
Feb 23, 2020, 09:54 AM • Last activity: Feb 25, 2020, 09:59 AM
6 votes
3 answers
8097 views
Recommendation for an eBook reader for Gnome
There are eBook readers for Android, there's Okular for KDE, and stuff like that, but what I want, is an eBook (ePub format) reader for my normal Linux desktop. I know there's [Calibre][2], which goes way beyond being just an eBook reader, and theres [FBReader][1], Which doesn't really work as of ye...
There are eBook readers for Android, there's Okular for KDE, and stuff like that, but what I want, is an eBook (ePub format) reader for my normal Linux desktop. I know there's Calibre , which goes way beyond being just an eBook reader, and theres FBReader , Which doesn't really work as of yet. Given that eBooks have been around for several years now, I'd assume, more software would've sprung up by now.
polemon (11921 rep)
Oct 20, 2012, 05:14 AM • Last activity: Oct 17, 2019, 10:31 AM
5 votes
0 answers
11254 views
Lightweight PDF to mobi and epub converter for Ubuntu
By lightweight I mean NOT Calibre. Please. I do not need a cataloging/library management software- which would not only consume unnecessary disk space but also ignore my current cataloging which I have maintained for years. I just need a quick and dirty batch convert to epub or mobi without having t...
By lightweight I mean NOT Calibre. Please. I do not need a cataloging/library management software- which would not only consume unnecessary disk space but also ignore my current cataloging which I have maintained for years. I just need a quick and dirty batch convert to epub or mobi without having to deal with the myriad issues of using calibre. **Are there any simple PDF epub and PDFmobi conversion tools for Ubuntu?** There seems to be several for Windows based machines but strictly only calibre for Ubuntu.
NVAR (51 rep)
Jan 4, 2018, 07:02 AM • Last activity: Nov 21, 2018, 09:58 PM
4 votes
1 answers
130 views
Safely handling PDFs and other ebook formats on Linux
I'm running Arch Linux and using Okular for opening PDF files and FBReader for other ebook formats (Epub, Mobi, etc.). Simply put, here's my question: Assuming some of those documents come from unreliable sources and contain malicious code what can I do to mitigate the risk of compromising the syste...
I'm running Arch Linux and using Okular for opening PDF files and FBReader for other ebook formats (Epub, Mobi, etc.). Simply put, here's my question: Assuming some of those documents come from unreliable sources and contain malicious code what can I do to mitigate the risk of compromising the system and opening it for invasion (which can be a common occurrence in this country if you even smell like someone who holds opinions the government disapprove of)? A few more specific questions: Is just opening the referred files enough to put my setup at serious risk? The user I use for this is on the sudoers list, so, if compromised, it could be used for escalation. Suppose I only open the files using a more limited user account, would that at least help? Outside of setting up a virtual machine only for reading (which wouldn't be practical for a few reasons) or using another computer just for that (same thing), is there anything I can do?
Dave (41 rep)
Sep 1, 2018, 04:53 PM • Last activity: Sep 9, 2018, 08:28 AM
4 votes
2 answers
2345 views
Extract TOC of epub file
Lately I hit the command that will print the TOC of a `pdf` file. `mutool show file.pdf outline` I'd like to use a command for the `epub` format with similar simplicity of usage and nice result as the above for `pdf` format. Is there something like that?
Lately I hit the command that will print the TOC of a pdf file. mutool show file.pdf outline I'd like to use a command for the epub format with similar simplicity of usage and nice result as the above for pdf format. Is there something like that?
xralf (15189 rep)
May 19, 2016, 09:53 PM • Last activity: Feb 1, 2018, 03:58 PM
3 votes
2 answers
2299 views
.lit reader for Linux
Is there any reader for ebooks in .lit format for Linux? Or is there one for Windows that I can run on my Linux with Wine? Distro: openSUSE 12.2 x86_64 and Linux Mint 12 x86_64
Is there any reader for ebooks in .lit format for Linux? Or is there one for Windows that I can run on my Linux with Wine? Distro: openSUSE 12.2 x86_64 and Linux Mint 12 x86_64
missingfaktor (403 rep)
Oct 1, 2012, 07:58 AM • Last activity: Nov 8, 2017, 04:44 PM
0 votes
1 answers
589 views
Calibre (E book management) problem on Elementary OS Luna
I have had Calibre installed for some time now and it has always worked fine. Right now I tried to send a book from the Calibre library to my Kindle and I keep getting this message: calibre, version 0.8.38 ERROR: Error: Error communicating with device The reader has no storage card in this slot. Tra...
I have had Calibre installed for some time now and it has always worked fine. Right now I tried to send a book from the Calibre library to my Kindle and I keep getting this message: calibre, version 0.8.38 ERROR: Error: Error communicating with device The reader has no storage card in this slot. Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/device.py", line 81, in run self.result = self.func(*self.args, **self.kwargs) File "/usr/lib/calibre/calibre/gui2/device.py", line 411, in _upload_books metadata=metadata, end_session=False) File "/usr/lib/calibre/calibre/devices/usbms/driver.py", line 252, in upload_books path = self._sanity_check(on_card, files) File "/usr/lib/calibre/calibre/devices/usbms/device.py", line 978, in _sanity_check raise ValueError(_('The reader has no storage card in this slot.')) ValueError: The reader has no storage card in this slot. The book can't be sent to the device. I tried to remove Calibre and re-install it but it did not work. **Edit 1)** Immediately after plugging in the kindle and running lsusb i get: Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 004: ID 04f2:b307 Chicony Electronics Co., Ltd Bus 001 Device 007: ID 1949:0004 Lab126 Amazon Kindle 3 and after running dmesg | tail i get: [ 7202.714177] usb 1-1.2: new high-speed USB device number 7 using ehci_hcd [ 7202.829763] scsi8 : usb-storage 1-1.2:1.0 [ 7203.831695] scsi 8:0:0:0: Direct-Access Kindle Internal Storage 0100 PQ: 0 ANSI: 2 [ 7203.832255] sd 8:0:0:0: Attached scsi generic sg2 type 0 [ 7203.837580] sd 8:0:0:0: [sdb] 2846720 512-byte logical blocks: (1.45 GB/1.35 GiB) [ 7203.942275] sd 8:0:0:0: [sdb] Write Protect is off [ 7203.942287] sd 8:0:0:0: [sdb] Mode Sense: 0f 00 00 00 [ 7204.052235] sd 8:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 7204.323058] sdb: sdb1 [ 7204.551835] sd 8:0:0:0: [sdb] Attached SCSI removable disk
aksonai (3 rep)
Dec 16, 2014, 10:08 PM • Last activity: Dec 18, 2014, 10:12 AM
8 votes
1 answers
12909 views
Convert pdf file to epub
Is to possible to convert pdf file to epub format without errors? Is there some application in Linux that can do it? I found only Ecub and Calibre which give bad results or fail. A command-line application is sufficient. It's an ordinary pdf (not scanned), so OCR is not needed.
Is to possible to convert pdf file to epub format without errors? Is there some application in Linux that can do it? I found only Ecub and Calibre which give bad results or fail. A command-line application is sufficient. It's an ordinary pdf (not scanned), so OCR is not needed.
xralf (15189 rep)
Nov 7, 2011, 07:39 PM • Last activity: Sep 1, 2013, 07:48 PM
Showing page 1 of 15 total questions