Virtual Network Console (VNC) is a remote control tool software developed by AT&T European Research Laboratory. An open-source software based on UNIX and Linux operating systems, VNC features robust remote control capability, high efficiency, and strong practicability. Its performance is comparable to any remote control software in Windows or Mac. This document will guide you through on how to build a visual Ubuntu desktop by using VNC.
The following software is used to build a visual Ubuntu desktop.
Linux: Linux OS. This document uses Ubuntu Server 16.04.1 LTS 64-bit as an example.
You have purchased a Linux CVM with the Ubuntu OS. If not, see Customizing Linux CVM Configurations.
sudo su root
apt-get install vnc4server
If the result similar to the following is returned, it indicates that VNC has been launched successfully.
sudo apt-get install x-window-system-core
sudo apt-get install gdm
During the installation, choose “gdm3” for
sudo apt-get install ubuntu-desktop
Default display manager:.
sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
# Uncomment the following two lines for normal desktop: export XKL_XMODMAP_DISABLE=1 unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc unset DBUS_SESSION_BUS_ADDRESS gnome-panel & gnome-settings-daemon & metacity & nautilus & gnome-terminal &
vncserver -kill :1 # Enter the command to terminate the original desktop process (wherein :1 is the number of the desktop)
vncserver :1 # Generate a new session
CVM IP address: 1into VNC Viewer, and press Enter.