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'm trying to design a digital signage system and I've hit a stumbling block. I've installed Xorg to run the graphical signage app. By default the server shows the X server on the main display (as intended), however I was wondering if it is possible to log in via SSH and then run a command ( for arguments sake) and have this run the program on the X display?

share|improve this question
Can you clarify, do you want your app to run locally to the box you ssh'ed into? Or remotely on the box you ssh'ed FROM? – polynomial Sep 2 '11 at 18:00
up vote 3 down vote accepted

Please update the question for clarity, from reading this it sounds like you are trying to run a graphical app and have it appear on the X server running locally on the box you ssh'ed into. If that is the case you need to set the DISPLAY variable, you can get more information about that here:

share|improve this answer
Thats exactly what I wanted. Cheers – Brad Morris Sep 4 '11 at 9:44

If you are using OpenSSH client, connect like this:

ssh user@host -X

Then run you X program. It should appear at your local machine.

P.S. There can be some trouble with Xauthority. I can't remember at the moment but if you get it - leave a comment.

share|improve this answer
The 'xauth' program must be installed on the remote host and ~user/.Xauthority must be writeable by the user. – daff Sep 2 '11 at 17:59

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.