LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   how to change runlevel of centOS (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/how-to-change-runlevel-of-centos-4175428774/)

sudi267 09-24-2012 07:47 AM

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

unSpawn 09-24-2012 07:51 AM

Please post your thread once and in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread should be closed because it is a duplicate of http://www.linuxquestions.org/questi...os-4175428771/.

tronayne 09-24-2012 07:59 AM

Open a terminal window and
Code:

su -    (or sudo or whatever)
vi /etc/inittab
<change back to this>
# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
<save and exit>
init 6

That ought to do it.

You'll come up in a console. If you want X running you can probably use startx to do that (you should have that or something similar). When you're done with X, just exit from it which will get you back to console (and, as root, you can inti 0 to shut down the system).

Hope this helps some.

unSpawn 09-24-2012 08:50 AM

Quote:

Originally Posted by tronayne (Post 4787962)
Open a terminal window

When a thread is marked for closure as a duplicate you are not expected to post in it.

tronayne 09-24-2012 10:07 AM

Sorry, missed the duplicate part.

Blow 'er away!


All times are GMT -5. The time now is 09:25 PM.