Hi all,
This evening I just had an idea; I thought I could use NiLuJe's excellent FBInk library to create an image-based "VNC" viewer. I finished it in 3 hours and you'll find it attached in this post.
It is still in very early development stage, and it is *horribly* slow. Like you have to wait 1 second for the screen to update. Maybe if you use it with USBNet it could be a little better. I join as well some photos to prove it working.
Grosso modo, that's how it runs:
1. It starts by starting (via SSH) a 'watch' process that tells FBInk to refresh the screen every 30 seconds.
2. After that, it starts a neverending loop that uses gnome-screenshot on the host system to take screenshots of the screen live, every +/- 1 second. I tried with scrot and it worked very well, the only fatal flaw was that it wasn't possible to see the mouse cursor in the capture. The screenshot named continuous.png is put on /tmp and is constantly replaced to deliver an up-to-date image.
3. After that, I use sshpass to login in the Kobo without password prompt, and transfer via scp the screenshot that is in /tmp to the /tmp folder of the Kobo so it doesn't wear the SD card on the write cycles.
4. Finally, to show the image on the screen, I use sshpass again with SSH to tell fbink to print an image on the screen, full screen. I recommend using your Kobo in landscape mode, and putting your host screen in 1024x768, as the text will display better in that resolution and orientation.
5. The loop starts over and repeats the process until you decide to stop it via SIGINT (CTRL+C). *NOTE* I didn't find how to stop the 'watch' process when you press CTRL+C. I tried different 'trap' ideas, but none of them worked. Any help or ideas are appreciated, I'm not very experienced in bash programming :)
For now you'll have to stop 'watch' manually by SSH to the Kobo after ending the image sending from the host and by typing 'killall watch', then 'exit'.
REQUIREMENTS:
SSH and FBInk from NiLuJe https://www.mobileread.com/forums/sh...d.php?t=254214 on your Kobo
gnome-screenshot and sshpass on your host machine
Your host machine *must* be a Linux system, otherwise you probably will experience issues.
******NOTES:
You *will* have to change the SSH IP of your Kobo on the script. I'll probably get that interactive in the near future.
I suggest to open the web browser on your Kobo before launching the script, as you will not see the left corner hour display changing minute after minute and therefore hiding a part of the host screen on your Kobo's screen, and as it will keep the WiFi on as long as you keep it open.
This "VNC" viewer doesn't support touch at all. (Maybe in the far future?)
So... enjoy it! And you can write your feedback here!
This evening I just had an idea; I thought I could use NiLuJe's excellent FBInk library to create an image-based "VNC" viewer. I finished it in 3 hours and you'll find it attached in this post.
It is still in very early development stage, and it is *horribly* slow. Like you have to wait 1 second for the screen to update. Maybe if you use it with USBNet it could be a little better. I join as well some photos to prove it working.
Grosso modo, that's how it runs:
1. It starts by starting (via SSH) a 'watch' process that tells FBInk to refresh the screen every 30 seconds.
2. After that, it starts a neverending loop that uses gnome-screenshot on the host system to take screenshots of the screen live, every +/- 1 second. I tried with scrot and it worked very well, the only fatal flaw was that it wasn't possible to see the mouse cursor in the capture. The screenshot named continuous.png is put on /tmp and is constantly replaced to deliver an up-to-date image.
3. After that, I use sshpass to login in the Kobo without password prompt, and transfer via scp the screenshot that is in /tmp to the /tmp folder of the Kobo so it doesn't wear the SD card on the write cycles.
4. Finally, to show the image on the screen, I use sshpass again with SSH to tell fbink to print an image on the screen, full screen. I recommend using your Kobo in landscape mode, and putting your host screen in 1024x768, as the text will display better in that resolution and orientation.
5. The loop starts over and repeats the process until you decide to stop it via SIGINT (CTRL+C). *NOTE* I didn't find how to stop the 'watch' process when you press CTRL+C. I tried different 'trap' ideas, but none of them worked. Any help or ideas are appreciated, I'm not very experienced in bash programming :)
For now you'll have to stop 'watch' manually by SSH to the Kobo after ending the image sending from the host and by typing 'killall watch', then 'exit'.
REQUIREMENTS:
SSH and FBInk from NiLuJe https://www.mobileread.com/forums/sh...d.php?t=254214 on your Kobo
gnome-screenshot and sshpass on your host machine
Your host machine *must* be a Linux system, otherwise you probably will experience issues.
******NOTES:
You *will* have to change the SSH IP of your Kobo on the script. I'll probably get that interactive in the near future.
I suggest to open the web browser on your Kobo before launching the script, as you will not see the left corner hour display changing minute after minute and therefore hiding a part of the host screen on your Kobo's screen, and as it will keep the WiFi on as long as you keep it open.
This "VNC" viewer doesn't support touch at all. (Maybe in the far future?)
So... enjoy it! And you can write your feedback here!