CentOS/RHEL Linux: Remove GDM

How do I uninstall a GUI Gnome login system ( GDM ) from my CentOS Linux v5.5 based server?

GDM is the GNOME Display Manager, a graphical login program for Redhat, RHEL, Fedora and CentOS Linux based systems. The X Window System by default uses the XDM display manager which needs editing files. GDM allows to customize login using GUI based tools. It also supports customization with themes.

Fig.01: CentOS GNOME Display Manager

Fig.01: CentOS GNOME Display Manager

Method # 1: Delete GDM and X Window

Type the following command:
# yum groupremove "X Window System"
Reboot the systems:
# reboot

Method # 2: Disable GDM and X Windows Login For All Sessions

Edit /etc/inittab, enter:
# vi /etc/inittab
Find:

id:5:initdefault:

Replace with:

id:3:initdefault:

Save and close the file. Stop currently running GUI session:
# init 3

Method # 3: Temporarily Disable GDM and X Windows Login For Current Sessions

Just type the following command:
# init 3
To get back to GUI login session again, enter:
# init 5

Was this answer helpful?

 Print this Article

Also Read

TightVNC Desktop

1. Installing the required packages   The server package is called 'vnc-server'. Run the...

mod_setenv: Lighttpd Send Custom Headers

How do I add a header to the HTTP request that was received from the client under Lighttpd web...

CentOS / Redhat: Create Software RAID 1 Array

RAID devices are virtual devices created from two or more real block devices. Linux supports...

HowTo: Update Centos Linux 5.4 to 5.5

Step # 1: Make A Backup It cannot be stressed enough how important it is to make a backup of...

PHP Increase Upload File Size Limit

Your php installation putting limits on upload file size. The default will restrict you to a max...