Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-20-2020, 08:47 AM   #1
bellalugosi
Member
bellalugosi began at the beginning.
 
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.
bellalugosi is offline   Reply With Quote
Old 05-20-2020, 10:32 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to run /opt/calibre/ebook-viewer
kovidgoyal is offline   Reply With Quote
Old 05-20-2020, 12:08 PM   #3
bellalugosi
Member
bellalugosi began at the beginning.
 
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?
bellalugosi is offline   Reply With Quote
Old 05-20-2020, 12:57 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
why are you running as root? Dont do that.
kovidgoyal is offline   Reply With Quote
Old 05-20-2020, 02:02 PM   #5
bellalugosi
Member
bellalugosi began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2020
Device: linux
because it is the easiest.
no security needed.
bellalugosi is offline   Reply With Quote
Old 05-20-2020, 02:06 PM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,313
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by bellalugosi View Post
because it is the easiest.
no security needed.
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.
DNSB is offline   Reply With Quote
Old 05-20-2020, 02:08 PM   #7
twowheels
Wizard
twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.
 
twowheels's Avatar
 
Posts: 1,853
Karma: 13432974
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro, Boox Note Max
Quote:
Originally Posted by bellalugosi View Post
because it is the easiest.
no security needed.
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.
twowheels is offline   Reply With Quote
Old 05-21-2020, 08:52 AM   #8
compurandom
Wizard
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
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.
compurandom is offline   Reply With Quote
Old 05-21-2020, 09:40 AM   #9
bellalugosi
Member
bellalugosi began at the beginning.
 
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.
bellalugosi is offline   Reply With Quote
Old 05-21-2020, 09:44 AM   #10
bellalugosi
Member
bellalugosi began at the beginning.
 
Posts: 11
Karma: 10
Join Date: May 2020
Device: linux
Quote:
Originally Posted by compurandom View Post
Running applications as root also tends to scramble your user profile. That's probably why your calibre configuration was lost
maybe yes I don't know.

Quote:
Originally Posted by compurandom View Post
Likely the permissions on your account profile are also wrong now.
no they are not

Quote:
Originally Posted by compurandom View Post
Running applications as root is NOT easier. It just makes a mess.
Not true in my case
bellalugosi is offline   Reply With Quote
Old 05-21-2020, 01:45 PM   #11
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,313
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by bellalugosi View Post
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.
The main issue for me is that it encourages bad habits. What I do on my computers at home tends to be reflected in how I manage the computers at work. Not using root on Unix/linux is a good habit much like not using an administrator account on MacOSX or Windows. Save root/administrator for when you need that level of access. Login as an enterprise admin when you need that level of access, use a standard account to check your email or join in a video session or other normal user level activities.
DNSB is offline   Reply With Quote
Old 05-21-2020, 01:50 PM   #12
twowheels
Wizard
twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.
 
twowheels's Avatar
 
Posts: 1,853
Karma: 13432974
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro, Boox Note Max
Quote:
Originally Posted by DNSB View Post
The main issue for me is that it encourages bad habits. What I do on my computers at home tends to be reflected in how I manage the computers at work. Not using root on Unix/linux is a good habit much like not using an administrator account on MacOSX or Windows. Save root/administrator for when you need that level of access. Login as an enterprise admin when you need that level of access, use a standard account to check your email or join in a video session or other normal user level activities.
Moreover, I go one step further. I have separate "users" for various files that I want to keep and ensure that I don't accidentally mess them up. My music, photos, long term archived documents (e.g. scans of important stuff), etc all have a different "user" that owns them, and my regular user account has read-only permissions to them.

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.
twowheels is offline   Reply With Quote
Old 05-21-2020, 01:57 PM   #13
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
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?
Sirtel is offline   Reply With Quote
Old 05-21-2020, 01:59 PM   #14
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,339
Karma: 238311259
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by twowheels View Post
Moreover, I go one step further. I have separate "users" for various files that I want to keep and ensure that I don't accidentally mess them up. My music, photos, long term archived documents (e.g. scans of important stuff), etc all have a different "user" that owns them, and my regular user account has read-only permissions to them.

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.
I have back-ups for that purpose. Constantly logging in and out with different users is about the most clumsy way I can imagine managing one's files. Of course, I'm on Windows. Possibly Linux is different.
Sirtel is offline   Reply With Quote
Old 05-21-2020, 02:21 PM   #15
twowheels
Wizard
twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.
 
twowheels's Avatar
 
Posts: 1,853
Karma: 13432974
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro, Boox Note Max
Quote:
Originally Posted by Sirtel View Post
I have back-ups for that purpose. Constantly logging in and out with different users is about the most clumsy way I can imagine managing one's files. Of course, I'm on Windows. Possibly Linux is different.
It's quite easy, I don't have to log-out and log back in. Linux is very flexible, everything is harder in Windows if you know your way around a computer. (I'm a software developer and have used both Windows and Linux since they each respectively first came out, and other Unix OSes before Linux existed [even working as a developer on a Unix OS before Linux], so I think that I can say I know my way around a computer)

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.
twowheels is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:55 PM.


MobileRead.com is a privately owned, operated and funded community.