Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Kindleberry Wireless Without Rooting the Kindle
Wireless keyboard is connected to your Raspberry Pi and Amazon Kindle act wirelessly as display for the linux shell. Some photos are below.
State of the Art
There are two good tutorials how to use the Amazon Kindle as a display for your Raspberry Pi, however both require you to root the Kindle:
- KindleBerry Pi: they rooted Kindle and connected keyboard + RPi + Kindle all together via USB cables.
- Kindleberry Wireless: similar as above, but with wireless keyboard and wifi router.
The point of both approaches is that the user logs in from rooted Kindle to RPi via SSH client and since the moment the SSH client running on Kindle acts as screen.
Doing the same without rooting the Kindle
Instead of rooting the Kindle and running an SSH client, we use Kindle's web browser to connect to the Raspberry Pi, so that the web browser will behave as SSH client thanks to shellinabox.
- Install the shellinabox package on Raspberry Pi.
- If you use Raspbian, just run:
sudo apt-get install shellinabox
- make sure your Raspberry Pi is connected to network and determine its IP address by running
- run following commands on your RPi:
echo "script --flush /tmp/rpi.terminal.file" > ~/kindle.server
chmod +x ~/kindle.server
echo "tail -f /tmp/rpi.terminal.file" > kindle.client
chmod +x ~/kindle.client
- make sure the wireless keyboard is connected to your Raspberry Pi and working. I use Logitech K220 wireless keyboard with success.
- once wireless keyboard is connected to Raspberry Pi enter your login and password via the keyabord so that you login to RPi shell. I type the login and password in headless mode so that I cannot see what I type (the Kindle display is not connected yet).
- still in the Raspberry Pi keyboard's shell, I run the command:
- now, on the Kindle, do following:
- launch the web browser and visit the
shellinaboxweb server running on your Raspberry Pi
- you will be redirected to default HTTPS page and you will see shell login
- in the Kindle's browser, login to your Raspberry Pi's shell with login and password. On my Kindle 4 this means I have to enter the login and password via the virtual keyboard provided by Kindle, which is bit painful (see photo below).
- now I enter the following command in my Kindle's web browser via the virtual keyboard:
- And since this moment, whatever is typed and executed via the wireless keyboard connected to Raspberry Pi, you can see the outcome in the Kindle's web browser.
Making it easier
- create new linux user on Raspberry Pi named
./kindle.clientat the end of
/home/kindle/.bashrc- this will launch the command automatically once you login from the Kindle's browser.
- Kindle 4 will automatically enter sleep mode after 10 minutes. This approach is useful to avoid the sleep mode:
- Press the Home button to go the the Kindle home screen
- Press the keyboard button to display the virtual keyboard
- Type following string:
;debugOnand press Enter button (not the Done button)
- Type following string:
~disableScreensaverand press Enter.
Drawbacks (compared to Kindle rooted mode)
- you don't have fullscreen mode
Logging in via the virtual keyboard on Kindle:
Kindle and wireless keyboard:
If you would like to comment, please post an issue.