Bill Lovett

VNC to current desktop, not new session

I want to start a VNC session that will share the current desktop on a remote laptop, rather than start a new one. The x11vnc package makes that possible.

It seems like the remote laptop must be logged in for this to work.

On laptop:

 $ x11vnc -display :0
 

On local machine:

 $ ssh -L 3781:localhost:5901 laptop
 

in another terminal on local machine:

 $ vncviewer localhost:3781