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

Linux/UNIX: Configure OpenSSH To Listen On an IPv6 Address

How do I enable OpenSSH SSH server to listen on an IPv6 address under Linux or UNIX operating...

Linux RAM Disk: Creating A Filesystem In RAM

Software RAM disks use the normal RAM in main memory as if it were a partition on a hard drive...

Nginx Force (Redirect) WWW.Domain.COM To Domain.COM

I know how to force and redirect www.example.com to example.com under Lighttpd web server. How do...

CentOS / Redhat: Install nginx As Reverse Proxy Load Balancer

nginx is a Web and Reverse proxy server. Nginx used in front of Apache Web servers. All...

SUSE Linux Restart / Stop / Start Network Service

Task: Start Network Service # /etc/init.d/network start # /etc/init.d/network start eth0 Task:...