VirtualBox中给CentOS安装GuestAdditions及增加1366x767分辨率

转自:

http://bbs.chinaunix.net/thread-1923187-1-1.html

http://blog.csdn.net/haiong0707/article/details/8049235


在VirtualBox中安装完了CentOS(带界面的),发现最大只能支持到800x600的分辨率,于是安装guest additions,方法如下:

  1. 菜单 -> 设备 -> 安装增强功能,然后会在CentOS界面中弹出一个文件夹,目录类似 /media/VBOXADDITIONS_4.3.12_93733
  2. 命令行下执行该目录下的 ./VBoxLinuxAdditions.run(必须以root身份运行)
  3. 执行完了以后 reboot

重启以后的CentOS就可以设多种分辨率了,比如1024x768或更高,但是没有1366x768的分辨率。解决方法就是修改/etc/X11/xorg.config


安装完Guest additions后,文件默认内容类似下面这样

[plain]  view plain copy
  1. # VirtualBox generated configuration file  
  2. # based on /etc/X11/xorg.conf.  
  3.   
  4. Section "Monitor"  
  5.   Identifier   "Monitor[0]"  
  6.   ModelName    "VirtualBox Virtual Output"  
  7.   VendorName   "Oracle Corporation"  
  8. EndSection  
  9.   
  10. Section "Device"  
  11.   BoardName    "VirtualBox Graphics"  
  12.   Driver       "vboxvideo"  
  13.   Identifier   "Device[0]"  
  14.   VendorName   "Oracle Corporation"  
  15. EndSection  
  16.   
  17. Section "Screen"  
  18.   SubSection "Display"  
  19.     Depth      24  
  20.   EndSubSection  
  21.   Device       "Device[0]"  
  22.   Identifier   "Screen[0]"  

我们要做的就是,修改Section "Screen",添加字段Modes "800x600" "1366x768"

[plain]  view plain copy
  1. Section "Screen"  
  2.   SubSection "Display"  
  3.     Depth      24  
  4.     Modes      "800x600" "1366x768"  
  5.   EndSubSection  
  6.   Device       "Device[0]"  
  7.   Identifier   "Screen[0]"  
注意:Modes要添加在SubSection之间,而且不能只添加1366x768,要同时添加800x600

然后再尝试修改桌面分辨率为1366x768(注意,新加的1366x768可能会排在所有可选的分辨率的下拉框的末尾)。如果还不行,就reboot。最终可以设置成1366x768的桌面分辨率。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值