114k views
0 votes
How do I use x11vnc -Auth?

User Xizam
by
6.9k points

1 Answer

3 votes

Final answer:

To use x11vnc with the -Auth option, you specify the X authority file's location for VNC server authentication. Replace the file path and display number according to your system, ensuring you have permission to access them.

Step-by-step explanation:

The x11vnc command is used to start a VNC (Virtual Network Computing) server for X displays. To use x11vnc with the -auth option, you need to specify the location of the X authority file, which x11vnc should use to authenticate connections. This file is usually located at ~/.Xauthority in your home directory for a user session or at /var/run/lightdm/root/:0 for a display manager like LightDM.

Here is an example command:

x11vnc -auth /home/yourusername/.Xauthority -display :0

In this case, /home/yourusername/.Xauthority is the path to your X authority file, and :0 specifies the display number of your X session. You might need to replace these with the paths and display numbers appropriate for your system. It's important to ensure that the X server is running and that you have the necessary permissions to access the authority file and the display.

User Thandi
by
8.0k points