I want to remote login to another laptop to continue working on session left over. VNC is slow because it’s bandwith hog. I know (or I think I know) that it’s not latency, it’s bandwith because the first update from the top of screen or the top of recently changed view occurs very fast, but the entire redraw takes time.
I believe that X doesn’t send the pixelmap, but instructions on how to redraw screen. So I’d like to use X.
Question: Is there a way for me to say, to all the applications, please now migrate to the X server available remotely? Or can I make my computer think that what it calls :0.0 is no longer attached to the monitor, but is now on a remote machine. (And can I reverse this process so that I can switch back to the other laptop whenever I want)?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
There isn’t a way to do that as part of X itself, but there is the “screen for X” tool xpra. Xpra:
allows you to run X11 programs, usually on a remote host, direct their display to your local machine, and then to disconnect from these programs and reconnect from the same or another machine, without losing any state.
It works quite well and with no additional bandwidth use against a regular X connection. It’s capable of “shadowing” a desktop, in essence copying all the clients over to a remote machine. Depending on your usage pattern you might prefer just pointing applications at the xpra server directly, and then connecting to it from that machine when you’re on it.
Some applications do rely on being on the same physical machine as the client in various ways, and those may misbehave. Direct rendering is the most common issue that comes up there – GL and hardware-accelerated video probably won’t perform as well or may break entirely.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0