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.
You have purchased a Linux CVM with the Ubuntu OS. If not, see Customizing Linux CVM Configurations.
sudo su root
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
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.
In case of connection timeout, check the network connection and security group configurations. Create an inbound rule
TCP:5901for the security group to open the listening port 5901 of the VNC Server. For detailed directions, see Adding Security Group Rules.