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

番茄系统家园 · 2022-09-02 08:35:19

一、取消开机图片

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

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字符界面模式。 

免责声明: 凡标注转载/编译字样内容并非本站原创,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如果你觉得本文好,欢迎推荐给朋友阅读;本文链接: https://m.nndssk.com/xtwt/20584251yLdD.html
猜你喜欢
最新应用
热门应用