1

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.

hyperknot
  • 111
  • 1
  • 6
  • 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 01 '16 at 01:30

1 Answers1

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'

terdon
  • 234,489
  • 66
  • 447
  • 667
X Tian
  • 10,413
  • 2
  • 33
  • 48
  • 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