5

I need to start a X program on a remote server over ssh. The program should use the remote X-server (no x-forwarding required). What's the proper way to do this?

2 Answers 2

6
someapp --display <display identifier>

or

DISPLAY=<display identifier> someapp

The display identifier is usually :0.

1
  • Make sure you run it as the correct user.
    – Zaz
    Sep 19, 2014 at 19:43
4

export DISPLAY=:0.0 and then run your program. you may need to do xauth +localhost first. edit: xhost +localhost not xauth

1
  • Thanks mate! like 14 years later, still helping people!! Was wasting over an hour trying to get X11 to work without any success. This was all I needed, since I did not care about seeing the output and just wanted to trigger the app remotely! Jan 3 at 18:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .