Answer the question
In order to leave comments, you need to log in
How to run a script on a remote screen via ssh?
I have a RaspberryPi3 with Raspbian installed. The task is this: run a Bash script via ssh, but the output would not be in the ssh terminal, but on the desktop of the remote machine. With graphics programs this can be done via export DISPLAY:=0 , but what about console output?
Answer the question
In order to leave comments, you need to log in
Run xterm with a command, it will pick up DISPLAY and display on local x's, and the output of the console command will display in xterm. You can get to the console if you redirect the output to /dev/ttyXX which is responsible for the console, or /dev/console, but artifacts are possible.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question