Read-Only VNC using x11vnc

Viewing Ubuntu Desktop machine via VNCHere’s how to remotely log into a Linux machine desktop session from a windows machine. With x11vnc you can log into a running desktop machine session connected to a physical screen. I am assuming a Debian or Ubuntu-based host machine with a running X environment.


  1. Download and install x11vnc.
    sudo apt-get install x11vnc
  2. Now let’s create a password.
    x11vnc -storepasswd

    The password is written to:


    (Note: The vnc connection is unencrypted and therefore should only be used within trusted network. See the x11vnc documentation for secure connection via SSH tunneling)

  3. Once you have created your password, start the server with
    x11vnc -usepw -forever -viewonly
  4. You can now connect to your machine via a VNC client and are promted for the password by doing so. For Windows, I recommend ultravnc viewer.