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?
Asked
Active
Viewed 6,922 times
2 Answers
6
someapp --display <display identifier>
or
DISPLAY=<display identifier> someapp
The display identifier is usually :0
.

Ignacio Vazquez-Abrams
- 45,939
- 6
- 79
- 84
-
Make sure you run it as the correct user. – Zaz Sep 19 '14 at 19:43
3
export DISPLAY=:0.0
and then run your program. you may need to do xauth +localhost
first. edit: xhost +localhost
not xauth

cpbills
- 2,720
- 18
- 12