I would like to know the diffrence beteen the following commands:

  1. sudo x11vnc
  2. sudo x11vnc -auth /var/lib/lightdm/.Xauthority -display :0

thank you in advance.

  • Which version of Ubuntu are you using? – user68186 Jun 8 '18 at 11:52
  • Are you familiar with the man command? man sudo;man x11vnc – waltinator Jun 8 '18 at 13:20
  • @waltinator just need the man x11vnc – damadam Jun 8 '18 at 13:31

It is the same command so there is no difference.

If you meant: what do the options mean: the manual explains it like this:


-display disp

X11 server display to connect to, usually :0. The X server process must be running on same machine and support MIT-SHM. Equivalent to setting the DISPLAY environment variable to disp.

-auth file

Set the X authority file to be file, equivalent to setting the XAUTHORITY environment variable to file before startup. Same as -xauth file. See xsecurity(7) , xauth(1) man pages for more info.


  • so probably using sudo x11vnc is the default command which called sudo x11vnc -auth /var/lib/lightdm/.Xauthority -display :0 – damadam Jun 8 '18 at 13:30

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.