What is VNC?
VNC (Virtual network console) is the abbreviation for the virtualization console. It is an excellent remote control tool software developed by the prestigious European Research Laboratory at T. VNC is a free, open source software based on UNIX and Linux operating systems that is powerful, efficient and practical, with performance comparable to any remote control software in Windows and Macs. In Linux, VNC consists of the following four commands: VNCSERVER,VNCVIEWER,VNCPASSWD, and Vncconnect. In most cases, users only need two of these commands: Vncserver and Vncviewer.
1. First need to install Vnc4server on Ubuntu
# Apt-get Install Vnc4server
2. The first time you execute the vncserver, you need to set a 6-bit password for the client connection
# Vncserver
Password
3. Remote link ip:1 in VNC client (novnc/vncviewer), but gray screen after entering password and mouse x type
This is because Vncserver cannot find the specified graphical tool in the Ubuntu system
Now you need to download the graphical tool in Ubuntu
# apt-get Install Gnome-panel Gnome-settings-daemon metacity Nautilus gnome-terminal
After the installation is complete, you need to change the ~/.vnc/xstartup file to add the following:
# Vim ~/.vnc/xstartup
Export xkl_xmodmap_disable=1
Unset Session_manager
Unset dbus_session_bus_address
Gnome-panel &
Gnmoe-settings-daemon &
Metacity &
Nautilus &
Gnome-terminal &
4. Restart Vncserver then OK
# Vncserver:2
Note:
Stop a VNC service
# Vncserver-kill: Port number
Fix configuration in Ubuntu remote display gray screen for VNC