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 found that, exporting DISPLAY=:0.0 and starting a gnome app (xclock) would run on remote machine. The issue , when i log out of SSH, the xclock closes on the remote machine. I wanted it run there until i quit or kill it from remote machine itself. Is there way achieve it ?.

share|improve this question
1  
Why not just leave SSH running in the background? –  Zoredache May 31 '11 at 16:27
    
bcoz, i use laptop from home to access office desktop and while traveling to office, laptop would be closed and connection closes. –  sudurais May 31 '11 at 22:39
    
I am sorry, but using X11 without SSH will not change anything about that. The applications you start via X11 will still disconnect when you move to a different network. It sounds like what you really need is something like freenx. –  Zoredache May 31 '11 at 23:57
    
Zoredache: thats the issue, sometimes freenx itself closes which i started while i'm at work. So, to start those, i need to use ssh. Also, there is issue with 11.04 vino server. bugs.launchpad.net/ubuntu/+source/vino/+bug/772304... thats also doesnt help. –  sudurais Jun 1 '11 at 2:46

2 Answers 2

up vote 1 down vote accepted

If I understand your question correctly, the X Server is on the remote machine. Then you just need to filter the HUP signal with nohup.

Another nice command is screen which lets you reconnect to older sessions. Its worth a look when you often use SSH.

share|improve this answer

Sounds like you are tunneling X through ssh which would explain why it shuts down with ssh. You will need to configure your X client to access the server directly.

share|improve this answer
    
Typically, X11-over-SSH displays are allocated starting at :10, so :0 is more likely to be X.org running on the physically connected display. –  grawity May 31 '11 at 18:12
    
Thanks. How do I configure ? any steps would help. –  sudurais May 31 '11 at 22:40

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.