如何在CentOS下安装VMwareTools工具

安裝VMWare Tools有几个优点:

1.可以支援其他解析度,不再局限于640 x 480和800 x 600。
2.Host OS与Guest OS传档时,只需鼠标拖曳即可。
3.鼠标在Host OS与Guest OS切换时,不需再按Ctrl + Alt。

此次安装VMWare Tools的目的是第三点:为了本机和centos切换时,可以直接切换,不需再按ctrl+Alt,这样会觉得方便许多哦,呵呵,


Step 1:
在VMWare选VM -> Install VMWare Tools...,就会在桌面出现VMWare Tools图示让你安裝


Step 2:
进入CentOS桌面后,将光碟机打开,看到了VMWareTools-6.0.2-59824.i386.rpm与VMWareTools-6.0.2.59824.tar.gz。

看到rpm你应该很兴奋,因为CentOS与Fedora/RHEL师出同源,所以应该可以用,但经我测试结果,是可以安裝,安装过程也没有错誤,但可惜安裝完沒有VMWare Tools该有的功能,所以只能用tarball来安裝了。


Step 3:
將VMWareTools-6.0.2.59824.tar.gz复制到home directory,进行解压缩。

[root@localhost~]#tarzxvfVMwareTools-6.0.2-59824.tar.gz


Step 4:
进入解压缩后的vmware-tools-distrib目录

[root@localhost~]#cdvmware-tools-distrib/


Step 5:
执行vmware-install.pl安裝VMWare Tools

[root@localhostvmware-tools-distrib]#./vmware-install.pl


之后出现很多问题,都接受预设值一直按enter即可,唯一问到萤幕解析度问题,若你想使用其他解析度,请自行设定如下:

PleasechooseoneofthefollowingdisplaysizesthatXwillstartwith(1-
15):

[1]"640x480"
[2]<"800x600"
[3]"1024x768"
[4]"1152x864"
[5]"1280x800"
[6]"1152x900"
[7]"1280x1024"
[8]"1376x1032"
[9]"1400x900"
[10]"1400x1050"
[11]"1440x900"
[12]"1680x1050"
[13]"1600x1200"
[14]"1920x1200"
[15]"2364x1773"
Pleaseenteranumberbetween1and15:

[2]3


最后出现以下讯息,表示安裝成功。

XWindowSystemVersion7.1.1
ReleaseDate:12May2006
XProtocolVersion11,Revision0,Release7.1.1
BuildOperatingSystem:Linux2.6.9-67.ELsmpi686RedHat,Inc.
CurrentOperatingSystem:Linuxlocalhost.localdomain2.6.18-53.1.19.el5#1SMPWedMay708:20:19EDT2008i686
BuildDate:19January2008
BuildID:xorg-x11-server1.1.1-48.26.el5_1.5
Beforereportingproblems,checkhttp://wiki.x.org
tomakesurethatyouhavethelatestversion.
ModuleLoaderpresent
Markers:(--)probed,(**)fromconfigfile,(==)defaultsetting,
(++)fromcommandline,(!!)notice,(II)informational,
(WW)warning,(EE)error,(NI)notimplemented,(??)unknown.
(++)Logfile:"/tmp/vmware-config0/XF86ConfigLog.2977",Time:FriJun615:14:322008
(++)Usingconfigfile:"/tmp/vmware-config0/XF86Config.2977"

Xisrunningfinewiththenewconfigfile.

FreeFontPath:FPE"unix/:7100"refcountis2,shouldbe1;fixing.
StartingVMwareToolsservicesinthevirtualmachine:
Switchingtoguestconfiguration:[确定]
Guestfilesystemdriver:[确定]
MountingHGFSshares:[失败]
Guestmemorymanager:[确定]
Guestvmxnetfastnetworkdevice:[确定]
Blockingfilesystem:[确定]
DMAsetup:[确定]
Guestoperatingsystemdaemon:[确定]

TheconfigurationofVMwareTools6.0.2build-59824forLinuxforthisrunning
kernelcompletedsuccessfully.

YoumustrestartyourXsessionbeforeanymouseorgraphicschangestake
effect.

YoucannowrunVMwareToolsbyinvokingthefollowingcommand:
"/usr/bin/vmware-toolbox"duringanXserversession.

Tousethevmxnetdriver,restartnetworkingusingthefollowingcommands:
/etc/init.d/networkstop
rmmodpcnet32
rmmodvmxnet
modprobevmxnet
/etc/init.d/networkstart

Tomakeuseofthevirtualprinter,youwillneedtorestarttheCUPSservice

Enjoy,

--theVMwareteam


重新启动CentOS,你就会发现新的萤幕解析度出现,并且鼠标不需再切换,且可使用拖曳的方式传档。


你可能感兴趣的:(centos)