Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm certain this will have been asked elsewhere, but I can't seem to word it in a way that is picking anything up.

I have a laptop next to me that I want to test my graphical (SDL) application on, as I develop. I want to start the process by executing the program via SSH.

Is this possible and, if so, how?

share|improve this question

migrated from stackoverflow.com May 22 '11 at 10:09

This question came from our site for professional and enthusiast programmers.

1  
belongs to superuser –  freethinker May 22 '11 at 1:48

2 Answers 2

up vote 2 down vote accepted

Already figured it out, I should have held my horses. I entered export DISPLAY=':0' into my terminal (running SSH).

share|improve this answer
    
If you do ssh -X it should set the appropriate variables for you automatically. –  El Yobo May 22 '11 at 1:46
    
SSH supports X11 forwarding inherently, so if you start a ssh session with -X, then you can open X11 application over your ssh connection –  freethinker May 22 '11 at 1:49
1  
I don't want X forwarding, see my response to djs. –  user80790 May 22 '11 at 2:38
    
That would probably be considered a display on the local machine... local to where the program is running. Anyway, now that we understand what you want, yes setting DISPLAY is the right approach. Also note that you have to be the same user as logged into X locally, or else adjust xauth settings. –  Ben Voigt May 22 '11 at 3:00

You're looking for X forwarding.

ssh -X user@host <program>
share|improve this answer
1  
its -X actually (capital), -x will infact disable X11 forwarding, you might want to update your answer –  freethinker May 22 '11 at 1:47
3  
No I'm not, X forwarding is exactly what I don't want. I want to do all of my typing on one machine, but execute (via SSH) a command that will open a program on the remote machine. –  user80790 May 22 '11 at 2:37
    
@Muu, I suggest you update your question since you didn't clearly specify you wanted to display the program remotely. –  djs May 22 '11 at 4:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.