LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-03-2003, 04:41 AM   #1
lapthorn
Member
 
Registered: Jul 2003
Location: Reading
Distribution: Red Hat
Posts: 89

Rep: Reputation: 16
Runlevel 5


I have a Red Hat 9 which is a gateway server for my home network. The machine is a Pentium 3 and is a bit past it. When doing the installation I installed X just incase I wanted to use.

I am sure that during installation I was never asked about booting into text mode.

When booting in I get the graphical login screen. I want to change this to be the console.

I have checked my /etc/inittab file and have the following:

id:3:initdefault:

Which I assume would boot me into the console and would be:

id:5:initdefault:

If ot was to use the Graphical login.

Is there anything else which defines this? Does anyone have any ideas why this is.

I have checked the /etc/inittab file while logged in over SSH from outside but I'm sure this doesn't have any effect and that the /etc/inittab is global.
 
Old 12-03-2003, 04:45 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
changing the default to runlevel 3 will do, just make sure the services you want to run is configured to run in runlevel3 as wll.
 
Old 12-03-2003, 04:47 AM   #3
lapthorn
Member
 
Registered: Jul 2003
Location: Reading
Distribution: Red Hat
Posts: 89

Original Poster
Rep: Reputation: 16
True but it is already set at 3 but still I get the graphical login screen.
 
Old 12-03-2003, 05:04 AM   #4
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
what does the last line in /etc/inittab say?
it should look something like

x:5:respawn:/etc/X11/prefdm -nodaemon

make sure 5 is the only number after x:
 
Old 12-03-2003, 05:10 AM   #5
lapthorn
Member
 
Registered: Jul 2003
Location: Reading
Distribution: Red Hat
Posts: 89

Original Poster
Rep: Reputation: 16
I checked the last line looks exactly like:

x:5:respawn:/etc/X11/prefdm -nodaemon

I can't check it from here but would it be possible that the runlevel has been changed in GRUB so that it forces level 5?
 
Old 12-03-2003, 05:14 AM   #6
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
yea maybe, check /boot/grub/grub.conf and see if '5' is appended to the kernel parameter.

Last edited by Demonbane; 12-03-2003 at 05:24 AM.
 
Old 12-03-2003, 05:23 AM   #7
lapthorn
Member
 
Registered: Jul 2003
Location: Reading
Distribution: Red Hat
Posts: 89

Original Poster
Rep: Reputation: 16
No, Kernel parameter doesn't force the runlevel. This seems strange to me, I have checked my inittab file against another Red Hat 9 installation I have at work which doesn't have X installed they are identical.

STOP in true Newbie fashion I have just realised what I have done. The PuTTY screens are confusing me. On my gateway machine the inittab reads:

id:5:initdefault:

I must of been looking at the wrong file. At least now I know why its booting in Graphical mode and everything makes sense again.

Thanks very much for sticking with me!

James
 
  


Reply



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 01:10 PM
Runlevel zerocool118 DamnSmallLinux 1 03-04-2005 10:51 AM
runlevel eaglegst Linux - Software 1 02-23-2004 12:54 AM
X does not start in Runlevel 4, but i Runlevel 3 Rabon Linux - General 3 11-18-2003 06:24 AM
which runlevel? adme Linux - Software 8 02-11-2003 11:05 AM

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

All times are GMT -5. The time now is 12:56 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