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.
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
See also:
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop













{ 1 comment… read it below or add one }
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 ;)