CentOS6.5启动界面的更改方法

一、取消开机图片

早就想彻底和图形界面说再见,干脆连开机画面也不要了吧。黑屏刷出一大片开机信息给人一种酷酷的感觉,虽然现在还不明白那些信息是啥意思。^_^

vim /etc/grub.conf。

删除“rhgb quiet”,ZZ。OK,reboot,是不是有效果了。

解释:

rhgb:以图片来代替启动过程中的文本信息,那些文本信息在启动完成后可以用dmesg命令查看。rhgb = redhat graphical boot - This is a GUI mode booting screen with most of the information hidden while the user sees a rotating activity icon spining and brief information as to what the computer is doing.

quite:在启动过程中只显示重要信息,类似硬件自检的消息不回显。quiet = hides the majority of boot messages before rhgb starts. These are supposed to make the common user more comfortable. They get alarmed about seeing the kernel and initializing messages, so they hide them for their comfort.

二、开机进入文本界面

接着,我们可以通过编辑/etc/inittab文件实现默认进入图形界面。 把其中的id:3:initdefault中的3改为5,这样以后系统启动后将直接进入文本模式。 以下是配置引导进入图形模式的etc/inittab文件的部分内容:

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

该部分信息表明Linux操作系统有六种不同的运行级(runlevel),在不同的运行级下,系统有着不同的状态,这六种运行级分别为:

0:停机(记住不要把initdefault 设置为0,因为那样会使Linux无法启动)
1:单用户模式,就像Win9X下的安全模式。
2:多用户,但是没有 NFS 。
3:完全多用户模式,标准的运行级。
4:一般不用,在一些特殊情况下可以用它来做一些事情。
5:X11,即进到 X-Window 系统。
6:重新启动 (记住不要把initdefault 设置为6,否则会使Linux不断地重新启动)。

其中运行级3就是我们要进入的标准Console字符界面模式。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值