You are on page 1of 2

Managing Physical and Logical Volumes

file:///C|/Users/FourieR_CK/Desktop/Mini%20Library/Linux/Centos%20GUI%20Installation.htm[08/08/2014 15:47:39]

Li nux Ti ps

Add GNOME to a CentOS Minimal Install
by J eff Hunter, Sr. Database Administrator
Cont ent s
CentOS 6
About the Author
I nt r oduc t i on
In most instances, the Linux servers I setup are used to host the Oracle database software and only require using the Command-Line Interface (CLI) for the OS. This is
beneficial because I only need to perform a minimal installation and can add only those required Linux packages (RPMs) needed to support the database. However, there
are situations where I need to access a graphical desktop in order to install or run certain Graphical User Interface (GUI) applications.
This guide provides the steps needed to add the GNOME Desktop to a CentOS minimal installation where the OS was installed without the X Window System.
Cent OS 6
In this section, the GNOME desktop will be added to a new server running CentOS 6.2 (x86_64) after performing a "Minimal" install.
I nst al l Desk t op Pac k ages
# yum -y groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts"
You can also install the following optional GUI packages.
# yum -y groupinstall "Graphical Administration Tools"
# yum -y groupinstall "Internet Browser"
# yum -y groupinstall "General Purpose Desktop"
# yum -y groupinstall "Office Suite and Productivity"
# yum -y groupinstall "Graphics Creation Tools"
Finally, if you wanted to add the K Desktop Environment (KDE).
# yum -y groupinstall kde-desktop
When using yumgr oupi nst al l , the gr oupi nst al l option only installs default and mandatory packages from the group. There are times when you also want to include
optional packages within a group. I have not figured out (yet) how to control which package types to install (group package "policy") from the command-line using yum. The
only method I know of to also include optional packages is to edit the / et c/ yum. conf file and add the following to the [ mai n] section:
gr oup_package_t ypes=def aul t mandat or y opt i onal
The reason I mention this is because I wanted to install "Terminal emulator for the X Window System" (xt er m) which is under the group "Legacy X Window System
compatibility". xt er mhappens to be an optional package and did not get installed until I added gr oup_package_t ypes=def aul t mandat or y opt i onal to
/ et c/ yum. conf .
# yum -y groupinstall "Legacy X Window System compatibility"
I did find a plug-in for yumthat allows users to specify which package types within a package group should be installed when using yumgr oupi nst al l .
Enabl e GNOME
German LHD Cars
Trendy German Vehicles for Sale Low price and
high quality vehicles
Managing Physical and Logical Volumes
file:///C|/Users/FourieR_CK/Desktop/Mini%20Library/Linux/Centos%20GUI%20Installation.htm[08/08/2014 15:47:39]
Since the server was previously running on CLI mode, we need to change the initialization process for the machine to boot up in GUI mode.
Open / et c/ i ni t t ab using a text editor and change following line:
i d: 3: i ni t def aul t :
i d: 5: i ni t def aul t :
After making the change, reboot the machine.
# init 6
Note that you can switch from GUI to CLI mode manually by using following method:
GUI t o CLI : Ct r l + Al t + F6
CLI t o GUI : Ct r l + Al t + F1
I nst al l i ng Addi t i onal Appl i c at i ons
After logging in to the GNOME Desktop, you can now go to Syst em > Admi ni st r at i on > Add/Remove Sof t w ar e to manage application in CentOS.
By using this wizard, you can install various applications similar to yumbut through a GUI. Applications installed using this method will appear in the Appl i c at i on menu
About t he Aut hor
J effrey Hunter is an Oracle Certified Professional, J ava Development Certified Professional, Author, and an Oracle ACE. J eff currently works as a Senior Database
Administrator for The DBA Zone, Inc. located in Pittsburgh, Pennsylvania. His work includes advanced performance tuning, J ava and PL/SQL programming, developing high
availability solutions, capacity planning, database security, and physical / logical database design in a UNIX, Linux, and Windows server environment. J eff's other interests
include mathematical encryption theory, programming language processors (compilers and interpreters) in J ava and C, LDAP, writing web-based database administration
tools, and of course Linux. He has been a Sr. Database Administrator and Software Engineer for over 18 years and maintains his own website site at: J eff graduated from Stanislaus State University in Turlock, California, with a Bachelor's degree in Computer Science.
Copyr i ght (c ) 1998-2013 J ef f r ey M. Hunt er . Al l r i ght s r eser ved.
All articles, scripts and material located at the Internet address of is the copyright of J effrey M. Hunter and is protected under copyright laws of the United States. This
document may not be hosted on any other site without my express, prior, written permission. Application to host any of the material elsewhere can be made by contacting me at
I have made every effort and taken great care in making sure that the material included on my web site is technically accurate, but I disclaim any and all responsibility for any loss, damage or destruction of
data or any other property which may arise from relying on it. I will in no case be liable for any monetary damages arising from such loss, damage or destruction.
Last modified on
Friday, 29-Mar-2013 14:44:05 EDT
Page Count: 43193