Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-10-2012, 10:44 AM   #1
aditya3098
Valar
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
aditya3098's Avatar
 
Posts: 592
Karma: 1578840
Join Date: Jan 2012
Location: Far, far away (from radio shack) :(
Device: Kindle touch (hacked to the core) 5.3.2.1
Simple linux fastboot installing command

Here is a simple command to install the yifanlu-fastboot on any debian-based linux i386 (or and x86_64 with multiarch-support and ia32-libs installed (If wine works, then you don't need anything else, it will pull the deps)) system libusb-1.0.0 (tested on Ubuntu 12.04 Precise Pangolin LTS). It may or may not work on another linux family, but it's worth a try:
Code:
sudo wget http://www.sudoforlunch.org/fastboot -O /usr/bin/fastboot && sudo chmod -cvR a+x /usr/bin/fastboot

Last edited by aditya3098; 12-22-2012 at 10:44 AM. Reason: 64-bit multiarch-support and ia32-libs
aditya3098 is offline   Reply With Quote
Old 04-10-2012, 11:06 AM   #2
sohmc
Junior Member
sohmc began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Apr 2012
Location: Virginia
Device: Kindle Touch
Does fastboot need to be installed into /usr/bin? Seems that it would be better (and more secure) just to run it from the home directory and use sudo as necessary.
sohmc is offline   Reply With Quote
Old 04-10-2012, 11:42 AM   #3
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,069
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by sohmc View Post
Does fastboot need to be installed into /usr/bin? Seems that it would be better (and more secure) just to run it from the home directory and use sudo as necessary.
No. It will run from any directory, but then after the "cd" you need to do a "sudo ./fastboot" (notice the "dot-slash") instead of just "sudo fastboot" (or an "su" command for people who like to run with scissors).


Last edited by geekmaster; 04-10-2012 at 02:24 PM.
geekmaster is offline   Reply With Quote
Old 04-10-2012, 01:31 PM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 4,911
Karma: 4492229
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
Just to be picky:

I usually go for one-liners in this style instead, but it's more of a personnal choice, and the fact that I have a semi-smart sudo function aliased to 's' in my zshrc, meaning I don't mind spamming sudo, and I still mostly save keystrokes over quotes/parentheses ^^.
(I don't like to cd for a one-liner, even in a subshell, and don't like to chain stuff without making sure the first part successfully exited):

sudo wget http://www.sudoforlunch.co.cc/fastboot -O /usr/bin/fastboot && sudo chmod -cvR a+x /usr/bin/fastboot

(Same goes for chmod -cvR, it's pretty much how I always call chmod, so it's pretty automatic for me, and I guess the fact that I almost never use octal perms is my small way to get back at maths? . In the same vein, ls usually means ls -lash for me ).

And geekmaster probably meant "sudo ./fastboot", not "./sudo fastboot", since you probably want to run the *fastboot* binary in the current directory, not sudo, which should already be part of your system and in your $PATH .

If that didn't make any kind of sense whatsoever, my bad, I'm running on a couple of hours of sleep, so I'm pretty out of it ^^.

Last edited by NiLuJe; 04-10-2012 at 01:43 PM.
NiLuJe is online now   Reply With Quote
Old 04-10-2012, 02:18 PM   #5
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,069
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by NiLuJe View Post
I usually go for one-liners in this style instead
Don't we all? How else can we use the command history? Here is one of my recent one-liners (from the "getkernels" thread):
PHP Code:
set $(hexdump -C mmcblk0.img|grep -B2 Linux-|head -n1);bs=1024;skip=$((0x$1/$bs));shift 13;count=$(((0x$1$2$3$4+$bs-1)/$bs));echo "skip=$skip count=$count";dd if=mmcblk0.img of=kernel.img bs=$bs skip=$skip count=$count 
Quote:
Originally Posted by NiLuJe View Post
In the same vein, ls usually means ls -lash for me ).
I am fond of "ls -lart".
Quote:
Originally Posted by NiLuJe View Post
And geekmaster probably meant "sudo ./fastboot", not "./sudo fastboot", since you probably want to run the *fastboot* binary in the current directory, not sudo, which should already be part of your system and in your $PATH .
Oops... fixed in above post.
Quote:
Originally Posted by NiLuJe View Post
I'm running on a couple of hours of sleep, so I'm pretty out of it ^^.
I have been running on a couple of hours of sleep since I was a child (since I read about how Leonardo DaVinci lived on two hours of sleep per day). I takes a lot of focus, will-power, and persistence (and a lot of coding with one eye open because they are pointing in different directions, especially after a continuous three-day coding binge).


sudoforlunch

Last edited by geekmaster; 04-10-2012 at 02:41 PM.
geekmaster is offline   Reply With Quote
Old 04-10-2012, 06:47 PM   #6
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 4,911
Karma: 4492229
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
Yeah, I tend to go the complete opposite way when actually writing stuff down, with a lot of over-long variable names, and useless comments, and 8 chars long tabs, because I'm always worried I'll forget what or why I did something...; as opposed to pulling things mostly out of thin air for one-time stuff, where I'll try to be more concise .

Yup, ls -t/-r is mighty useful too!

Heh, I wish I could! Unfortunately, I really need at least 6 good hours, preferably more, or I end up being either the living dead, or a bit too overexcited and/or tipsy...

Ha! xkcd is awesome .
NiLuJe is online now   Reply With Quote
Old 04-11-2012, 06:13 AM   #7
aditya3098
Valar
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
aditya3098's Avatar
 
Posts: 592
Karma: 1578840
Join Date: Jan 2012
Location: Far, far away (from radio shack) :(
Device: Kindle touch (hacked to the core) 5.3.2.1
Oh sudoforlunch Indeed
Code:
su -c "cd /usr/bin ; wget http://www.sudoforlunch.co.cc/fastboot ; chmod 777 fastboot"
aditya3098 is offline   Reply With Quote
Old 12-22-2012, 09:56 AM   #8
aditya3098
Valar
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
aditya3098's Avatar
 
Posts: 592
Karma: 1578840
Join Date: Jan 2012
Location: Far, far away (from radio shack) :(
Device: Kindle touch (hacked to the core) 5.3.2.1
The URL is updated, along with the rest of the command, and I added a warning that it was only for i386
aditya3098 is offline   Reply With Quote
Old 12-22-2012, 10:06 AM   #9
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677485
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by aditya3098 View Post
The URL is updated, along with the rest of the command, and I added a warning that it was only for i386
scratch that "i386 only" - it works absolutely smoothly on x86_64, assuming some compatibility libraries are installed. Not sure what they're called (i.e., which package that is), but IIRC installing wine will automatically pull them as a dependency.
ixtab is offline   Reply With Quote
Old 12-22-2012, 10:43 AM   #10
aditya3098
Valar
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
aditya3098's Avatar
 
Posts: 592
Karma: 1578840
Join Date: Jan 2012
Location: Far, far away (from radio shack) :(
Device: Kindle touch (hacked to the core) 5.3.2.1
I think you mean multiarch-support and ia32-libs. Glad it works.
aditya3098 is offline   Reply With Quote
Old 12-22-2012, 08:18 PM   #11
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Linux Mint. (has wine). 32 bit. Works fine. Thanks.
twobob is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing in Debian Squeeze Command Line Only drjonez Devices 2 08-23-2011 05:22 PM
Problems installing - command line only edent Related Tools 9 05-16-2011 12:01 PM
Command Line (should be simple) jhall124 Calibre 6 12-22-2010 02:36 PM
Problem installing Command line tools patc890 Calibre 7 12-12-2010 08:02 AM
Possibility of Installing a Simple Text Editor luqmaninbmore PocketBook 1 11-24-2009 12:11 PM


All times are GMT -4. The time now is 10:45 AM.


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