This article describes how to enable x11vnc in ubuntu and how to create a VNC logon password.
Start the Ubuntu Software Center and select "X11VNC server" for installation. Of course, you can also install it using the sudo apt-get install command.
Next, create the login password.
Copy codeThe code is as follows:
Sudo x11vnc-storepasswd
After entering and confirming the password, it is saved to the user's password Directory:
Set the X11VNC password file:
Copy codeThe code is as follows:
Sudo x11vnc-storepasswd in/etc/x11vnc. pass
Copy the password file:
Copy codeThe code is as follows:
Sudo cp/root/. vnc/passwd/etc/x11vnc. pass
Open the/etc/init/x11vnc. conf file and paste the following content. If this file is not available, use a text tool to create one. Port: 5900, which can be customized.
Copy codeThe code is as follows:
Start on login-session-start
Script
/Usr/bin/x11vnc-auth/var/run/lightdm/root/: 0-noxrecord-noxfixes
-Noxdamage-rfbauth/etc/x11vnc. pass-forever-bg-rfbport 5900-o
/Var/log/x11vnc. log
End script
Save and restart Ubuntu.
Start VNC Viewer in another operating system. here, Real VNC installed in Windows 7 is used. Enter the corresponding IP address or host name and click Connect.
, You can see the Ubuntu login interface.