Assisting 13869700 developers since 2005.

Web Developer, Open Source, Loyal, Dad.  

Read More »

Linux: How to Disable the GUI in CentOS

Posted by David  •  Jul 8th, 2014 8:04:29 pm - Subscribe | Mood: good | Music: No music

This entry explains how to enable / disable to the graphical user interface (GUI) in CentOS by modifying the inittab file. If you are a hard code command line user disabling the GUI will give the added benefit of save resources, and we LOVE saving resources on our servers.

Begin by opening up the command line and doing the following. (I will assume you know how to open up the command line, but if not it can be found on your gnome, kdm, xdm dock.

Step 1: In the command line type:

quote:
vi /etc/inittab


Step 2: Now find the line that states:
quote:
id:5:initdefault:


Step 3:Now simply press i (to insert text, then change the id:5:initdefault: to the following:
quote:
id:3:initdefault:


Step 4: Once this is complete press the colon, and type wq! (This will commit the change.)

So what is going on here is that we are modifying the inittab file and telling CentOS to default the multiuser user mode. Doing so will now disable the GUI from CentOS, and now present to command line from now on.

As always if you have questions, leave a comment. happy.gif

Comments 0  •  Jul 8th, 2014 8:04:29 pm - Subscribe  •  Tweet this entry | Post a comment



Responses

Leave a Reply


ReCaptcha:

Posting as anonymous Anonymous guest, why not register, or login now.

Image Gallery

Badges

Amazon Wishlist Stumble Upon Toolbar
Internet Blogs - Blog Top Sites Internet Blogs - Blog Top Sites Technology

About Me

avatar

@davidpolanco
iPhone: 29.513522,-98.565523 Web Designer, Open Source, Loyal, Dad. Learn more...