≡ Menu

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


Replace with:


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

See also:

Tweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?

{ 1 comment… add one }

  • DonEstefan September 18, 2010, 3:53 pm

    Another Method:
    If your CentOS/RHEL box is powered off, and you want to make sure it boots to runlevel 3 (No X Server) then:
    – Start the server and access your bootmanager (grub/lilo).
    – edit your boot entry
    – inside your boot entry is a line starting with “kernel”
    – add a ” 3″ (without quotation marks) to the end of the line
    – boot
    This change will be lost after the next reboot.
    To make the change permanent, just refer to “Method 2” in the Article ;)

Leave a Comment