Building a Visual Ubuntu Desktop

Last updated: 2020-07-31 10:51:23

    Overview

    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.

    Sample Software Versions

    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.

    Prerequisites

    You have purchased a Linux CVM with the Ubuntu OS. If not, see Customizing Linux CVM Configurations.

    Directions

    1. Log in to a Linux instance using VNC.
    2. Run the following command to switch to the “root” account.
      sudo su root
    3. Run the following command to obtain and update to the latest version.
      apt-get update
    4. Run the following command to install VNC.
      apt-get install vnc4server
    5. Run the following command to launch VNC and set a password.
      vncserver
      If the result similar to the following is returned, it indicates that VNC has been launched successfully.
    6. Run the following command to install the X-windows base package.
      sudo apt-get install x-window-system-core
    7. Run the following command to install the login manager.
      sudo apt-get install gdm
    8. Run the following command to install Ubuntu desktop.
      sudo apt-get install ubuntu-desktop
      During the installation, choose “gdm3” for Default display manager:.
    9. Run the following command to install the GNOME supporting software.
      sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
    10. Run the following command to access the VNC configuration file.
      vi ~/.vnc/xstartup
    11. Press i to enter edit mode, and modify the configuration file as follows.
      #!/bin/sh
      # 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 &
    12. Press Esc and enter :wq. Save and close the file.
    13. Run the following commands to restart the desktop process.
      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
    14. Click here to download and install VNC Viewer. Select the version that matches your operating system.
    15. Type CVM IP address: 1 into VNC Viewer, and press Enter.
    16. Click Continue in the pop-out dialog box.
    17. Enter the VNC password set in Step 5 and click OK.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help