Set up a Linux desktop with GNOME and VNC

Some of the information in this article is advanced material we make available as a courtesy. Please be advised that you are responsible for properly following the procedures below. Customer Support cannot assist with these topics.

You can set up quick and secure desktop access to your Linux dedicated server environment using Virtual Network Computing (VNC) and a secure connection between the server and the desktop.

Be sure to complete all steps below to ensure a secured connection. VNC is unencrypted and not safe over an open network, so all steps below are required to set up and secure the connection.

Note: These instructions are for Linux servers running CentOS 6 or Fedora only.

Step 1 — Installing GNOME and VNC

Step 2 — Configuring VNC for Remote Access to the Desktop

These settings configure the following:

  • 1 — This indicates the port used for the VNC connection. Only the last digit is entered and the first three are implicit. For example, 1 defines port 5901. 9 indicates use of port 5909.
  • 1024x768 — This sets the size that VNC renders your desktop. You can optionally change it.
  • -localhost — This option limits VNC to allow only local connections. This setting makes the VNC connection more secure when used in conjunction with an SSH tunnel. SSH tunnel setup is in the next section.
  • Type the following, and then press Enter:
    /sbin/service vncserver start
  • Type the following, and then press Enter:
    /sbin/service vncserver stop
  • To Start the VNC Server and Verify That It's Running

    1. Log in to your Linux dedicated server as root user via SSH.
    2. Type the following, and then press Enter.
      /sbin/service vncserver start
    3. Type the following, and then press Enter.
      /sbin/chkconfig vncserver on

      Note: Use this last command at any time to verify that the service is started. After a reboot, for example.

    You've now completed configuration of VNC. The next step is to set up the secure SSH tunnel to access your Linux desktop.

    Step 3 — Configuring a Secure Connection to the Linux Desktop

    Step 4 — Accessing the Linux Desktop

    (Optional) Step 5 — Removing GNOME and VNC