Ubuntu VNCServer installation process first install x11vnc: sudoapt-getinstallx11vnc in Ubuntu machine and then set the connection password of VNC: The command above the x11vnc-storepasswd will prompt to enter the password, then encrypt the password and save in ~ /. Vnc/passwd file. Start VNCServer: x11vnc-forever-shared-rfbau
Install VNC Server in Ubuntu
First install x11vnc on the Ubuntu machine:
Sudo apt-get install x11vnc
Then set the VNC connection password:
X11vnc-storepasswd
The command above will prompt you to enter the password, and then encrypt the password and save it in ~ /. Vnc/passwd file.
Start VNC Server:
X11vnc-forever-shared-rfbauth ~ /. Vnc/passwd
You can also set the VNC Server to automatically start in the background after the system is started:
1. Copy the password file to the/etc directory:
Sudo cp ~ /. Vnc/passwd/etc/x11vnc. pass
2. Create the/etc/init/x11vnc. conf file and copy the following content to it:
Start on login-session-start
Script
X11vnc-display: 0-auth/var/run/lightdm/root/: 0-forever-bg-o/var/log/x11vnc. log-rfbauth/etc/x11vnc. pass-rfbport 5900
End script
3. Restart your computer. After the restart, you can connect to Windows.
Connection process in Windows
Install the RealVNC Viewer on a Windows machine and then start VNC Viwer:
Enter the IP address or machine name of the Ubuntu machine in the VNC Server, and click the Connect button, prompting you to enter the password:
In the Password box, enter the VNC connection password we just set and click "OK". Then we can see the graphical desktop of the Ubuntu machine.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2