03-14-2020, 06:02 PM | #1 |
Connoisseur
Posts: 79
Karma: 10
Join Date: Sep 2016
Location: Missouri, USA
Device: Kindle Oasis 2, iPhone 11 Pro Max, iPad 6th Gen
|
Choosing a Linux distribution for Calibre
I have posted recently about setting up the Calibre content server on a Raspberry Pi with Raspbian as the Linux distro. This works, but it limits me to an older version of Calibre (from what I understand, a limitation of Debian).
Does anyone know of a Linux distribution that will A) run on a Raspberry Pi 4, and B) allow me to install Calibre 4? Thanks in advance! mdclanahan |
03-14-2020, 06:20 PM | #2 |
cosiñeiro
Posts: 1,271
Karma: 2200049
Join Date: Apr 2014
Device: BQ Cervantes 4
|
|
03-14-2020, 09:21 PM | #3 | |
Addict
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
|
Quote:
You just need to install the current version from the calibre site, not the one packaged with the distro. https://calibre-ebook.com/download_linux |
|
03-14-2020, 10:05 PM | #4 | |
Connoisseur
Posts: 79
Karma: 10
Join Date: Sep 2016
Location: Missouri, USA
Device: Kindle Oasis 2, iPhone 11 Pro Max, iPad 6th Gen
|
Quote:
"You are running on an ARM system. The calibre binaries are only available for x86 systems. You will have to compile from source." |
|
03-14-2020, 10:12 PM | #5 |
Addict
Posts: 281
Karma: 7724454
Join Date: Sep 2017
Location: Bethesda, MD, USA
Device: Kobo Aura H20, Kobo Clara HD
|
|
04-09-2020, 03:55 PM | #6 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Mar 2015
Device: Kindle Keyboard and Asus MeMo 10 Smart Tablet
|
Quote:
|
|
04-11-2020, 10:49 AM | #7 |
Connoisseur
Posts: 79
Karma: 10
Join Date: Sep 2016
Location: Missouri, USA
Device: Kindle Oasis 2, iPhone 11 Pro Max, iPad 6th Gen
|
|
04-11-2020, 11:43 AM | #8 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The solution is in the very first response in this thread. use arch linux arm it has up to date calibre.
|
05-07-2020, 10:07 AM | #9 |
Connoisseur
Posts: 79
Karma: 10
Join Date: Sep 2016
Location: Missouri, USA
Device: Kindle Oasis 2, iPhone 11 Pro Max, iPad 6th Gen
|
|
05-07-2020, 11:31 AM | #10 |
the rook, bossing Never.
Posts: 11,166
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Assuming you know how to put Ubuntu on a Pi. Then you need to build Calibre.
Personally I lost interest in Ubuntu nearly 10 years ago. For a Raspberry Pi the Arch linux may be best. For x86-32 or x86-64, Linux Mint. There is or was difficulty on installing on low end Win10 Atom tablets, because while 64 bit linux runs fine, the EFI is 32 bit. So you either use Debian, or copy the 32 bit EFI files into the ISO for Mint 64 bit. This involves unpacking the ISO, or mounting a copy as RW and adding the files, then repackaging the ISO. The best choices of distro for the Pi (ARM) are not going to be the same as for an x86 platform. AFAIK, Kovid's site only offers the x86 versions for Linux, MacOS and Windows. |
05-07-2020, 11:50 PM | #11 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
05-08-2020, 05:31 AM | #12 |
the rook, bossing Never.
Posts: 11,166
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
|
10-24-2021, 05:34 AM | #13 |
Member
Posts: 12
Karma: 40
Join Date: Jan 2017
Device: Pocketbook, Tolino, Sony
|
I just managed to upgrade my Raspberry OS from "buster" to "bullseye".
It took some time and effort because I'm no Linux crack, but eventually it's running fine. So it can be done. I just did it step by step with much searching/reading solutions on the net, which told me there are many other people doing this. My trying the Manjaro distro where frustrating, the img files didn't even start on my Pi 3b+. Arch was just to much for me. So now I have Raspbian OS 'Bullseye' and the version of calibre in it's repos is 5.12. I'm mainly using the caliber-server and I'm very glad to'd manage this task. Thanks and donations are going to Kovid. What a fine peace of software he's created! |
11-15-2021, 03:54 AM | #14 |
Member
Posts: 12
Karma: 40
Join Date: Jan 2017
Device: Pocketbook, Tolino, Sony
|
The upgrade is now simpler. Raspberry OS 'Bullseye' is officially released.
---------------------------- Read Kovids help file: https://manual.calibre-ebook.com/ind...content-server and: https://manual.calibre-ebook.com/gen...re-server.html ---------------------------- install calibre: Code:
sudo su apt update apt install calibre Create a service file for systemd (adapt to your needs): /etc/systemd/system/calibre-server.service: Code:
[Unit] Description=calibre content server After=network.target [Service] Type=simple PIDFile=/home/pi/.calibre-server.pid User=pi Group=pi ExecStart=/usr/bin/calibre-server \ --listen-on 0.0.0.0 \ --enable-auth \ --auth-mode=basic \ --port=8081 \ --pidfile=/home/pi/.calibre-server.pid \ --userdb="/home/pi/.config/calibre/server-users.sqlite" \ "/home/pi/MyBooks(Pi)" Restart=on-failure [Install] WantedBy=multi-user.target To start calibre-server at system start: Code:
sudo systemctl enable calibre-server Code:
sudo systemctl start calibre-server Now, as you're running, what about to start the calibre GUI with this very library? You have to stop the calibre-server first, there can't be multi user access to the library = data bank. Therefore I made a dektop icon to start the calibre Gui. It stops the calibre-server, runs the GUI and restarts the server after closing the GUI. There are two parts. 1) A script which does what is needed: StartCalibreGUI: Code:
#!/bin/sh USER='pi' SERVICE='calibre-server' PID_FILE=/home/pi/.calibre-server.pid # we need to stop $SERVICE before # running the GUI if [ -f $PID_FILE ]; then sudo systemctl stop $SERVICE elif pgrep -f $SERVICE >/dev/null; then sudo systemctl stop $SERVICE else echo "\n $SERVICE was not running" fi # start calibre GUI /usr/bin/calibre # after terminating the GUI # restart $SERVICE sudo systemctl start $SERVICE if [ $? -eq 0 ]; then exit 0 echo "$SERVICE was restarted" else echo "\n FAIL - $SERVICE is NOT running." echo " Something went wrong." sleep 30 exit 1 fi 2) A desktop icon which represents: /home/pi/Desktop/!calibre!.desktop: Code:
[Desktop Entry] Type=Link Name=! Calibre ! Icon=calibre-gui # opens a terminal window to see whats going on # working-dir: where the start script (StartCalibreGui) is Exec=lxterminal -t "starting calibre GUI..." --working-directory=/home/pi/.scripts/ -e StartCalibreGUI Type=Application Encoding=UTF-8 Terminal=false Comment=stops calibre server and restarts after closing the GUI StartupNotify=true You may have similar shortcuts on your Windows desktop - as I have on my Windows DT to achieve the same result: Close the calibre-server before opening the Calibre GUI and restart the server after closing the GUI: CalibreStopStart.cmd: Code:
@echo off set PATH=D:\PortableApps\portable_putty;%PATH% plink.exe -batch -i "G:\my\Eigene Dateien\PuttyPrivate.ppk" -P 22 pi@192.168.178.18 /home/pi/.scripts/StopStartCalibreServer stop REM Start Calibre GUI "W:\Calibre Portable\calibre-portable.exe" echo( echo ***************************************** echo ***************************************** echo *** *** echo *** Calibre GUI is now RUNNING! *** echo *** *** echo ***************************************** echo ***************************************** echo( echo To restart the content server & echo( echo *** terminate Calibre GUI *** & echo( echo and hit any key. & echo( PAUSE >nul echo Starting... plink.exe -batch Rasp_StartStopCalibreSrv |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
This guy wants to make Calibre assist in illegal distribution of ebooks | whitearrow | Calibre | 49 | 08-13-2018 09:51 PM |
Choosing which file types Calibre looks for on the device | Squigatoo | Devices | 4 | 12-27-2014 02:45 PM |
[Linux] Calibre on Linux isn't detecting any of my Android devices | Amogh Harish | Devices | 9 | 10-31-2012 05:45 AM |
linux distribution... when will they catch on? | Justice Strike | Reading and Management | 5 | 09-15-2009 12:32 PM |