0

This question already has an answer here:

I'm ssh-ing into a Raspberry Pi. I would like to start an X program remotely, on the Pi's display.

I know you can export DISPLAY to have programs open up on your computer when you ssh-in. But I'm looking for the opposite.

What I'd like to have is have a program open up on the Pi's own (HDMI connected) display, when I run a command from ssh.

What I'm looking for is to have a program run on the Pi and display it on the Pi. Pretty much I'd like to just remote control the Pi, using my desktop's keyboard.

I'm on Raspbian / Deb Wheezy.

marked as duplicate by Gilles, slm, Zelda, Anthon, Timo Feb 11 '14 at 8:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • That should be the default behavior unless you are using the -X or -Y options to ssh in. Doesn't it work? Do you get an error? – terdon Feb 10 '14 at 15:20
  • Yes, my error is like Error: Can't open display: (null) Failed creating new xdo instance. I'm just using normal ssh to log-in, not -X or -Y – hyperknot Feb 17 '14 at 17:02
  • You need to set DISPLAY=:0 and to configure xauth. – ctrl-alt-delor Jan 1 '16 at 1:30
1

Just run xeyes on the PI (check that you have env variable DISPLAY setup export DISPLAY=:0.0 or specify it directly

xeyes -display ':0.0'

  • I guess this runs a program on my desktop and displays it on the Pi. What I'm looking for is to have a program run on the Pi and display it on the Pi. Pretty much I'd like to just remote control the Pi, using my desktop's keyboard. – hyperknot Feb 10 '14 at 13:34
  • Arh sorry, misunderstood, when you said opposite. Just run xeyes on the PI (check that you have env variable DISPLAY setup export DISPLAY=:0.0 – X Tian Feb 10 '14 at 13:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.