QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 839|回复: 3

帮忙看看inittab文件啊,怎么还能启动图形界面啊

[复制链接]
发表于 2004-12-31 20:19:41 | 显示全部楼层 |阅读模式
下面事redhat9的inittab ,已经改成了3了但是不知道为什么图形还能启动!
[code:1]#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Author:       Miquel van Smoorenburg, <[email protected]>
#               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:3: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
[/code:1]
发表于 2004-12-31 20:59:33 | 显示全部楼层
是第5项,
仔细看看吧。
回复

使用道具 举报

 楼主| 发表于 2004-12-31 21:07:55 | 显示全部楼层
是这样的,我想不让系统自动启动图形, 所有把inittab改成这个样子了,
我记得原来比较好用啊,改了之后就可以了但是这回改了不起作用,重启后图形还是能启动的起来!
id:3:initdefault: 不是改动 这个就可以的么,但是为什么就是不起作用呢,是不是
x:3:respawn:/etc/X11/prefdm -nodaemon
这里的3不要改动啊!!!
回复

使用道具 举报

 楼主| 发表于 2004-12-31 21:51:28 | 显示全部楼层
x:3:respawn:/etc/X11/prefdm -nodaemon
就是这个问题了!!
x:5:respawn:/etc/X11/prefdm -nodaemon
改成这样就对了!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-6 19:37 , Processed in 0.073412 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表