Running calibre ver 4.23 or ver 5.0.1 in Fossapup64_9.5
Moderators: 666philb, Forum moderators
-
- Posts: 53
- Joined: Mon Aug 10, 2020 1:28 pm
- Has thanked: 67 times
- Been thanked: 25 times
Running calibre ver 4.23 or ver 5.0.1 in Fossapup64_9.5
Like today's constantly changing web browser requirements, newer calibre software
requires newer support software !
(Note: calibre version 3.x uses the qt4 framework but version 4.x and 5.x
and newer requires qt5.)
It is always a good idea to make a backup copy of your Puppy system (savefile, etc.)
before making changes !
Trying calibre 4.23 to view an ebook from my existing calibre database, gives the error message:
...... Running as root without --no-sandbox is not supported ....
I found I could use a simple script to make calibre version 4.23
and newer work (somewhat like the apulse firefox script technique)
Note: Fossapup64_9.5 Quickpet now installs the latest calibre version: 5.0.1
Trying calibre 5.0.1 ebook-viewer to display an ebook, gives the error message:
...... Failed to connect to DBUS session bus .....
...... Not Supported .... set your DBUS_SESSION_BUS_ADDRESS instead ....
I found an additional line is needed in the simple script to make calibre
version 5.01 work.
These simple script options were suggested by hints here:
https://www.mobileread.com/forums/showt ... p?t=324079
and here: https://stackoverflow.com/questions/476 ... in-booting
I made two scripts, one for calibre and the second for its ebook-viewer and
put the scripts in /opt (rather than /opt/calibre in case future installs of
calibre clear out the /opt/calibre directory.)
no-sandbox-calibre.sh
#!/bin/sh
cd /opt/calibre
export $(dbus-launch)
QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox" calibre "$@"
no-sandbox-ebook-viewer.sh
#!/bin/sh
cd /opt/calibre
QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox" ebook-viewer "$@"
I dragged each of these scripts from /opt to my ROX pinboard (desktop).
Now, I can drag an individual data file (.txt, .mobi, or .epub) to the
no-sandbox-calibre.sh ROX icon for possible changing the book's cover
picture and/or do an ebook format conversion and/or viewing the
result of the data conversion.
And I can drag an individual data file (.mobi or .epub) to the
no-sandbox-ebook-viewer.sh ROX icon to be able to display and read that ebook.
My use of calibre and its ebook-viewer are simple, so someone else may
find more errors and/or have a better way of making calibre 4.23
and/or calibre 5.0.1 work in Fossapup64_9.5.
Hope this helps someone.
- 666philb
- Posts: 429
- Joined: Thu Jul 09, 2020 3:18 pm
- Location: wales uk
- Has thanked: 111 times
- Been thanked: 149 times
Re: Running calibre ver 4.23 or ver 5.0.1 in Fossapup64_9.5
bit of a late reply but this now fixed thanks to your links .
quickpet >>> fossapup updates (note that it may require a reboot).
the fix i used was creating a new file in /etc/profile.d and added
Code: Select all
export QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox"
i've also enabled dark mode as default. if you don't like it then edit or remove /etc/profile.d/calibre-darkmode
fossapup64 viewtopic.php?f=40&t=88
-
- Posts: 53
- Joined: Mon Aug 10, 2020 1:28 pm
- Has thanked: 67 times
- Been thanked: 25 times
Re: Running calibre ver 4.23 or ver 5.0.1 in Fossapup64_9.5
Thank you, 666philb, for Fossapup64_9.5 and both the "tweaks" to permit calibre
use on Fossapup64_9.5 and the ability to allow calibre to self
update via Fossapup64_9.5's Quickpet menu.
(At my own limited Linux skill, I had never heard of /etc/profile.d
but some other people hadn't either:
https://unix.stackexchange.com/question ... ofile-d-do)
I have calibre loaded on a number of my "dumpster find (or tip find)"
computers on a number of my kennel of different versions of Puppy Linux:
my Puppy version===>my Calibre version
Fossapup64===>5.5.0 (as of Nov 2020)
bionicpup64-8 ===>3.40.1
DpupStretch_RC4 ===>3.33.1
tahr-6.0.6 ===>2.18
Xenial-7.5===>3.33.1
precise-light-5.7.2 ===>3.33.1
slacko-6.3.2 ===>2.18
WinXP ===>1.48
Win10 ===>5.5.0 (as of Nov 2020)
MAC OS X Tiger PowerPC===>0.7.28
Somewhat like browser versions being limited by the version of the
supporting Puppy Linux libraries, only your Fossapup64 allows the newest
version of calibre to self update.
Thanks again.