LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-29-2002, 04:57 AM   #1
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Rep: Reputation: 31
/etc/inittab


in my /etc/inittab file i set
id:3:initdefault:

then my system boots into GUI Mode

but when my edited /etc/inittab to

id:5:initdefault :

it boots into multiuser non GUI Mode

any comments please
 
Old 05-29-2002, 05:10 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
That is exactly what it should do. I am wondering by what you mean by "any comments". Do you want to see a few responses on how this could be made easier? Or how to read what id:3:initdefault: means or what? You are changing from a run level 3 to 5 or vice versa. If you want to boot straight into GUI use the 3, if you want to go to command, use 5. If you want something else to happen post it on here, maybe we can help.
 
Old 05-29-2002, 05:17 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by MasterC
That is exactly what it should do. I am wondering by what you mean by "any comments". Do you want to see a few responses on how this could be made easier? Or how to read what id:3:initdefault: means or what? You are changing from a run level 3 to 5 or vice versa. If you want to boot straight into GUI use the 3, if you want to go to command, use 5. If you want something else to happen post it on here, maybe we can help.
I think what he is implying is that runlevel 5 is usually GUI and runlevel 3 usually is multiuser...
In Slack its runlevel 3 as multiuser and 4 as GUI. I wouldn't have any idea why it would switch around like that unless since I don't use Redhat or they did that on purpose.
 
Old 05-29-2002, 05:44 AM   #4
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Post a copy of your /etc/inittab file.
 
Old 05-29-2002, 06:02 AM   #5
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Original Poster
Rep: Reputation: 31
#
# 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

# Things to run in every runlevel.
ud:nce:/sbin/update

# 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:owerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345owerokwait:/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
# xdm is now a separate service
x:3:respawn:/etc/X11/prefdm -nodaemon


#with this configuration my system boot into command mode
 
Old 05-29-2002, 06:27 AM   #6
Snake007uk
Member
 
Registered: May 2002
Location: London
Distribution: Redhat 7.3
Posts: 84

Rep: Reputation: 15
thats right runlevel 5 is GUI ??

im using redhat and runlevel 5 is GUI as even shown in the the inittab file ??

Snake
 
Old 05-29-2002, 06:36 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
No, read his first post. 5 gives him command line. That's what the whole question is, I was confused too.
 
Old 05-29-2002, 07:02 AM   #8
Brion
Member
 
Registered: May 2002
Location: Belgium
Distribution: LinuxFromScratch
Posts: 85

Rep: Reputation: 15
Quote:
Originally posted by sakeeb
# Run xdm in runlevel 5
# xdm is now a separate service
x:3:respawn:/etc/X11/prefdm -nodaemon
change that to:
x:5:respawn:/etc/X11/prefdm -nodaemon

it was set to start the GUI login manager at runlevel 3, even though runlevel 5was set as the GUI runlevel
 
Old 05-29-2002, 07:02 AM   #9
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Original Poster
Rep: Reputation: 31
i may have changed some of configuration files.(i don't remember).
 
Old 05-29-2002, 09:04 AM   #10
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Quote:
Originally posted by sakeeb
i may have changed some of configuration files.(i don't remember).
You get that sometimes
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rc[0-6] and inittab kpachopoulos Linux - General 1 08-12-2005 04:27 PM
inittab is missing danielganea Slackware 4 02-13-2005 02:59 PM
edit inittab C_J Linux - Newbie 4 01-24-2005 11:33 AM
inittab mikedeatworld Linux - Software 3 08-13-2004 10:01 AM
Cant get out of inittab InEeDhElPlInUx Linux - Newbie 3 10-09-2003 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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