在Ubuntu下安装VMware-Tools不像在Windows下安装容易,昨晚整了挺长时间终于安上了.方法在下面.
感谢提供方法的大侠!
VMwareTools位置:VMware的安装路径\VMware\VMwareWorkstation\linux.iso
启动后按Esc选择recoverymode登陆.然后点击"虚拟机"→"安装VMwareTools".
[root@rd01~]#mount/cdrom
#有时可能加载不了,这时就要先将系统关闭,再手动指定ISO映像:
[root@rd01~]#cd/cdrom
[root@rd01~]#ls-a
[root@rd01~]#cpVMwareTools-5.5.1-19175.tar.gz/tmp
[root@rd01~]#cd/tmp
[root@rd01~]#tarzxpfVMwareTools-5.5.1-19175.tar.gz
[root@rd01~]#cdvmware-tools-distrib
[root@rd01vmware-tools-distrib]#./vmware-install.pl
Creatinganewinstallerdatabaseusingthetar3format.
Installingthecontentofthepackage.
#安装过程的画面,全部使用默认值,一直按Enter就对了
Inwhichdirectorydoyouwanttoinstallthebinaryfiles?
[/usr/bin]
Whatisthedirectorythatcontainstheinitdirectories(rc0.d/torc6.d/)?
[/etc/rc.d]
Whatisthedirectorythatcontainstheinitscripts?
[/etc/rc.d/init.d]
Inwhichdirectorydoyouwanttoinstallthedaemonfiles?
[/usr/sbin]
Inwhichdirectorydoyouwanttoinstallthelibraryfiles?
[/usr/lib/vmware-tools]
Thepath"/usr/lib/vmware-tools"doesnotexistcurrently.Thisprogramisgoingtocreateit,includingneededparentdirectories.Isthiswhatyouwant?
[yes]
Inwhichdirectorydoyouwanttoinstallthedocumentationfiles?
[/usr/share/doc/vmware-tools]
Thepath"/usr/share/doc/vmware-tools"doesnotexistcurrently.Thisprogramisgoingtocreateit,includingneededparentdirectories.Isthiswhatyouwant?
[yes]
TheinstallationofVMwareTools5.5.1build-19175forLinuxcompleted
successfully.Youcandecidetoremovethissoftwarefromyoursystematany
timebyinvokingthefollowingcommand:"/usr/bin/vmware-uninstall-tools.pl".
BeforerunningVMwareToolsforthefirsttime,youneedtoconfigureitby
invokingthefollowingcommand:"/usr/bin/vmware-config-tools.pl".Doyouwant
thisprogramtoinvokethecommandforyounow?[yes]
StoppingVMwareToolsservicesinthevirtualmachine:
Guestoperatingsystemdaemon:[确定]
Tryingtofindasuitablevmhgfsmoduleforyourrunningkernel.
Themodulebld-2.6.9-5.EL-i686-RHEL4loadsperfectlyintherunningkernel.
pcnet32301530
Unloadingpcnet32module
Tryingtofindasuitablevmxnetmoduleforyourrunningkernel.
Themodulebld-2.6.9-5.EL-i686-RHEL4loadsperfectlyintherunningkernel.
DetectedX.orgversion6.8.
关闭控制台鼠标服务:[确定]
启动控制台鼠标服务:[确定]
Pleasechooseoneofthefollowingdisplaysizes(1-13):
#显示分辨率,这里是以1024x768为例
#VMwareTools安装的时候,会自动修改Xserver的配置文件
[1]"640x480"
[2]<"800x600"
[3]"1024x768"
[4]"1152x864"
[5]"1280x800"
[6]"1152x900"
[7]"1280x1024"
[8]"1376x1032"
[9]"1400x1050"
[10]"1680x1050"
[11]"1600x1200"
[12]"1920x1200"
[13]"2364x1773"
Pleaseenteranumberbetween1and13:
[2]3
XWindowSystemVersion6.8.2
ReleaseDate:9February2005
XProtocolVersion11,Revision0,Release6.8.2
BuildOperatingSystem:Linux2.6.9-34.ELi686[ELF]
CurrentOperatingSystem:Linuxrd01.domain2.6.9-34.EL#1WedMar800:07:35CST2006i686
BuildDate:04May2006
BuildHost:x8664-build.centos.org
Beforereportingproblems,check
tomakesurethatyouhavethelatestversion.
ModuleLoaderpresent
OSKernel:Linuxversion2.6.9-34.EL(buildcentos@build-i386)(gccversion3.4.520051201(RedHat3.4.5-2))#1WedMar800:07:35CST2006P
Markers:(--)probed,(**)fromconfigfile,(==)defaultsetting,
( )fromcommandline,(!!)notice,(II)informational,
(WW)warning,(EE)error,(NI)notimplemented,(??)unknown.
( )Logfile:"/tmp/vmware-config0/XF86ConfigLog.3131",Time:MonJun1220:57:342006
( )Usingconfigfile:"/tmp/vmware-config0/XF86Config.3131"
(WW)VMWARE(0):Failedtosetupwrite-combiningrange(0xf0000000,0x1000000)
Xisrunningfinewiththenewconfigfile.
StartingVMwareToolsservicesinthevirtualmachine:
Switchingtoguestconfiguration:[确定]
Guestfilesystemdriver:[确定]
DMAsetup:[确定]
Guestoperatingsystemdaemon:[确定]
TheconfigurationofVMwareTools5.5.1build-19175forLinuxforthisrunning
kernelcompletedsuccessfully.
YoumustrestartyourXsessionbeforeanymouseorgraphicschangestake
effect.
YoucannowrunVMwareToolsbyinvokingthefollowingcommand:
"/usr/bin/vmware-toolbox"duringanXFree86session.
Tousethevmxnetdriver,restartnetworkingusingthefollowingcommands:
/etc/init.d/networkstop
rmmodpcnet32
rmmodvmxnet
depmod-a
modprobevmxnet
/etc/init.d/networkstart
Enjoy,
--theVMwareteam
[root@rd01vmware-tools-distrib]#shutdown-rnow
#修改完成之后,重新启动计算机,让VMwareTools生效.
==
重启后,你可能会发现还是要按"Ctrl Alt"释放鼠标(VM6.0没这问题了),因为我用的是5.5.3,所以要手动执行才有效果.
通过终端运行VMware-Tools:
点击Ubuntu桌面左上角的Applications→附件→终端,会打开一个类似Windows中记事本的程序,在里面输入以下内容($是自带的,不用专门输入):
$/usr/bin/vmware-toolbox
但如果你嫌麻烦,我们就需要让vmware-toolbox实现开机自动运行。点击Ubuntu菜单:System→首选项→会话→StartupPrograms,Add一个Name叫“vmware-toolbox”,Command是“/usr/bin/vmware-toolbox”的启动程序。这样每次开机后就能自动运行VMwareTools了。重启Ubuntu看看效果吧!(注意:vmware-toolbox并不是在后台隐藏运行的,启动后不要关闭)。
VMwareTools固然是个好东西,但也有副作用,比如说:虚拟机中的鼠标的滚轮不好使了。我们这样解决这个问题,还是打开终端,输入:
$sudogedit/etc/X11/xorg.conf
这个命令使系统以root权限打开鼠标配置文件/etc/X11/xorg.conf。把文件中的
Option“Protocol”“ps/2”
改成
Option“Protocol”“IMPS/2”
重启Ubuntu搞定
Ubuntu 安装VMware-Tools (同时解决鼠标滚轮问题)Ubuntu 安装VMware-Tools (同时解决鼠标滚轮问题)Ubuntu 安装VMware-Tools (同时解决鼠标滚轮问题)Ubuntu 安装VMware-Tools (同时解决鼠标滚轮问题)Ubuntu 安装VMware-Tools (同时解决鼠标滚轮问题)Ubuntu 安装VMware-Tools (同时解决鼠标滚轮问题)Ubuntu 安装VMware-Tools (同时解决鼠标滚轮问题)Ubuntu 安装VMware-Tools (同时解决鼠标滚轮问题)Ubuntu 安装VMware-Tools (同时解决鼠标滚轮问题)Ubuntu 安装VMware-Tools (同时解决鼠标滚轮问题)
阅读(1155) | 评论(0) | 转发(0) |