25
Mar

connect to physical display using TigerVNC

When connecting to a VNC server it usually creates a new display session, which runs independently to your “real” desktop session. This new session is not displayed on a physical display connected to your computer, so you won’t see the windows that are visible on your physical screen.

That’s a nice feature, because with this many people can use one computer at the same time, but what if you want to see what’s going on on your physical screen?

TigerVNC’s answer to this question is x0vncserver. To start a VNC server for your physical display, simply call the command

x0vncserver -display :0

On a remote machine you can then use vncviewer to connect to the machine:

vncviewer DotWhenNoCursor=1 <server>

Replace with the IP or DNS of your machine. The parameter DotWhenNoCursor is optional, but in my case a big help, because sometimes the cursor of the computer is not visible.

There's 3 Comments So Far

  • bgstack
    August 9th, 2016 at 19:30

    Thank you for this! I found your site just this time, never mind I’ve looked for Linux remote desktop solutions before. This page is the first hit for a search of “tigervnc share current desktop.”
    I’m trying to migrate off of Windows, and being able to connect to the current desktop of a GNU/Linux desktop environment is a major step in making that a reality!

  • JustWalkingAround
    July 12th, 2018 at 13:18

    Thank you!

  • CRISTIANO DA SILVA AZEVEDO
    October 19th, 2018 at 13:25

    Nice, work for me. Thank you!

Share your thoughts, leave a comment!