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

Used And Free Memory

What's going on? Linux is borrowing unused memory for disk caching. This makes it looks like you...

Nginx: Custom Error 403 Page Not Working with IP Deny Configuration

I block or deny access based on the host name or IP address of the client visiting website under...

How Do I Block an IP Address on My Linux server?

How do I block an IP address or subnet under Linux operating system? In order to block an IP on...

Linux Default Services Which Are Enabled at Boot

Can you provide a guidance on default CentOS / Fedora / RHEL / Redhat enterprise Linux services...

How do I find out System / Server Memory Utilization

free command example Type the free command at shell prompt: $ free $ free -m Output:...