x11vnc XOpenDisplay failed fix

In later versions of Ubuntu running the command “x11vnc” no longer works. The suggestions in the error message also do not work. It boils down to the user’s login session now running on display :1, not :0. Thanks to this post I found the fix to be simple: Specify :1 as the display.

x11vnc -display :1

Resolved the issue. X11vnc is working again!

3 thoughts on “x11vnc XOpenDisplay failed fix”

  1. Thank you for this simple solution. I was going bonkers because none of the other answers on the internet work.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.