Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-15-2018, 02:41 AM   #1
unidevel
Member
unidevel began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2017
Device: Kindle voyage
Use kindle as an extra terminal screen

I happen to notice the screen can share its session to others, by using usbnet, , kterm, ssh on kindle, and screen sshd on my mac, I successfully turn the kindle as an extra display of terminal.

The core idea is setup sshd on PC, then connect kindle using usbnet, and from kterm ssh back to PC then start screen to attach existing session.

Here is the details:

1. setup sshd, setup ssh key pairs, put public key to $HOME/.ssh/authorized_keys

2. On PC, start screen with a named session - kindle
Code:
screen -S kindle
3. Open another terminal to launch ssh to kindle from PC, copy private key to /mnt/us/usbnet/etc/id_rsa

4. then create 2 files to /mnt/us (the root of kindle usb stroage), one named kterm.sh to launch kterm with some special settings(no keyboard, mini font, rotate etc)
Code:
/mnt/us/extensions/kterm/bin/kterm -k 0 -o R -f mono -s 7 -e /mnt/us/mirror.sh
another one named mirror.sh, (replace <user> and <host>)
Code:
ssh -t -i /mnt/us/usbnet/etc/id_rsa <user>@<host> -- screen -x kindle
5. in the terminal(on PC side) which connected to kindle, start the kterm.sh
Code:
/mnt/us/kterm.sh
6. Now whatever you do in kindle terminal (onPC, step 2), the kindle will output the same in kindle as the screenshot below.

Click image for larger version

Name:	screen.jpg
Views:	600
Size:	233.7 KB
ID:	168376
unidevel is offline   Reply With Quote
Old 12-15-2018, 11:18 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,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
There's also a tmux build in the USBNet package, to avoid the second coming of the holy war .
NiLuJe is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Full screen native kindle terminal Xqtftqx Kindle Developer's Corner 46 09-12-2023 05:15 PM
One more terminal emulator for kindle. Matan Kindle Developer's Corner 158 03-23-2020 06:45 PM
Aura HD PDF Viewing(extra screen space) in Aura HD rkr Kobo Reader 11 11-07-2013 11:28 AM
Touch Dictionary now takes extra screen touch RobertJSawyer Kobo Reader 25 09-22-2011 08:00 PM
Kindle 1 Terminal? sinkillerj Kindle Developer's Corner 0 05-19-2011 12:17 AM


All times are GMT -4. The time now is 09:37 PM.


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