This is a small how to on how to disable xwindows(GUI) on Redhat/Fedora/Centos server in order to  escape from loop holes in x windows, and unused x windows. Most of the time on servers we never use XWindows to manage server. So there is no need to have it installed or set the default run level to 5. In this post we will see how to set the default runlevel to 3.

 Step1: Login to the server and open /etc/inittab

Vi /etc/inittab

Step2: Search for  id:5:initdefault: and replace it with id:3:initdefault:

Step3: Now save the file and reboot the machine, the system will permanently set 3 as default run level and there will be no gui.

The following two tabs change content below.
Mr Surendra Anne is from Vijayawada, Andhra Pradesh, India. He is a Linux/Open source supporter who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. He works as Devops Engineer with Taggle systems, an IOT automatic water metering company, Sydney . You can contact him at surendra (@) linuxnix dot com.