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 using using slow but portable computers (asus eeepc, vivobook, etc) and do all my development on a remote server.

most of the time i just ssh to the server, start a screen session, if anything happens (e.g. client sleep, connection is interrupted, etc) i just connect again and resume my screen session.

But recently i've been running X applications as part of my development, notability the android emulator. And everytime i put my laptop to sleep and try to resume work, all my X applications died with something similar to:

XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server "localhost:10.0"
      after 356 requests (356 known processed) with 0 events remaining.

Is there anyway i can have that sort of remote workflow that I have with console applications but with X applications?

share|improve this question

2 Answers 2

Try xpra, it should work in a similar way to screen – it also gives some performance improvements over plain x11-over-ssh.

share|improve this answer

Probably you should try using vnc instead of X11 forwarding. This way your remote session will keep open as long as you like. You'll even have the benefit of using a whole desktop environment instead of just a single application window.

Using this approach you only have to start vncserver on the remote machine. Forwarding whatever local port you like to use to the port used on the remote machine (ssh -Llocal-port:localhost:remote-port) and only allowing local connections on the remote machine there shouldn't be any security penalty in comparison to X11 forwarding.

share|improve this answer
1  
ouch, vnc versus remote X is very painful. granted, it keeps the state. but the performance/usability penalty is horrendous. –  gcb Mar 12 '13 at 0:54
1  
I've been using it constantly for the purpose you described - working on a much faster machine from a portable. Running in fullscreen mode there isn't any difference in usability to working locally. With plain old core protocol X11 forwarding had some advantage in the past, but today the sides have changed as e.g. extensions like XRender used in font rendering continuously pushing glyph data from client to server make it extremely painful in terms of performance to still use X forwarding. It sure had it's pros int the past, but those days have passed by long long ago. Asked me it's ouch X ! –  mikyra Mar 12 '13 at 2:54
    
all true. i will probably give it a try if xpra does not work out. I just rather have the full colours and local window manager. but in the end, not keeping the session during network down is something that trumps all other things... –  gcb Mar 12 '13 at 17:55

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.