I am currently fiddling around with a RaspberryPi and a TFT hat. It is connected to the RPi GPIO pins. The TFT screen itself is working and I see the normal Linux console on it. I fetched a quick pygame example and ran it successfully using:
SDL_FBDEV=/dev/fb1 python3 myapp.py
But my setup is a bit fiddly, with the small PI and a separate keyboard attached to it. I would love to be able to ssh
into the PI, do some experimentation and launch the application via the remote console.
However when I ssh
into the PI and run the above command, it won't show anything as the graphics environment is not available in the ssh
session. I tried running a tmux shell and attaching to that, but without success. Obviously using the DISPLAY
variable won't work either as I'm not running X. I tried that anyway but it did not work.
The setup I imagine is having the PI sitting on the desk with the only cable attached to it being the power cable. Network would be done by WiFi. So I would have a small box on my desktop with a small TFT screen on it. Then I would like to connect to that box via ssh
to deploy the application and run it in that ssh
shell. When running this I would like the application to show up on the small TFT screen on the PI.
The ssh
client varies. If I use my laptop to connect that would be OpenSSH
in likely the latest version of whatever is current in Arch Linux, and when using another PC that would be the OpenSSH client from Cygwin
Is there any way to start the application remotely such that it shows up on a selected framebuffer device?
ssh
ed to the pi? If the 2nd what is this device? What software do you use tossh
(your ssh client)? – ctrl-alt-delor Jul 30 '19 at 18:53chvt
tool through ssh. – Janka Aug 01 '19 at 09:00