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 04-03-2016, 04:34 AM   #1
lordhenry
Junior Member
lordhenry began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2016
Location: Germany
Device: Kindle 4, Kindle PW2
Remote Execution of Kindle Applets

Hello,

first, thank you all for your work on jailbreaking the kindle, writing programs for it, and writing tutorials for newbies (like me)! Now, here is my question:

I've jailbreaked my kindle 4, installed ssh, and also written a basic hello world applet for it. I would like to know if it is possible to issue the opening of some webpage in the browser on the Kindle via ssh...

Thank you!

Last edited by lordhenry; 04-03-2016 at 02:18 PM. Reason: unprecise question...
lordhenry is offline   Reply With Quote
Old 04-03-2016, 10:32 AM   #2
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
Not quite sure we can do that on a K4. On newer devices running FW 5.x, much easier, though .
NiLuJe is offline   Reply With Quote
Advert
Old 04-03-2016, 10:55 AM   #3
lordhenry
Junior Member
lordhenry began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2016
Location: Germany
Device: Kindle 4, Kindle PW2
Quote:
Originally Posted by NiLuJe View Post
Not quite sure we can do that on a K4. On newer devices running FW 5.x, much easier, though .
Ok. How does it work on devices running FW 5.x? Maybe this information could help me with the K4...
lordhenry is offline   Reply With Quote
Old 04-03-2016, 12:06 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: 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
Sending the right lipc call to appmgr (don't have a device on hand right now).
NiLuJe is offline   Reply With Quote
Old 04-03-2016, 12:12 PM   #5
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 lordhenry View Post
Hello,

first, thank you all for your work on jailbreaking the kindle, writing programs for it, and writing tutorials for newbies (like me)! Now, here is my question:

I've jailbreaked my kindle 4, installed ssh, and also written a basic hello world applet for it. I would like to know if it is possible to remotely execute a Kindlet Applet or trigger some actions on it that are actually visible in the GUI. It would be nice, for instance, to issue the opening of some webpage in the browser on the Kindle via ssh. Do you know if or how this is possible?

Thank you!
Presuming -
You have sshd (in the USBnetworking package) installed -
You have a network connection to the Kindle (you did write: "remote") -
You have public key authentication setup -
You have a 'nickname' set in your ~.ssh/config file for the connection details to the Kindle (shown here as: kpw) -
Then you can run any executable (or shell command) without logging in simply with:
ssh kpw 'ls -l /mnt/us/documents'
Code:
$ ssh kpw 'ls -l /mnt/us/documents'

-rwxr-xr-x    1 root     root        127173 Sep 25  2015 KUAL-KDK-2.0.azw2
-rwxr-xr-x    1 root     root        469576 Jan  1 17:22 Kindle User's Guide 3rd Edition_B0058H5MQM.azw3
drwxr-xr-x    2 root     root          8192 Mar 29 21:01 Kindle User's Guide 3rd Edition_B0058H5MQM.sdr
drwxr-xr-x    2 root     root          8192 Aug 15  2013 Kindle_Users_Guide.sdr
drwxr-xr-x    2 root     root          8192 Apr  2 14:30 cpu_report.sdr
-rwxr-xr-x    1 root     root          2818 Apr  2 14:17 cpu_report.txt
drwxr-xr-x    4 root     root          8192 Aug  4  2013 dictionaries
or the appropriate lipc command or other executable program
OR
You set the command to be run as one of the fields in your authorized_keys file for the pub-key that is allowed to run it.

Same-same as any other *nix based system.
Just google "OpenSSH usage" or whatever, there are giga-bytes of documentation on the net about it.

Last edited by knc1; 04-03-2016 at 12:18 PM.
knc1 is offline   Reply With Quote
Advert
Old 04-03-2016, 02:33 PM   #6
lordhenry
Junior Member
lordhenry began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2016
Location: Germany
Device: Kindle 4, Kindle PW2
Quote:
Originally Posted by knc1 View Post
Presuming -
You have sshd (in the USBnetworking package) installed -
You have a network connection to the Kindle (you did write: "remote") -
You have public key authentication setup -
You have a 'nickname' set in your ~.ssh/config file for the connection details to the Kindle (shown here as: kpw) -
Then you can run any executable (or shell command) without logging in simply with:
ssh kpw 'ls -l /mnt/us/documents'
Code:
$ ssh kpw 'ls -l /mnt/us/documents'

-rwxr-xr-x    1 root     root        127173 Sep 25  2015 KUAL-KDK-2.0.azw2
-rwxr-xr-x    1 root     root        469576 Jan  1 17:22 Kindle User's Guide 3rd Edition_B0058H5MQM.azw3
drwxr-xr-x    2 root     root          8192 Mar 29 21:01 Kindle User's Guide 3rd Edition_B0058H5MQM.sdr
drwxr-xr-x    2 root     root          8192 Aug 15  2013 Kindle_Users_Guide.sdr
drwxr-xr-x    2 root     root          8192 Apr  2 14:30 cpu_report.sdr
-rwxr-xr-x    1 root     root          2818 Apr  2 14:17 cpu_report.txt
drwxr-xr-x    4 root     root          8192 Aug  4  2013 dictionaries
or the appropriate lipc command or other executable program
OR
You set the command to be run as one of the fields in your authorized_keys file for the pub-key that is allowed to run it.

Same-same as any other *nix based system.
Just google "OpenSSH usage" or whatever, there are giga-bytes of documentation on the net about it.
I know how to handle SSH and start native programs, that is not the problem... but I didn't know about lipc, thanks! So I guess the WebBrowser is started via lipc internally? Do you know which exact arguments I must pass to "lipc-set-prop" to open up some WebPage on the Kindle? Whats the equivalent of "lipc-set-prop com.lab126.appmgrd start app://XYZ" on the Kindle 4?

Last edited by lordhenry; 04-03-2016 at 03:02 PM.
lordhenry is offline   Reply With Quote
Old 04-03-2016, 03:43 PM   #7
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 lordhenry View Post
I know how to handle SSH and start native programs, that is not the problem...
- - - - -
You did not mention that in your question.
If you had, I could have spent my time on a more helpful reply.

Since you also fail to give any background on what you have done, and with what results, to the question you now ask -
I'll try once again to give the obvious answer:

Do you also know how to run:
"grep -r libc *"
on the K4 command line?
Have you done that?
What have you done?
With what results?

Please consider the following and the content of the linked article:
https://www.mobileread.com/forums/sho...d.php?t=272087
before replying.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
AFTER THE EXECUTION jpraven Self-Promotions by Authors and Publishers 0 10-31-2013 03:30 AM
Remote Kindle Indexing on PC. vugtitan Amazon Kindle 17 09-02-2010 05:17 PM
Direct shellscript execution Viacheslav iRex 0 08-25-2009 01:31 PM
iLiad QT/E execution problem! ericshliao iRex Developer's Corner 7 02-12-2009 03:36 PM
iLiad Panel Applets for iLiad's Toolbar yokos iRex Developer's Corner 3 05-06-2008 01:56 PM


All times are GMT -4. The time now is 08:44 AM.


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