View Single Post
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