Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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.