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 12-17-2008, 05:24 AM   #1
errorsunknownp
Member
 
Registered: Dec 2008
Location: Nepal
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
Smile Help : RUNLEVEL


I have to log in, in shell command and then type startx
to access my computer in graphical mode.

I don't want to do that. I know my runlevel is 3.
Is it because my runlevel is 3.

Does changing runlevel 3 to 5 will solve my problem?
 
Old 12-17-2008, 05:28 AM   #2
benoy4007
Member
 
Registered: Jun 2004
Location: India
Distribution: Red Hat
Posts: 30

Rep: Reputation: 15
YES change run level 3 to 5
 
Old 12-17-2008, 06:05 AM   #3
errorsunknownp
Member
 
Registered: Dec 2008
Location: Nepal
Distribution: Slackware
Posts: 61

Original Poster
Rep: Reputation: 15
Talking Please help me to change runlevel

somebody please help me to change my runlevel to 5.
It is 3. I want to change it to 5.

Please help me step by step
I'm so much confused
 
Old 12-17-2008, 06:11 AM   #4
binary_pearl
Member
 
Registered: Jul 2007
Location: Chicago Illinois
Distribution: SLES 10 SP2/SP3, SLES 11 SP1, OpenSUSE, Sabayon, Gentoo, Fedora 14, RHEL 3/4/5/6
Posts: 98
Blog Entries: 3

Rep: Reputation: 23
This should work:

Log in as root and type in the following command:
init 5

There may be more official ways but that should technically work

--Shaun
 
Old 12-17-2008, 06:13 AM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
If you want to change it permanently, change the line

id:3:initdefault:

in /etc/inittab

to

id:5:initdefault:
 
Old 12-17-2008, 06:24 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
The question is: how did you end up in runlevel 3? Is it a choice or is there a problem with the graphic driver or are you running a server in text mode only or...?
 
Old 12-17-2008, 06:51 AM   #7
errorsunknownp
Member
 
Registered: Dec 2008
Location: Nepal
Distribution: Slackware
Posts: 61

Original Poster
Rep: Reputation: 15
Smile Still unsuccessful

Inorder to change runlevel in Red Hat Enterprise 5.1 . I tried many times but unsuccessful

First I Tried
init 5
didnot chang

then I tried sudo init 5
no use

then I did
vi /etc/inittab
This time it showed me that my default runlevel is 3

id:3:initdefault:

how to change that to
id:5:initdefault:

Then i pressed i

At the bottom of the terminal it said Insert
so I replaced 3 to 5

I dont wheter this process is correct or not.
If this process is correct then after replacing 3 to 5
how to save it
I'm confused.
After replacing I closed the window.

Again opened the terminal and used
vi /etc/inittab
again it showed that my runlevel is 3

How to change that.
 
Old 12-17-2008, 06:57 AM   #8
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Why do you want to replace your run level?

For vi use:

i to edit your changes
the [ESC] to stop editing
then :wq to save and quit.

-eco
 
Old 12-17-2008, 07:21 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
And please, stop to open multiple threads on the same subject! Reported.
 
Old 12-17-2008, 07:26 AM   #10
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Quote:
still unsuccessful
This is clearly a continuation of your post there:
http://www.linuxquestions.org/questi...4/#post3377354

It would probably be better to keep it in one thread and see the bigger picture of the problem.

Eco advised you on how you can store changes in /etc/inittab. If it still doesn't work, as I suggested in the above mentioned
post, you should check whether you've installed the X window system ('# yum grouplist').
 
Old 12-17-2008, 07:36 AM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Three threads have been merged.......

errors....;
Please read thru all of the replies so far, and post additional questions in this thread.
 
Old 12-17-2008, 02:59 PM   #12
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'd also want to know if you have a gui installed, since you are defaulting to RL3.

Did you install gnome when you build the system?
 
Old 12-17-2008, 09:25 PM   #13
errorsunknownp
Member
 
Registered: Dec 2008
Location: Nepal
Distribution: Slackware
Posts: 61

Original Poster
Rep: Reputation: 15
What is this recording?

I did:
vi /etc/inittab

then I found the line id:3:initdefault:

I pressed i button to edit, at the bottom it said Insert
so I erased 3 and entered 5.

Then I pressed Esc button.
After that I did qw

Now at the bottom it is saying that Recording
What is this? I'm totally confused.
Is this the correct process to change my runlevel from 3 to 5?
If it is correct then how much time I have to wait.
 
Old 12-17-2008, 09:30 PM   #14
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
that was

:wq

not

:qw
 
Old 12-18-2008, 05:53 AM   #15
ozminh
Member
 
Registered: Aug 2007
Posts: 73

Rep: Reputation: 19
remember the ":"
 
  


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
What's the difference between runlevel 2 and runlevel 5 in Debian? davidas Linux - Newbie 2 01-05-2012 02:10 PM
New Install of PCLinuxOS boots into runlevel 3. Should be runlevel 5 MonctonJohn Linux - General 4 02-01-2008 05:38 PM
Go into runlevel 3 after a runlevel 4 crash davidguygc Linux - General 1 08-24-2007 09:23 PM
Soun Mixer absent in Runlevel 3 but present in Runlevel 5 debloxie SUSE / openSUSE 1 01-18-2006 10:15 AM
X does not start in Runlevel 4, but i Runlevel 3 Rabon Linux - General 3 11-18-2003 07:24 AM


All times are GMT -5. The time now is 08:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration