歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> virtual PC下安裝RedHat9.0出現花屏的解決

virtual PC下安裝RedHat9.0出現花屏的解決

日期:2017/2/28 17:11:51   编辑:Linux教程

virtual PC下安裝RedHat9.0出現花屏這種問題,我第一感覺就是像素設置問題,我上網查了一下,果然,是由於VPC不支持Linux的24色,只用16色,而Linux默認的是24色

1,重啟虛擬機VPC,在出現grub後,在安裝的系統上面按“e”,然後出現grub的配置文件,按鍵盤移動光標到第二行“Ker……”,再按“e”,然後在這一行的結尾加上:空格 single,然後按“b”重啟,就進入了“單用戶模式”。

2,進入後在提示符下敲入:vi /etc/X11/XF86Config,會打開這個文件,再輸入“/Screen”(注意大小寫),然後程序會顯示找到相關的配置的地方。類似下面的代碼:

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

然後您按“i”鍵進入插入模式,在這裡用鍵盤移動到24的位置把這裡的24改為16,然後按ESC鍵,按右Shift+:,輸入“wq”回車存盤並退出。輸入“init 6”,重新啟動,圖形界面是不是出來了?

Copyright © Linux教程網 All Rights Reserved