Start my program in RPI4B from SSH and Failed - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Start my program in RPI4B from SSH and Failed (/thread-30875.html) |
Start my program in RPI4B from SSH and Failed - ATARI_LIVE - Nov-11-2020 I have a python program and executed (python3 myprogram1.py) from the terminal in the RPI4B works perfectly. I wanted to run on RPI4B without the keyboard and mouse and not want use an VNC. But when I use a terminal from windows 10 on my pc with SSH remote and tried to run my program, it said: I think I must something missing with the command line?
RE: Start my program in RPI4B from SSH and Failed - bowlofred - Nov-11-2020 GUI programs that use Xwindows aren't directly executable on other machines through SSH. If your local machine can run an X sserver, you can forward it through an SSH session. But that would be unusual for someone to run an X server on windows. It is possible though. Why do you not want to run VNC? It's easier to run VNC client on windows than it is to run a full Xserver and then have the pi connect to it. Or, could you have your program run in a command-line mode? Without a GUI, it's much easier to run non-web programs remotely. RE: Start my program in RPI4B from SSH and Failed - ATARI_LIVE - Nov-11-2020 I mean I just want to launch the program to the RPI4B itself. For example: - I open the PuTTY with SSH and connected with the RPI4B. - I type python3 myprogram1.py - the RPI4B to launch the myprogram1.py to run on RPI4B's LCD itself. that's all. RE: Start my program in RPI4B from SSH and Failed - ATARI_LIVE - Nov-11-2020 I found from other forum. use DISPLAY=:0.0 python3 myprogram1.py it's worked! Thank you for your helps. |