All things are difficult before they are easy. 没有软件的裸机是一具僵尸,没有硬件的软件是一个幽灵。2012,专注于Linux和C语言,关注自动化、性能测试,关注开源社区和开源测试工具、方法,尝试测试团队管理!

VirualBox中Ubuntu自动调整显示尺寸--遇到的问题及解决方案

上一篇 / 下一篇  2010-05-08 09:44:04 / 个人分类:Linux

VirualBox中Ubuntu自动调整显示尺寸、自动调整窗口大小。
Virtualbox3.1.6中安装了KUbuntu10.04LTS版本。
1.先是安装VirtualBox的增强功能了,见:
http://www.51testing.com/index.php?uid-225738-action-viewspace-itemid-134449
2.但是安装VirualBox Guest Additions过程中,出错了,"Building the VirtualBox Guest Additions kernel modules ...fail!(Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong)”。看着这个提示,自然是vi /var/log、vboxadd-install.log看了一下,有如下提示“Makefile:75: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.”
3.所以需要安装,用命令:sudo apt-get install linux-headers-`uname -r`
4.然后重新安装正常功能,但是还是有错误,看日志,发现:“/usr/src/linux-headers-2.6.32-21-generic/scripts/gcc-version.sh: line 25: gcc: command not found”,很明显,gcc可能没有安装,所以安装gcc,命令:sudo apt-get install gcc 解决问题。
5.重新安装增强功能,这次就成功了,一路报OK下来;、
6.重启后,VirualBox中Ubuntu自动调整显示尺寸、自动调整窗口大小都可以用了。

TAG: 显示尺寸 Ubuntu ubuntu virtualbox

 

评分:0

我来说两句

smile665

smile665

Stay hungry, stay foolish. 得意之时谨记,一半命运还掌握在上帝手里;失意之时须知,一半命运还掌握在自己手里。

日历

« 2024-04-19  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 955039
  • 日志数: 220
  • 建立时间: 2008-11-06
  • 更新时间: 2012-10-06

RSS订阅

Open Toolbar