edit-icon download-icon

Install VNC on Ubuntu

Last Updated: Dec 11, 2018

1. Create a Ubuntu server

Visit the Purchase Page of Simple Application Server.
Select the Ubuntu image.

2. Install and configure VNC

  1. After the server has been created, click the Connect button on the Simple Application Server card on the Servers page.

  2. Enter the following command to retrieve the latest suite information.

    1. apt-get update
  3. Enter the following command to install VNC. Enter Y to confirm the installation.

    1. apt-get install vnc4server


  4. Enter the following command to start VNC.

    1. vncserver


  5. Set password0fa740c1-5ff9-49cd-a716-b8440cdf3f64.png

When you see New 'iZbp1idfrdpf1c3its2hpkZ:1 (root)' desktop is iZbp1idfrdpf1c3its2hpkZ:1,it means VNC has been started.76966a4f-c31a-4ba4-9a6f-aac73ac1c268.png

GNOME desktop environment installation and configuration

  1. Install basics for x-windows.
    1. sudo apt-get install x-window-system-core
  2. Install logon manager.
    1. sudo apt-get install gdm
  3. Install Ubuntu desktop.
    1. sudo apt-get install ubuntu-desktop
  4. Install GNOME supporting software.
    1. sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
  5. Modify the VNC configuration file.
    1. vi ~/.vnc/xstartup
    Change to
  1. #!/bin/sh
  2. # Uncomment the following two lines for normal desktop:
  5. # exec /etc/X11/xinit/xinitrc
  7. gnome-panel &
  8. gnome-settings-daemon &
  9. metacity &
  10. nautilus &
  11. gnome-terminal &
  1. Terminate the original desktop process, and enter the following command (wherein, 1 is the number of the desktop):
    1. vncserver -kill :1
  2. Enter the following command to generate a new session:
    1. vncserver :1
  3. The 5900 and 5901 ports are required to activate the VNC service. For more information, see the description of firewall.8e91d9aa-3180-456a-ad97-f43c7e5fe998.png

3. Use VNC to connect

  1. After VNC is installed. Connect to Ubuntu by using IP address:1.

  2. Enter the VNC password set before, and click OK to connect.

  3. After the connection has been established, you can see the Ubuntu desktop.

Thank you! We've received your feedback.