Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-25-2015, 11:53 AM   #1
thatworkshop
hub
thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.
 
thatworkshop's Avatar
 
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
Make your Kindle do dog tricks!

This would be a thread for tips and tricks, making unconventional stuff for Kindle etc. and I hope it can be updated occasionally when anyone finds/implements something interesting.

Eventually, maybe we'll find a way into the Wiki too.

The resources are really endless, with achievements made possible by people like knc1, geekmaster, twobob, NiLuJe, hawhill, ixtab, etc.
Modules in KUAL system etc

EDIT: It can also be a bookmark of links so we don't forget them!

Last edited by thatworkshop; 08-25-2015 at 11:56 AM.
thatworkshop is offline   Reply With Quote
Old 08-25-2015, 11:54 AM   #2
thatworkshop
hub
thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.
 
thatworkshop's Avatar
 
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
An interesting read about shared libraries: http://www.eyrie.org/~eagle/notes/rpath.html

I used LD_LIBRARY_PATH a lot in the past, we'll see.
thatworkshop is offline   Reply With Quote
Advert
Old 08-25-2015, 12:27 PM   #3
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 idoit View Post
An interesting read about shared libraries: http://www.eyrie.org/~eagle/notes/rpath.html

I used LD_LIBRARY_PATH a lot in the past, we'll see.
As implied in that text, using LD_LIBRARY_PATH to get the intended results when using more than one set of system libraries is difficult to impossible (when an application uses both system libraries).
knc1 is offline   Reply With Quote
Old 08-25-2015, 12:46 PM   #4
thatworkshop
hub
thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.
 
thatworkshop's Avatar
 
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
Quote:
Originally Posted by knc1 View Post
As implied in that text, using LD_LIBRARY_PATH to get the intended results when using more than one set of system libraries is difficult to impossible (when an application uses both system libraries).
Yup. That's why I found it good to read for me and some others who might not have known.

Now, I use /usr/local/lib for my shared libraries symlinked to /mnt/us/applications/lib. And it's very neat.

Last edited by thatworkshop; 08-25-2015 at 07:29 PM.
thatworkshop is offline   Reply With Quote
Old 08-26-2015, 11:02 PM   #5
thatworkshop
hub
thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.
 
thatworkshop's Avatar
 
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
Brick Safe init.d script

So I'm playing with init.d danger zone and you might already know Kindles are extremely fragile. As we don't have SSH access in the diags of DX(G), I thought of this. For scripts I want in /etc/init.d/, I just make a symlink to /mnt/us/ so that if a stupidity happens in my script, I still would have a chance to go to diag > mount usb > and comment the offending lines in the init.d script... Do you think, it is a good idea / safe?

I thought it's a clever idea, till we get Diag+SSH, eh?

For instance:
Code:
ln -s /mnt/base-us/applications/etc/init.d/myinitscript /etc/init.d/myinitscript

Last edited by thatworkshop; 08-26-2015 at 11:21 PM.
thatworkshop is offline   Reply With Quote
Advert
Old 08-27-2015, 06:13 AM   #6
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 idoit View Post
So I'm playing with init.d danger zone and you might already know Kindles are extremely fragile. As we don't have SSH access in the diags of DX(G), I thought of this. For scripts I want in /etc/init.d/, I just make a symlink to /mnt/us/ so that if a stupidity happens in my script, I still would have a chance to go to diag > mount usb > and comment the offending lines in the init.d script... Do you think, it is a good idea / safe?

I thought it's a clever idea, till we get Diag+SSH, eh?

For instance:
Code:
ln -s /mnt/base-us/applications/etc/init.d/myinitscript /etc/init.d/myinitscript
Perhaps a variation on that -
Quote:
/etc/init.d/rc.local is run very early in the initialization process and at every runlevel change.
Of course, that was from the mainstream init docs and the Kindles use the Busybox init - -
But if Busybox init still acts that way (about running an rc.local) - -
then linking it to: /mnt/base-us/esys/etc/init.d/rc.local should put it into user storage.

- - - -

Note:
What you read here:
https://bitbucket.org/twobob/kual-sy...92e6?at=master

Had a directory tree change:
From: /mnt/base-us/extensions/system
To: /mnt/base-us/esys
(Paths where getting too long for the ELF headers with the old naming plan.)

I should have (did have) owner/admin status on that repo - but am having trouble getting back in as admin.
That problem is on my todo list of things I need to fix or clone that repo somewhere else.
knc1 is offline   Reply With Quote
Old 08-27-2015, 08:42 AM   #7
thatworkshop
hub
thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.
 
thatworkshop's Avatar
 
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
[Applicable only for DX/K2 devices]
Or if one has DX(G) v2.5.8, by doing step 1 of KindleUpdater to v3.2.1, it flashes a kernel with which diags will expose all MMC partition in USB mode. Briliant. But still having 2 brick safe strategies is better than one.

From its readme txt:
Spoiler:
The Kindle prepare process will take from anywhere between 30 minutes to an hour. In this time, it will first generate rootfs.img to use on the host (and also for manual recovery), update_restore-os.bin for restoring back to the client's original software version, and flash a custom kernel that allows unsigned recovery packages and no-password MMC export.
thatworkshop is offline   Reply With Quote
Old 08-27-2015, 08:48 AM   #8
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: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Can we actually create symlinks to a vfat partition?
NiLuJe is offline   Reply With Quote
Old 08-27-2015, 09:21 AM   #9
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 knc1 View Post
- - - -
I should have (did have) owner/admin status on that repo - but am having trouble getting back in as admin.
That problem is on my todo list of things I need to fix or clone that repo somewhere else.
It gets worse:
**ALL** of our (twobob and I) Kindle repositories on bitbucket are without any owner.

And to add insult to injury, github has even forgotten my account.

Hmm...
And my private server is down to its last Tetrabyte of storage.
Ah, well, I suppose I had better clone all of them to my server just to be safe.
(Those repos on bitbucket include all of the "mainframe on Kindle" files.)

- - - -

Information post number 8,008 -
Guess we could call it: I8008
(I missed the opportunity @ post 4004 and 4040)

Last edited by knc1; 08-27-2015 at 09:39 AM.
knc1 is offline   Reply With Quote
Old 08-27-2015, 09:33 AM   #10
thatworkshop
hub
thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.
 
thatworkshop's Avatar
 
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
Quote:
Originally Posted by NiLuJe View Post
Can we actually create symlinks to a vfat partition?
Yup! I'm doing it.

@knc1: That doesn't sound good!
thatworkshop is offline   Reply With Quote
Old 09-05-2015, 11:16 AM   #11
thatworkshop
hub
thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.
 
thatworkshop's Avatar
 
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
Let's see if this is possible:

In Windows, Virtual Desktop + Displaying only that desktop (reflecting - transferring screen on to) Kindle

With this you'll be able to code on laptop and read on your eBook reader in the following scenario: Open a PDF on laptop (maybe in a second virtual desktop?!) and the eReader when connecting via VNC over USB only sees this screen or a client-server program nahte wrote for DXG. One can then go back to first/main desktop and do all stuff and still kindle is showing what is on the second screen (which is PDF file).

How can I do this? I have tried VirtuaWin, Dexpot, and the app called Desktops from Windows itself, to no avail.

This is somewhat similar to what Linux does with its screen:1 or screen:2 or ...

Or if you are familiar with NX technology, you know client can connect to server independently... which is its difference with VNC.

One might think this is stupid idea, but here is another use-case (a bit different from above): I'd like to open a PDF in my laptop (Adobe Acrobat), forget about LCD of my laptop and just enjoy reading off of my Kindle screen... When I need to annotate or highlight (using powerful Adobe on the laptop) I just do it so. With this, I don't have to deal with exporting highlights from my PDF and do some magic to incorporate my notes and highlights back to the PDF for archival purposes.

Last edited by thatworkshop; 09-05-2015 at 11:20 AM.
thatworkshop is offline   Reply With Quote
Old 09-08-2015, 12:51 PM   #12
thatworkshop
hub
thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.
 
thatworkshop's Avatar
 
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
Ok, there might be hope for USBnet in diags/recovery mode for DX(G) by somehow making use of /test/bin/usbnetwork in there. Also see here.
thatworkshop is offline   Reply With Quote
Old 09-08-2015, 01:45 PM   #13
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
How about a nice remote terminal on your DXG for your Windows (and other) box?
http://remmina.sourceforge.net/features.shtml

(I know twobob did an RD terminal for the touch devices.)
knc1 is offline   Reply With Quote
Old 09-08-2015, 01:55 PM   #14
thatworkshop
hub
thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.
 
thatworkshop's Avatar
 
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
Quote:
Originally Posted by knc1 View Post
How about a nice remote terminal on your DXG for your Windows (and other) box?
http://remmina.sourceforge.net/features.shtml

(I know twobob did an RD terminal for the touch devices.)
Oh, it's GTK based, might be a bit heavy-lifting for DXG!
thatworkshop is offline   Reply With Quote
Old 09-08-2015, 04:43 PM   #15
thatworkshop
hub
thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.
 
thatworkshop's Avatar
 
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
I know I have mentioned this trick as a brick-proof way to play with init.d scripts... Little project I had in my mind was to bring JBPatch working on DX(G), and I'm quite sure, it is 100% doable, but TBH I'm a bit scared because of all the $$$ involved...

Also, Goddamnit, we should make a debricking method for DX(G)... I want to play with this and a hundred other stuff.

Last edited by thatworkshop; 09-08-2015 at 05:19 PM.
thatworkshop is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Teaching an Old Dog new tricks! Bompa65 General Discussions 0 10-14-2013 08:25 AM
Old Dog New Tricks forumshrew General Discussions 19 09-08-2013 08:06 PM
Kindle DX and K3 Tricks v.1.1 playful Amazon Kindle 11 12-18-2010 05:21 PM
Kindle DX and K3 Tricks v.1.2 playful Amazon Kindle 17 11-16-2010 08:53 PM
Kindle DX and K3 Tricks playful Amazon Kindle 7 10-07-2010 07:16 PM


All times are GMT -4. The time now is 03:38 PM.


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