因为有次在安装CentOS系统后,突然出现了花屏的现象,还有,就是鼠标也不能用管理。所以,我找了很多关于这个问题的资料,也找到了很多解决这个问题的办法,但是很多的方法不知道什么原因都不是很完整,或是根本不能解决这个问题,所以我在这里,为大家介绍个好的方法来解决这个问题。
(1)CentOS系统在vpc中安装完成后,启动进入Gnome桌面环境时出现花屏。原因:由于VPC不支持Linux的24色,只用16色,而Linux默认的是24色。因此需要手动改"/etc/X11/xorg.conf"文件。将EndSection 修改完成后,重启后,在命令行输入startx即可进入图形界面。
Java代码
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection 修改为
Java