November 21, 2024, 06:12:55 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Cent OS 6.5 set to boot to command line by default but no GUI  (Read 11191 times)

Offline tuxi

  • Linux Noob !
  • *
  • Posts: 20
Hi, I am using one of my computer in office only as server and there is no other use for it, it has not even any monitor  but I found that my server by default boots into graphical mode, so how can I set it that it always boot to command line. What file I need to modify to make it boot to command line.

Also please provide proper procedure.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: Cent OS 6.5 set to boot to command line by default but no GUI
« Reply #1 on: June 04, 2014, 06:25:03 PM »
In centOS, you need to change run-level,
Edit /etc/inittab and look for line which says

id:5

Change :
that  5 to 3 and don't touch anything else, that will now make your computer to always boot into command line by default.

You can edit file by :

nano /etc/inittab

after you have done changes, ctrl+O to write and Ctrl+X to exit.