![]() |
#1 |
Member
![]() Posts: 11
Karma: 10
Join Date: May 2020
Device: linux
|
me idiot updated calibre
Hi,
I don't know why but I thought it would be a good idea to update calibre, but it turned out to be stupid to break the rule don't touch a running system. I am on Debian 9 and was on Calibre 3. Now that I updated (via wget... linux-installer.sh) not only my complete configuration was overwritten with 'start from scratch' but the ebook-viewer doesn't open anymore (out of the GUI) . If I try to start it with /opt/calibre/bin/ebook-viewer I get an error msg: /opt/calibre/bin/ebook-viewer: error while loading shared libraries: libcalibre-launcher.so: cannot open shared object file: No such file or directory ro Now I regret being so naive. thinking that updating is a good idea, although I should have known better. It is dangerous. Anybody has an idea what caused the problem? Last edited by bellalugosi; 05-20-2020 at 08:52 AM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need to run /opt/calibre/ebook-viewer
|
![]() |
![]() |
![]() |
#3 |
Member
![]() Posts: 11
Karma: 10
Join Date: May 2020
Device: linux
|
Thanks for the hint.
If I do that I get an error saying running as root without - - no-sandbox is not supported. If I add no-sandbox it says 'no such option'. So, Gui working, Database working, but viewer not working - as root. Does that make sense? |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
why are you running as root? Dont do that.
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 11
Karma: 10
Join Date: May 2020
Device: linux
|
because it is the easiest.
no security needed. |
![]() |
![]() |
![]() |
#6 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,313
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
And if you leave your doors unlocked, it's easier as well. You want to make the malefactor do some work.
You might want to check this thread: New ebook-viewer in Linux - problem running as root Last edited by DNSB; 05-20-2020 at 02:10 PM. |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,853
Karma: 13432974
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro, Boox Note Max
|
Bad idea, which makes me wonder what else you might have done.
Running as a non-priviledged user has other non-security related benefits as well, such as not accidentally messing up a system file, not having a broken or malicious program blow away your whole system, etc. |
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,010
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
|
Running applications as root also tends to scramble your user profile. That's probably why your calibre configuration was lost -- it can't find it because it is confused which user it should be pulling it from.
Likely the permissions on your account profile are also wrong now. Running applications as root is NOT easier. It just makes a mess. |
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 11
Karma: 10
Join Date: May 2020
Device: linux
|
Thank you for the link ebook-viewer in Linux - problem running as root. It helped setting the environment variable so that the viewer will show up as root, as it always was. Qt5, so many things...
And by all gods, why do always - if you say you run a system as root - the educators come out of their caves waving their fingers. I said I have my reason isn't thst enough? I do it fir 20 years now, nothing ever happened, the computer is for nothing but playing around, has no internet, no one has access to it. And guess what, I know about backups. For every reason you say it's dangerous there is a method to fix it. So just leave those noobs alone with their silly and ridiculous root access. Thank you. |
![]() |
![]() |
![]() |
#10 | ||
Member
![]() Posts: 11
Karma: 10
Join Date: May 2020
Device: linux
|
Quote:
Quote:
Not true in my case |
||
![]() |
![]() |
![]() |
#11 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,313
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#12 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,853
Karma: 13432974
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro, Boox Note Max
|
Quote:
If I want to manage those files I have to change to that user to make changes -- this way my day to day user cannot accidentally mess them up, either via a brain-dead mistake, or via a buggy or malicious application. |
|
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,339
Karma: 238311259
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
I have no idea about Linux, but I cannot imagine using Windows without admin access, and have not done so in all the years I've had personal computers. Can you even update Calibre with an ordinary user account?
|
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,339
Karma: 238311259
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,853
Karma: 13432974
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro, Boox Note Max
|
Quote:
You can have multiple full GUI environments running at once, each as a different user, if you want, and switch almost instantly with a very simple <CTRL><ALT><F#> (where # is the virutal desktop it's running on) keystroke, or if you're a command line user like me you can just open a terminal and prefix your modifying commands with (sudo -u <user> <command>), which is basically the same way that you get administrator (root) permissions, you prefix commands with sudo. If you want to run a single GUI program as one user and another GUI program as another user on the same GUI desktop you can. Remember, I do this for files that are not actively changing and I don't want to get messed up, so it's not an every-day thing, but ensures that I cannot mess up my long term archived files by accident. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Automatically Keep Calibre Updated? | GeekDrop | Calibre | 25 | 03-23-2019 09:51 AM |
I updated metadata in Calibre, but books aren't updated on Ipad | Marky Marc | Library Management | 18 | 01-20-2019 09:03 PM |
[OSX] Updated to Calibre 2.73 and am now stuck | ljrkrispes | Calibre | 0 | 11-27-2016 09:14 AM |
Updated Calibre but old version still comes up.. | trooperchix | Calibre | 7 | 07-26-2012 05:36 AM |
Updated Calibre driver | timlegge | Kobo Reader | 0 | 11-20-2010 08:21 PM |