LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-09-2006, 09:58 PM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
RHEL 4 Update 2: It always boot up to run-level 5


Hi guys,

recently I've a server crashed and thought "since its a fresh install, I'll use RHEL4 Update 2 iso"

Which I did, to catch up with the patches etc.

I need a CLI only environment (rc3). so naturally i remove all the packages that are GUI-related. No xwindow etc...

on first boot after installation, to my surprise it goes to rc5! I was like "huh"

Ok, I thought i try logging in, but it says root logins is not allowed. But I only have root account after installation.

- is there something I should know, yet I don't, about RHEL ES 4 update 2?
- is there a way to intercept the boot sequence? and if so, how do I switch to rc3?
- with a gui login, does it mean I have x-window packages in the server? damm that's going to take up unnecessary resources.
 
Old 02-10-2006, 03:38 PM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Quote:
Originally Posted by Swakoo
But I only have root account after installation.
That's a very bad idea, for many reasons I won't go into here.

Quote:
Originally Posted by Swakoo
- is there a way to intercept the boot sequence? and if so, how do I switch to rc3?
edit your /etc/inittab and change the line like
Code:
id:5:initdefault:
to
Code:
id:3:initdefault:
 
Old 02-21-2006, 12:23 AM   #3
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
hi there,

what i mean is.. after a fresh installation of Linux (RHEL4 in this case), i should have only root user right? That's what I mean. Its a first bootup upon complete installation.

Problem is, though I specified no GNOME, X-Windows (basically, no GUI), on boot it loads at runlevel5.

So ok..I thought its an update2 thing, but I still can't login as I only have root (being the first boot AFTER a FRESH install) - since it doesn't allow root loging.

Am I missing out on something here?
 
Old 02-21-2006, 03:26 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I suspect that you are talking about firstboot. Firstboot is run only once, after the installation and its for configuring things like users, time, soundcard, resolution etc. Once you configure those things you should be dropped straight into a terminal. If you don't want firstboot to run, then deselect it during installation.
 
Old 02-21-2006, 04:04 AM   #5
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by reddazz
I suspect that you are talking about firstboot. Firstboot is run only once, after the installation and its for configuring things like users, time, soundcard, resolution etc. Once you configure those things you should be dropped straight into a terminal. If you don't want firstboot to run, then deselect it during installation.
I don't see any 'firstboot' option.

if that's the case, how do I overwrite it? Obviously I will only have root account as it is a fresh install. But yet through this login screen it doesn't allow root login.

I have disabled all GUI option already but still this turn out...
did I miss something?

http://www.up-z.com/images/redhat.jpg
 
Old 02-21-2006, 05:37 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by Swakoo
I don't see any 'firstboot' option.

if that's the case, how do I overwrite it? Obviously I will only have root account as it is a fresh install. But yet through this login screen it doesn't allow root login.

I have disabled all GUI option already but still this turn out...
did I miss something?

http://www.up-z.com/images/redhat.jpg
Ahh thats not firstboot. It seems like its KDM or XDM so you have an X server running. You will have to do as spooon suggested and change the default runlevel in /etc/inittab from 5 to 3.
 
Old 02-21-2006, 10:41 PM   #7
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by reddazz
Ahh thats not firstboot. It seems like its KDM or XDM so you have an X server running. You will have to do as spooon suggested and change the default runlevel in /etc/inittab from 5 to 3.
That's weird..

1) I Have already unselect all GUI options (KDM, Xwindow, GNOME etc)

2) If I want to edit /etc/initab, I will need to log in right? But at this point I only have a root account, nothing else and they don't allow root login.

Advice?
 
Old 02-22-2006, 02:09 AM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
When the login manager starts, do CTRL-ALT-F1 and you will be dropped into a terminal. You can then use your favourite editor to change the settings in /etc/fstab from the cli.
 
  


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
System hangs on Boot-up at Run level 3 ayush Linux - Newbie 7 12-16-2005 08:41 AM
System hangs on Boot-up at Run level 3 ayush Red Hat 2 12-07-2005 12:26 PM
System hangs on Boot-up at Run level 3 ayush Linux - General 1 12-06-2005 10:19 AM
How to boot to run level 1 if I only want to do it occasionally? ricardo_ok Slackware 19 04-09-2004 05:53 PM
Unable to boot up in run level 5 casacruz Linux - General 5 01-10-2002 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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