[SOLVED] CentOS 6.6 Stop Xorg manually

General support questions
Post Reply
Nate88
Posts: 5
Joined: 2015/03/23 21:22:42

[SOLVED] CentOS 6.6 Stop Xorg manually

Post by Nate88 » 2015/03/23 21:35:56

Hello everyone.
I have a question regarding xorg. In earlier versions of CentOS I could type startx to manually start the desktop environment. However, In CentOS 6.6 during the desktop install, the gnome desktop starts automatically. I would rather be able to kill the desktop and restart it manually. Do I have to adjust something in a configuration file, or would it be more simple to reinstall the O.S. and just click "minimal desktop?" I am wondering if the minimal desktop install is setup for manual xorg sessions. Any input on this would be greatly appreciated.
- Thanks in advance :D
Last edited by Nate88 on 2015/03/23 23:43:35, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: CentOS 6.6 Stop Xorg manually

Post by TrevorH » 2015/03/23 21:39:57

You can still do this but you have to tell it to start in runlevel 3 (command line only). To do this you need to edit /etc/inittab and change 5 to 3 in the initdefault line.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: CentOS 6.6 Stop Xorg manually

Post by gerald_clark » 2015/03/23 21:40:32

Read /etc/inittab. Change the runlevel from 5 to 3.

Nate88
Posts: 5
Joined: 2015/03/23 21:22:42

Re: [SOLVED] CentOS 6.6 Stop Xorg manually

Post by Nate88 » 2015/03/23 22:41:08

!WOW!
You guys are fast to answer questions.
Thanks, that solution worked perfectly.
...now how do I mark this answer officially "solved?"
;)

( for newbies, i went into the terminal, typed in "su" [super user] then I typed in my password, and then i typed in the word ''gedit.'' (that's the name of a solid text editor that was already installed,)
- THEN once I opened up gedit as the admin, i went to the location "/etc/inittab" and then i found the number ''5'' and changed it to the number "3," clicked save and exited the Gedit text editor. Then I restarted the computer and the fix was what I was looking for. If newbies were wondering why I did this, is because sometimes it is nice to work both headless and with a desktop environment. If this does not interest anyone new to Linux, then ignore this post until you are feeling more friskey in the command line lol. )

Post Reply