Quote:
Originally Posted by lordhenry
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.