View Single Post
Old 05-14-2014, 10:21 PM   #22
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Jackie Im View Post
Hello~
I have kindle paper white.
My kindle was rooted.
I would like to install debian pkg to my kindle.
but my kindle does not have dpkg.
how can I install dpkg to my kindle?
Wrong question - you can't (easily) install dpkg on your Kindle.
You will run out of resources to install / use dpkg long before you make much progress in that direction.

Instead:

Unpack the *.deb (it is an ar archive) -
Manually move the relevant portion of the the contents to user storage -
Move dependencies to user storage -
Set the LD_LIBRARY_PATH as required - ( http://tldp.org/HOWTO/Program-Librar...libraries.html ) -
Specify any sysroot needed -
execute the program.

twobob has posted a lot on the use of various Debian packages on the Kindle - with details of the setup involved.
He has also posted a script that will check the executable's dependencies against what is already stored on the Kindle, and list the ones you would need to add.

We also have a file system layout that we recommend be used:
https://bitbucket.org/twobob/kual-system

Be sure to use an old enough release of Debian that the Kindle's libc will be usable.
I seem to recall that most compatible Debian binaries come from the Woody release:
http://www.debian.org/distrib/archive
YMMV

- - - -

This thread is about running a copy of Debian in a (file based) chroot on the Kindle -
Another way to get a Debian application running (and this chroot does have dpkg installed in it).

If you can't get a Debian binary to run (for whatever reason) - you can build from the Debian source within this chroot (you may need to enable swap).
Some people find this method easier than cross-compiling.

Note: With swap enabled, you can build a fairly large application - -
twobob has built webkit-gtk in this chroot (it only took 2 1/2 days for the Kindle to get the job done).

Actually, back when he had hobby time available, twobob built / ported / cross-compiled nearly anything that would stand still long enough.
Lots and lots of examples left behind here (and on bit bucket, git hub, etc.)

- - - -

I sent him a (well, two) quad core ARM machine to use as a "build machine" a few months ago - something a tad bit faster than a slow, single core, Kindle.
when (if) he ever has any hobby time available - he will return.

- - - -

tl;dr: PS: Just what Debian package do you want to add? We may already have it here.

Last edited by knc1; 05-14-2014 at 10:41 PM.
knc1 is offline   Reply With Quote