One of the good (few) features windows has is it's RDP protocol implementation. This wonder allows me to work with my 2 screen setup in the office, then drive home, open a VPN connection followed by RDP connection to the office PC from home and get my environment exactly as I left it (except from the screen resolution which adapted to my home PC screen hardware).
The above works, and it works great - On Windows. I want the same feature on Linux. I want to be able to open a Gnome / KDE / (other windows manager supports this feature) at the office computer then connect from home and have the displays exported to my current screen.
I've tried several possible work around like having a VNC session constantly open and connecting to it both from work and from home - This works but is no fun (you lose the responsiveness of the "native" application, access to local storage and co.).
Could you suggest a solution? Perhaps some Xorg plugin ?
Thank you for reading, Maxim.
Yes, the Xorg module allows you to share your :0 (local) display. In /etc/X11/xorg.conf in the "Module" section add
and in the "Screen" section add:
Do explore other options for "UserPasswdVerifier." The VNC server will listening on tcp port 5900. Even using a VPN I would not directly connect to the port. Block all non-localhost access and use an SSH tunnel.
Check into NX. I usually open a new session on NX, but it might be possible to use your primary one.
Edit: The feature is called Desktop sharing and is described in the server admin manual.
Ubuntu allow desktop sharing, and I expect most distributions now have it. This can be invitation based or password based. In your case I expect you will want password based. Connection is via a VNC client. There is a browser based client that can be used when you don't have a client on the system you are connecting from.
As @SvenW has pointed out, NX is probably your best bet. Once you have it up & running correctly (which can be.. difficult), you have the ability to "suspend" a session from your Work PC and then login from home to "restore" the same session. A couple of caveats:
The NoMachine NX Client claims that it can scale your session resolution appropriate to your actual hardware. However, I have actually yet to be able to get this to work - for example, starting a session with 32-bit colour and then attempting to restore the session when running at 16-bit colour depth will fail.
Sharing your local drives via the NX client is based on SMB/CIFS and I had very little luck trying to get this to work correctly. The nearest workaround I can think of is mounting the remote filesystem via SSHFS locally and then dragging & dropping the files into the appropriate locations.
There are more than one vnc server, you can configure compression, etc
There is rdesktop and forks (rdp server), you can use ms terminal server clients with it.
X11 is a server/client protocol, ssh supports x11forwarding, xdmcp for remote logins (kdm, gdm,...)
nx : improves x11 protocol, it can also tunnel rdp and vnc