峰溢下载站:专为(Android)安卓手机用户量身打造的安卓游戏、APK游戏下载平台!
网站地图
你的位置: 首页 > 游戏资讯 > 操作系统

解决CentOS系统安装后一些问题

  • 2024-04-10 05:11:11
  • 来源:其他
  • 在手机上看

    扫一扫立即进入手机端

因为有次在安装centos系统后,突然出现了花屏的现象,还有,就是鼠标也不能用管理。所以,我找了很多关于这个问题的资料,也找到了很多解决这个问题的办法,但是很多的方法不知道什么原因都不是很完整,或是根本不能解决这个问题,所以我在这里,为大家介绍个好的方法来解决这个问题。

(1)CentOS系统在vpc中安装完成后,启动进入Gnome桌面环境时出现花屏。原因:由于VPC不支持Linux的24色,只用16色,而Linux默认的是24色。因此需要手动修改“/etc/X11/xorg.conf“文件。将

  1. java代码
  2. Section“Screen“
  3. Identifier“Screen0“
  4. Device“Videocard0“
  5. DefaultDepth24
  6. SubSection“Display“
  7. Viewport00
  8. Depth24
  9. EndSubSection
  10. EndSection
  11. Section“Screen“
  12. Identifier“Screen0“
  13. Device“Videocard0“
  14. DefaultDepth24
  15. SubSection“Display“
  16. Viewport00
  17. Depth24
  18. EndSubSection
  19. EndSection修改为
  20. Java代码
  21. Section“Screen“
  22. Identifier“Screen0“
  23. Device“Videocard0“
  24. DefaultDepth16
  25. SubSection“Display“
  26. Viewport00
  27. Depth16
  28. EndSubSection
  29. EndSection
  30. Section“Screen“
  31. Identifier“Screen0“
  32. Device“Videocard0“
  33. DefaultDepth16
  34. SubSection“Display“
  35. Viewport00
  36. Depth16
  37. EndSubSection

EndSection 修改完成后,重启后,在命令行输入startx即可进入图形界面。

(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内容为:

  1. Java代码
  2. titleCentOS(2.6.18-128.el5)
  3. root(hd0,0)
  4. kernel/vmlinuz-2.6.18-128.el5roroot=/dev/VolGroup00/LogVol00rhgbquiet
  5. initrd/initrd-2.6.18-128.el5.img
  6. titleCentOS(2.6.18-128.el5)
  7. root(hd0,0)
  8. kernel/vmlinuz-2.6.18-128.el5roroot=/dev/VolGroup00/LogVol00rhgbquiet
  9. initrd/initrd-2.6.18-128.el5.img修改后的内容为:
  10. Java代码
  11. titleCentOS(2.6.18-128.el5)
  12. root(hd0,0)
  13. kernel/vmlinuz-2.6.18-128.el5roroot=/dev/VolGroup00/LogVol00rhgbquieti8042.noloop
  14. initrd/initrd-2.6.18-128.el5.img
  15. titleCentOS(2.6.18-128.el5)
  16. root(hd0,0)
  17. kernel/vmlinuz-2.6.18-128.el5roroot=/dev/VolGroup00/LogVol00rhgbquieti8042.noloop

initrd /initrd-2.6.18-128.el5.img这样保存后重启,进入系统后,鼠标移动至vpc的屏幕上,按空格右边的alt键就可以在虚拟机和xp之间进行切换了。这两个问题在fedora和CentOS系统都有出现,ubuntu中还没有发现类似的问题,都可以使用上述两种方法来解决。顺便说下,在vista中vpc也可以很好的工作(这个我在修改这两个问题时是在vista中进行测试的,修改后和xp一样可以正常运行)。

CentOS系统中这个鼠标和花屏的问题就这样的被我们解决了。希望大家能够把自己的方法和大家一起分享。

游戏推荐

CentOS 系统安装 解决CentOS系统安装后一些问题
更多

手机游戏排行榜