Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-02-2014, 06:19 PM   #1
Nix Hard
Junior Member
Nix Hard began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2014
Location: New Zealand
Device: Kobo Mini
Thumbs up Installing calibre 1.26 in linux debian with no sudo

I was getting no-where with the new install code for calibre 1.26 on a Debian/stable distro that does not have sudo set up or usually use it.

I use to start a CLI, then enter the "su" command, then enter my password and paste in the old code minus the sudo command part at the beginning and hit enter.

That is no longer working, so a little fiddling around and I came up with this that seems to work.

Start up a CLI as user, and su to root, then enter this;
Code:
wget -nv -O- https://github.com/kovidgoyal/calibre/raw/master/setup/linux-installer.py | python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
I took the "sudo -v && " at the beginning out and the "sudo " out in the middle.

Cheers NH
Nix Hard is offline   Reply With Quote
Old 03-02-2014, 06:27 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
If you look further down the page, there are options for doing an install to a non-default directory, as well as for a non-sudo command to just unpack the binaries.

Currently, you are using the main install command which assumes you are installing to /opt

You cannot do that without root access.

You can also still use the old install code, it has been left usable. I assume Kovid doesn't want to break things for anyone who aliased that command to "calibre-upgrade".
eschwartz is offline   Reply With Quote
Old 03-02-2014, 10:28 PM   #3
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: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What is not working, exactly? Running the command without sudo as root should work just fine.
kovidgoyal is offline   Reply With Quote
Old 03-02-2014, 10:39 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by kovidgoyal View Post
What is not working, exactly? Running the command without sudo as root should work just fine.
Oh, does it default to somewhere other than /opt when you run it without an argument in main()?
eschwartz is offline   Reply With Quote
Old 03-02-2014, 10:42 PM   #5
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: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Running the command without sudo as root should work just fine.
kovidgoyal is offline   Reply With Quote
Old 03-02-2014, 10:47 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by kovidgoyal View Post
Running the command without sudo as root should work just fine.
misread the question.
eschwartz is offline   Reply With Quote
Reply

Tags
cli, install, install application, install download, linux


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing a "normal" Debian ARMEL Linux on the Kindle choff Kindle Developer's Corner 18 09-09-2014 02:42 AM
Installing Calibre on Headless Linux dchagnon Devices 3 12-17-2013 04:18 PM
Help installing Debian vector-crumb Kindle Developer's Corner 15 01-01-2013 04:42 PM
Installing in Debian Squeeze Command Line Only drjonez Devices 2 08-23-2011 05:22 PM
Installing Calibre in Arch Linux jatz Calibre 0 03-23-2010 01:41 PM


All times are GMT -4. The time now is 02:12 AM.


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