If you’ve moved onto the big leagues and want to run CentOS without the X Windows System desktop you can run this to remove it.
First make sure your machine knows to start up in text mode:
# vi /etc/inittab
Find the text that looks like:
Replace the 5 with a 3:
Reboot and you’ll be all set. To save space, remove the entire default CentOS 6.5 desktop by doing the following:
sudo yum groupremove "X Window System"