LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2012, 07:29 AM   #1
sudi267
LQ Newbie
 
Registered: Sep 2012
Distribution: debian ubuntu
Posts: 10

Rep: Reputation: Disabled
Unhappy how to change runlevel of centOS


hello friends
i have changed runlevel of centos6.2 to 5 by editing /etc/inittab file
earliar it was 3

if i want to revert it i.e setting the runlevel back to 3 ?
how do i do that, the OS is taking a longer time to boot,infact jus progress bar comes and the complete screen of virt-viewer becomes blank their is no login prompt also

i have installed centOS6.2-i386 as virtual OS on ubuntu 12.04 desktop version
i m totally new to LINUX i did all the installation after searching on google
i dont have deep knowledge of linux
so please help me
 
Old 09-24-2012, 08:10 AM   #2
Terminator3000
Member
 
Registered: Jun 2012
Distribution: Centos 6 & Fluxbox
Posts: 86

Rep: Reputation: Disabled
Centos

@sudi267

There is a decent tutorial on installing Centos at http://minimallinux.blogspot.co.uk/2...l-install.html

also regards run levels if you are using headless then the inittab run level should remain at 3, otherwise to run X server then run level 5 is required as at the link below

http://minimallinux.blogspot.co.uk/2...a-drivers.html

Both links cover petty comprehensively the setting up and running of a graphical Centos 6 box although with very minor modifications it can be headless/server

To set the runlevel back to 3 from 5 just
$sudo vi /etc/inittab and change to 3

Last edited by Terminator3000; 09-24-2012 at 08:13 AM.
 
Old 09-25-2012, 01:32 PM   #3
nijinashok00
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Rep: Reputation: Disabled
To enter into a different run level you want to edit /etc/inittab. Since you are not allowed to enter into OS you will not be allowed to edit this. But there is a solution.

Enter into grub menu by pressing any key while loading. Then click a to edit the kernel. Now enter 3 [after giving a blank space] at the end of the line and click enter. Now you can enter into the run level 3 and can set your default run level back to 3 using /etc/inittab.

You are not allowed to enter run level 5 is because you have not installed desktop package.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
initializing runlevel 5 from CentOS nathan.eder2004 Linux - General 4 12-30-2006 05:32 PM
cannot change to runlevel 3 nick623 Red Hat 2 07-18-2006 12:37 AM
Change RunLevel carlosinfl Debian 6 05-09-2006 07:00 PM
Change runlevel Quiber Linux - Software 1 01-10-2005 11:27 PM
how do i change my runlevel pguru Linux - Newbie 5 08-13-2004 01:51 PM


All times are GMT -5. The time now is 08:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration