QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1464|回复: 6

如何让 Linux 启动时的登录界面是文本的?

[复制链接]
发表于 2004-11-13 22:42:48 | 显示全部楼层 |阅读模式
我装的是 RH9 , 安装时选择的是用图型界面登录,如何改成启动时直接转到文本登录方式?
发表于 2004-11-14 00:25:35 | 显示全部楼层
看精华贴!
回复

使用道具 举报

 楼主| 发表于 2004-11-14 09:52:24 | 显示全部楼层
告诉我好吗,实在是找不到。
回复

使用道具 举报

发表于 2004-11-14 13:00:52 | 显示全部楼层
找到/etc/inittab文件
把里面头上的init:5改为init:3
保存,重启,以后一直是文本登录方式了

也可以用命令init 3一次性初期化到文本登陆界面
startx启动X到图形界面
命令init 5是初期化到图形登陆界面

明白?
回复

使用道具 举报

 楼主| 发表于 2004-11-14 19:33:10 | 显示全部楼层
xjzhv 不行啊,/etc/inittab 文件里没有 init:5 啊。
这是我的 /etc/inittab 文件:

#
# 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: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

# 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:5:respawn:/etc/X11/prefdm -nodaemon
回复

使用道具 举报

发表于 2004-11-14 19:55:38 | 显示全部楼层
就是将 id:5:initdefault: 中的5改成3。
回复

使用道具 举报

 楼主| 发表于 2004-11-15 16:01:27 | 显示全部楼层
多谢各位.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-18 17:06 , Processed in 0.052274 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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