广杰博客

  • 首页
  • IT资讯
  • IT运维
  1. 首页
  2. IT运维
  3. 正文

解决centos在virtual pc中的花屏和鼠标问题

04/01/2011 1867点热度 3人点赞 0条评论
在安装centos的时候无法使用图形界面,只好使用linux text进行了安装 安装好之后startx还是花屏,由于VPC不支持Linux的24色,只用16色,而Linux默认的是24色。因此需要手动修改"/etc/X11/xorg.conf"文件。
将
  1. Section "Screen"  
  2.         Identifier "Screen0"  
  3.         Device     "Videocard0"  
  4.         DefaultDepth      24  
  5.         SubSection "Display"  
  6.                 Viewport   0 0  
  7.                 Depth      24  
  8.         EndSubSection   
  9. EndSection  
修改为:
  1. Section "Screen"  
  2.         Identifier "Screen0"  
  3.         Device     "Videocard0"  
  4.         DefaultDepth      16  
  5.         SubSection "Display"  
  6.                 Viewport   0 0  
  7.                 Depth      16  
  8.         EndSubSection   
  9. EndSection  

这时重启后 startx即可进入图形界面,但是进去后发现鼠标无法使用。

这个不是vpc本身的问题,而是linux内核的一个bug。这个需要通过修改"/boot/grub/grub.conf"来完成,Cent OS中默认安装的grub.conf内容为:

title CentOS (2.6.18-194.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.18-194.el5.img
修改为:

title CentOS (2.6.18-194.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet  i8042.noloop
        initrd /initrd-2.6.18-194.el5.img 
 

这样保存后重启,进入系统后,鼠标移动至vpc的屏幕上,按空格右边的alt键就可以在虚拟机和xp之间进行切换了

标签: 暂无
最后更新:01/01/1970

guangjie

这个人很懒,什么都没留下

点赞
下一篇 >

文章评论

您需要 登录 之后才可以评论
最新 热点 随机
最新 热点 随机
Red Hat Enterprise Linux 9 发布,大量组件升级 windows10 家庭版添加hyper-v虚拟机组件 Red Hat Enterprise Linux 8.5 GA 发布 Rocky Linux 8.4 GA正式版发布下载 Rocky Linux 8.3 首个候选版本发布 CentOS 8.3 (2011) ISO镜像下载发布 CentOS Linux 落幕 CentOS Stream 上位 CentOS Linux 7.9 (2009) iso镜像下载 Windows 10 2020年10月更新ISO下载 ubuntu ssh通过密钥登陆服务器
升级测试 jenkins 修改登录密码 ubuntu ssh通过密钥登陆服务器 linux实时流量监控工具iftop安装配置使用 使用diskpart命令创建vhd虚拟硬盘 新功能Google Earth 4.3 php再度更新重要安全补丁,发布php5.4.2和5.3.12 SEO优化手册之关键词选取 Installing Spring Boot Applications 更改linux默认启动方式
标签聚合
nginx android springboot Hyper-V linux Windows Server 2012 redhat php_curl
友情链接
  • linux运维
  • 郑州SEO

COPYRIGHT © 2021 gjie.cn. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备07002435号-8