因为有次在安装CentOS系统后,突然出现了花屏的现象,还有,就是鼠标也不能用管理。所以,我找了很多关于这个问题的资料,也找到了很多解决这个问题的办法,但是很多的方法不知道什么原因都不是很完整,或是根本不能解决这个问题,所以我在这里,为大家介绍个好的方法来解决这个问题。
51CTO编辑推荐: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代码 Section "Screen" Identifier "Screen0" Device "Videocard0" DefaultDepth 16 SubSection "Display" Viewport 0 0 Depth 16 EndSubSection EndSection Section "Screen" Identifier "Screen0" Device "Videocard0" DefaultDepth 16 SubSection "Display" Viewport 0 0 Depth 16 EndSubSection
(2)Vistual PC 2007中安装的Cent OS 5.3不能使用鼠标。这个不是vpc本身的问题,而是linux内核的一个bug。这个需要通过修改"/boot/grub/grub.conf"来完成,需要说明的是Cent OS 5.3的linux内核版本为2.6.18-128.el5。Cent OS中默认安装的grub.conf内容为:
Java代码 title CentOS (2.6.18-128.el5) root (hd0,0) kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-128.el5.img title CentOS (2.6.18-128.el5) root (hd0,0) kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet initrd /initrd-2.6.18-128.el5.img修改后的内容为: Java代码 title CentOS (2.6.18-128.el5) root (hd0,0) kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet i8042.noloop initrd /initrd-2.6.18-128.el5.img title CentOS (2.6.18-128.el5) root (hd0,0) kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet i8042.noloop