├── README.md ├── kndv-http ├── cleanup.sh └── kobodisplay-http.sh └── kndv-scp └── kobodisplay.sh /README.md: -------------------------------------------------------------------------------- 1 | # Kobo-network-display-viewer 2 | A way to use your Kobo to display the screen of your computer on it. 3 | 4 | I had an idea an evening of August. I've thought that I could use NiLuJe's excellent FBInk library to display the screen of a computer on a recent Kobo device. I ended up finishing a program in 3 hours that replaced continuously live screenshots of the screen via SCP on the /tmp directory of a Kobo device. FBInk would then display the image, over and over as it gets replaced. That works well, except that it's *very* slow. 5 | 6 | ## Installation 7 | Install instructions are here: https://www.mobileread.com/forums/showthread.php?t=332585 8 | I resume: 9 |

1. Download the script here on GitHub or at Mobileread. 10 |

2. Install NiLuJe's excellent FBInk and SSH bundle for Kobos here: https://www.mobileread.com/forums/showthread.php?t=254214 11 |

3. Hook up your Kobo to a WiFi network or via USBNet and write down its IP address. 12 |

4. In your Linux computer (that is connected to the Internet), type './kobodisplay.sh' on a terminal. Write the IP and resolution information of your Kobo and you're good to go! 13 | -------------------------------------------------------------------------------- /kndv-http/cleanup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | while :; do read -r -p 'IP of your Kobo device: ' ip && break; done 4 | echo 'Cleanup script for Kobo Network Display Viewer' 5 | echo 'Killing the "watch" processes in your Kobo...' 6 | sshpass -p test ssh root@$ip 'killall watch' 7 | echo 'Killing Python HTTP Server...' 8 | kill -9 `pgrep -f 'http.server'` 9 | echo 'Done!' 10 | -------------------------------------------------------------------------------- /kndv-http/kobodisplay-http.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | export COMPIP=`hostname -i` 4 | echo "Your computer's IP: $COMPIP" 5 | cd / 6 | python -m http.server & 7 | echo 'Please wait a moment...' 8 | sleep 3 9 | while :; do read -r -p 'IP of your computer (should be the one shown above): ' COMPIP && break; done 10 | while :; do read -r -p 'IP of your Kobo device: ' ip && break; done 11 | while :; do read -r -p "Your Kobo device screen width resolution: " width && break; done 12 | while :; do read -r -p "Your Kobo device screen height resolution: " height && break; done 13 | sshpass -p test ssh root@$ip 'watch -n 30 "fbink -H -k -f | tee -a output.txt" &>/dev/null &' 14 | sshpass -p test ssh root@$ip 'watch -n 0.5 "fbink -g file=/tmp/continuous.png,w='$width',h='$height'| tee -a output.txt" &>/dev/null &' 15 | sshpass -p test ssh root@$ip 'watch -n 0.1 "cd /tmp && curl -O http://'$COMPIP':8000/tmp/continuous.png | tee -a output.txt" &>/dev/null &' 16 | while true; do gnome-screenshot -p --file=/tmp/continuous.png; done 17 | -------------------------------------------------------------------------------- /kndv-scp/kobodisplay.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | while :; do read -r -p 'IP: ' ip && break; done 3 | while :; do read -r -p "Your Kobo device screen width resolution: " width && break; done 4 | while :; do read -r -p "Your Kobo device screen height resolution: " height && break; done 5 | sshpass -p test ssh root@$ip 'watch -n 30 "fbink -H -k -f | tee -a output.txt" &>/dev/null &' 6 | sshpass -p test ssh root@$ip 'watch -n 0.5 "fbink -g file=/tmp/continuous.png,w='$width',h='$height'| tee -a output.txt" &>/dev/null &' 7 | while true; do gnome-screenshot -p --file=/tmp/continuous.png && sshpass -p test scp /tmp/continuous.png root@$ip:/tmp ; done 8 | --------------------------------------------------------------------------------