LinuxQuestions.org
Visit Jeremy's Blog.
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 10-18-2012, 04:08 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
Runlevel 5 not work.


hi,
I am using CentOS 5.2 in a non production enviroment.yesterday I have changed my runlevel 5 to runlevel 3 .Today I try to again use my runlevel 5 by editing etc/inittab file but after rebooting it still show me in command prompt.

Following is my /etc/inittab file configuration.


Code:
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
#               Modified for RHS Linux by Marc Ewing and Donnie Barnes
#

# Default runlevel. The runlevels used by RHS are:
#   0 - halt (Do NOT set initdefault to this)
#   1 - Single user mode
#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#   3 - Full multiuser mode
#   4 - unused
#   5 - X11
#   6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left.  Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

# Run xdm in runlevel 5
x:3:respawn:/etc/X11/prefdm -nodaemon
~
Please guide me that how can I again move to my desktop.

thanks
gardenair

Last edited by gardenair; 10-18-2012 at 05:01 AM.
 
Old 10-18-2012, 06:50 AM   #2
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
please help me. I want to use my desktop .The

Code:
id:5:initdefault:


is already set at level 5 but still it stop at run level 5.Any body guide me that is should be the problem.

thanks,
gardenair
 
Old 10-18-2012, 07:27 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
check the current run level

Code:
# runlevel
To goto runlevel 5

Code:
# startx
or

Code:
# init 5
try these commands and tell us the output
 
Old 10-18-2012, 09:27 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,604

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by gardenair View Post
please help me. I want to use my desktop .The
Code:
id:5:initdefault:

is already set at level 5 but still it stop at run level 5.Any body guide me that is should be the problem.
You've been asked a few times to stop bumping your own threads after a short time. You posted 2 hours apart...we volunteer our time, here, and people will answer you when they choose to, so all you really succeeded in doing is removing your thread from the zero-reply list, and decreasing its visibility.

And did you look at the bottom of that file???
Code:
# Run xdm in runlevel 5
x:3:respawn:/etc/X11/prefdm -nodaemon
So...you have a "3" in there.
 
Old 10-18-2012, 11:14 PM   #5
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
Sorry for writing my thred two tines and many many thanks for guidence.Well can you guide me that how it was possible that i just change

Code:
id:5:initdefault:
to

Code:
id:3:initdefault:
and the system automatically change the value ! This is a strange thing for me.

Code:
x:3:respawn:/etc/X11/prefdm -nodaemon
i change the value as you guide me

Code:
x:5:respawn:/etc/X11/prefdm -nodaemon
and it works


thanks,
gardenair
 
  


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
[SOLVED] How to work on Debian Squeeze in runlevel 1 over ssh? catkin Linux - Server 2 05-27-2012 02:32 AM
[SOLVED] Getting a text console runlevel in Kubuntu 10.04 (Changing runlevel won't work) gregorian Linux - Newbie 4 09-05-2010 10:50 AM
runlevel 1 doesn't work [kubuntu] froginvasion Ubuntu 4 03-20-2009 12:18 PM
Weird: Changing runlevel from 3 to 4 makes sound not work Melkor Slackware 35 05-19-2008 03:30 PM
runlevel wont work!!!??? osc~ Slackware 6 07-06-2007 01:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:41 AM.

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
Open Source Consulting | Domain Registration