Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 4 down vote accepted
someapp --display <display identifier>


DISPLAY=<display identifier> someapp

The display identifier is usually :0.

share|improve this answer
It worked, thanks. – eugene y May 15 '10 at 20:05
Make sure you run it as the correct user. – Zaz Sep 19 '14 at 19:43

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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