一、取消開(kāi)機(jī)圖片
早就想徹底和圖形界面說(shuō)再見(jiàn),干脆連開(kāi)機(jī)畫(huà)面也不要了吧。黑屏刷出一大片開(kāi)機(jī)信息給人一種酷酷的感覺(jué),雖然現(xiàn)在還不明白那些信息是啥意思。^_^
vim /etc/grub.conf。
刪除“rhgb quiet”,ZZ。OK,reboot,是不是有效果了。
解釋:
rhgb:以圖片來(lái)代替啟動(dòng)過(guò)程中的文本信息,那些文本信息在啟動(dòng)完成后可以用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:在啟動(dòng)過(guò)程中只顯示重要信息,類(lèi)似硬件自檢的消息不回顯。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.
二、開(kāi)機(jī)進(jìn)入文本界面
接著,我們可以通過(guò)編輯/etc/inittab文件實(shí)現(xiàn)默認(rèn)進(jìn)入圖形界面。 把其中的id:3:initdefault中的3改為5,這樣以后系統(tǒng)啟動(dòng)后將直接進(jìn)入文本模式。 以下是配置引導(dǎo)進(jìn)入圖形模式的etc/inittab文件的部分內(nèi)容:
#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操作系統(tǒng)有六種不同的運(yùn)行級(jí)(runlevel),在不同的運(yùn)行級(jí)下,系統(tǒng)有著不同的狀態(tài),這六種運(yùn)行級(jí)分別為:
#0:停機(jī)(記住不要把initdefault 設(shè)置為0,因?yàn)槟菢訒?huì)使Linux無(wú)法啟動(dòng))
#1:?jiǎn)斡脩裟J剑拖馱in9X下的安全模式。
#2:多用戶,但是沒(méi)有 NFS 。
#3:完全多用戶模式,標(biāo)準(zhǔn)的運(yùn)行級(jí)。
#4:一般不用,在一些特殊情況下可以用它來(lái)做一些事情。
#5:X11,即進(jìn)到 X-Window 系統(tǒng)。
#6:重新啟動(dòng) (記住不要把initdefault 設(shè)置為6,否則會(huì)使Linux不斷地重新啟動(dòng))。
其中運(yùn)行級(jí)3就是我們要進(jìn)入的標(biāo)準(zhǔn)Console字符界面模式。