Debian5 VMware Tools的安装

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

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值