Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4403

KOA Use kindle as an extra terminal screen

$
0
0
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.

Attachment 168376

Attached Thumbnails
Click image for larger version

Name:	screen.jpg
Views:	N/A
Size:	233.7 KB
ID:	168376  

Viewing all articles
Browse latest Browse all 4403

Trending Articles