Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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
add comment

2 Answers

up vote 3 down vote accepted
someapp --display <display identifier>

or

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
add comment

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
add comment

Your Answer

 
discard

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.