Taking Ubuntu 12.04 Server as an example, the Server has installed the lightdm Display Manager.
In VNC, tightvncserver is installed here.
So easy!
1. Install tightvncserver
# Sudo apt-get install tightvncserver
2. Modify the lightdm Configuration
# Vim/etc/lightdm. conf
Add only the following two rows
[VNCServer]
Enabled = true
3. Restart the lightdm service.
/Etc/init. d/lightdm restart
Effect 1.
Figure 1
Note: by default, lightdm can only log on to the system by clicking the user and entering the password. If you need to enter the user name and password, you need to add it in the lightdm. conf area.
Greeter-show-manual-login = true, but the root user can log on directly. 2.
Figure 2
VNC installation Configuration
Install and configure VNC in CentOS 6.3
In Linux, the dependency installation VNC is not detected.
CentOS6 VNC service installation and configuration
VNC remote control installation and Setup
Install VNC for accessing Ubuntu 12.04 through Windows Remote Desktop