How do I start a X-application on remote server over ssh?

someapp --display <display identifier>

or

DISPLAY=<display identifier> someapp

The display identifier is usually :0.


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