Chinaunix首页 | 论坛 | 博客
  • 博客访问: 140322
  • 博文数量: 58
  • 博客积分: 130
  • 博客等级: 入伍新兵
  • 技术积分: 310
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-19 21:38
文章分类
文章存档

2012年(22)

2011年(36)

分类:

2012-02-16 23:53:20

原文地址:Debian5 VMware Tools的安装 作者:anwaro

1、安装VMware Tools时弹出   

The guest operating system has locked the CD-ROM door and is probably using the CD-ROM, which can prevent the guest from recognizing media changes. If possible, eject the CD-ROM from inside the guest before disconnecting.
Disconnect anyway (and override the lock)?
yes no

先要删除虚拟机操作系统上的guest用户,同时弹出目前的光盘;否则会报被锁定;


2
、安装psmisc
   apt-get install psmisc


3
、安装
make gcc g++
apt-get install make gcc g++


4
、安装linux-headers 注意版本(uname -a 查看内核)

apt-get install linux-headers-2.6.26-1-686
注意:gcc的版本(4.3.2)很可能会高于内核所要求的gcc版本(4.1.2)。这个时候需要
apt-get install gcc-4.1
export CC=/usr/bin/gcc-4.1
这样在编译内核时就会用gcc4.1编译(vmware-tool安装成功后,就可以去掉gcc 4.1了, apt-get autoremove gcc-4.1)

5
、启动debian系统


6
VM菜单->VMware Tools Install


7
[root]#mount -r /dev/cdrom /media/cdrom 挂载光驱(这个注意,有的是在根目录/cdrom)
[root]#cd /tmp
[root]#tar xvzf /media/cdrom/VMwareTools-6.5.0-118166.tar.gz
[root]#cd vmware-tools-distrib
[root]#./vmware-install.pl

8
、去掉gcc-4.1(可选)

apt-get autoremove gcc-4.1
export CC=/usr/bin/gcc
(此时默认已安装最新版本的gcc)

9、最后重启虚拟机进入Debian后还是不能自由地切换鼠标;要在/etc/X11/xorg.conf最后加下面的就OK了:

Section "InputDevice"

    Identifier "XOrgMouseWorkaround"

    Driver "void"

EndSection

Section "InputDevice"

    Identifier "Configured Mouse"

    Driver "vmmouse"

    Option "CorePointer"

  Option "Device" "/dev/input/mice"

    Option "Protool" "ps/2"

    Option "ZAxisMapping" "4 5"

    Option "Emulate3Buttons" "true"

EndSection

阅读(1238) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~