Tag Archives: GNOME

Setup VNC on CentOS/RHEL 6

The process of setting up VNC (and GNOME Desktop) is slightly different between CentOS 5 and 6. When using the CentOS 5 VNC installation method for CentOS 6, you will often get the error ‘Group GNOME Desktop Environment does not exist’ while attempting to install GNOME. This article will go over the process required to successfully setup VNC and GNOME on CentOS 6. This tutorial should work whether you are using a VPS, or using a Netinstall of CentOS 6. To begin with, you should use yum to download the GNOME Desktop environment. If you wish to use KDE instead of GNOME, install “KDE Desktop” instead of “Desktop”.

yum groupinstall "Desktop"

The typical yum installation process will take place. After the Desktop group has been successfully installed, install the TigerVNC server and the font required for CentOS 6 to work.

yum install tigervnc-server xorg-x11-fonts-Type1

Afterwards, the GNOME Desktop Environment should have been completed. You want to start the VNC server at that point. Login to the user you want to use the desktop for (typically a user other than root), and run the command:


On your first time running the command, you will be asked to choose a password for VNC for the account After the password is set, you will see something like the following:

New 'fusionswift.com:1 (root)' desktop is fusionswift.com:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/fusionswift.com:1.log

Note for you, your VPS’s hostname will be in place of ‘fusionswift.com’. After the hostname, you will see that number. Add that number to 5900, and that will be the port VNC will be running on. In the above example, port 5901 will be used. To stop the vnc server, use the command, where number is the number you added to 5900:

vncserver -kill :number

CentOS 6 – Installing Additional Games for GNOME

One of my favorite things in GNOME is the official gnome-games package. Even though the number of games is much less than those available to the Macs and Windows, every single one of these games are open source and professionally done. My favorite game has been Four in a Row (known as “Connect Four” to those who has played the Hasbro version). Four in a Row is installed by default on many versions of Ubuntu, and was installed as part of the gnome-games package in CentOS 5. Unfortunately, that game among many others (listed a bit below) are not included as part of the gnome-games package in CentOS 6. Only 5 games are included in CentOS 6’s gnome-games package:

  • AisleRiot Solitaire
  • Iagno
  • Mines
  • Same GNOME
  • Sudoku

After looking around the list of packages, I realized that to get Four in a Row (among many other games), I had to install the gnome-games-extra package. To do that, use the following command:

sudo yum install gnome-games gnome-games-extra

The typical CentOS package installation process will follow. Afterwards, you will find an additional collection of games installed! This now includes:

  • Blackjack
  • Chess
  • Five or More
  • Four-in-a-Row
  • FreeCell Solitaire
  • GnomeFallingBlocks
  • Klotski
  • Mahjongg
  • Nibbles
  • Robots
  • Tali
  • Tetravex