Red Hat Enterprise Linux5.5 安装vmware-tools
      由于工作需要,架设了基于Red Hat Enterprise Linux5.5的一个linux服务器版本,架在VMware上,虽然默认安装的时候安装上了ssh服务,能够让我几乎不进入虚拟机在Windows下就可以通过Putty登陆进行文件操作,同时使用UltraEdit编辑里面的文件,但是总是要做些文件共享的,所以就要安装VMware tools。
  看虚拟机左下角,提示是没有安装VMware tools的,于是就点虚拟机菜单上: 虚拟机——>安装Vm tools。但是,你会发现即使是在图形界面下也没有弹出一个窗口,你也没发现挂载上了什么光驱是和VMware有关的,这时你应该检查你的RHEL5的安装盘(安装镜像)是不是还在里面?将它断开连接或者干脆从虚拟机中弹出吧。
  之后,正常的话会弹出一个窗口,你可以发现有一个rpm安装包和一个tar的压缩文件,两种安装方式任选。这里我们使用简单的安装方式,因为这样带来了我遇到的问题……(-_-!)
  双击rpm文件,就可以安装的,看起来和Windows下类似吧,恩,接下来会提示什么你的软件可能因为未授权而存在危险,问你是否继续,这里也学的Windows挺像,然后继续……就正常的安装上了……
  这时应该能共享文件夹了吧……可是你会发现一个事实: 虚拟机的左下角还是提示你没有安装VMware tools!
  于是再重装,网上查的问题多半是因为没装gcc和内核包所致的问题!但是我要做开发,自然全装上了,而且安装没有提示出错啊!
  反复折腾不果,于是按照命令的方式安装吧,既然已经将文件安装进了系统,那么找一下。
  ( 以下命令在虚拟机中执行,不要在Windows下的登陆终端执行,因为中间会断开网络的
   cd /usr/bin
  ls一下找到vmware-config-tools.pl
  执行./vmware-config-tools.pl
  这时进入向导了,提示添yes就行了,具体是啥就不解释了,应该能看懂,之后让选分辨率,选择合适的。
  经过一段配置,你发现你的鼠标自然进出虚拟机了!右下角也提示 已成功安装VMware tools了,那就安装成功了。
  这下也能共享文件夹了。
  当然认为如果完全用命令来执行就不会有这么多事了一定,所以看来linux的配置最好都在shell下进行,鼠标点的那些最好不要轻信(-_-!)
  一下附上命令安装的方式 (这里也可以用rpm命令运行rpm文件,意思差不多,因为后面就和我的过程一样的,所以从略):
   cd /mnt
  cp VMwareTools-6.0.3-80004.tar.gz /tmp (这里文件名可能不同,就是大概一样的)
  cd /tmp
  tar zxf VMwareTools-6.0.3-80004.tar.gz
  cd vmware-tools-distrib
   ./vmware-install.pl
  
Creating a new installer database using the tar3 format.

Installing the content of the package.

# 安装过程的画面,全部使用默认值,一直按 Enter 就对了

In which directory do you want to install the binary files?
[/usr/bin]


What is the directory that contains the init directories (rc0.d/ to rc6.d/)?

[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

Thepath "/usr/lib/vmware-tools" does not exist currently. This program isgoingto create it, including needed parent directories. Is this whatyou want?
[yes]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

Thepath "/usr/share/doc/vmware-tools" does not exist currently. Thisprogram isgoing to create it, including needed parent directories. Isthis what you want?
[yes]

The installation of VMware Tools 5.5.1 build-19175 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]


Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                           [   确定   ]
Trying to find a suitable vmhgfs module for your running kernel.

The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.

pcnet32                 30153   0
Unloading pcnet32 module

Trying to find a suitable vmxnet module for your running kernel.

The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.



Detected X.org version 6.8.

关闭控制台鼠标服务:                                       [   确定   ]
启动控制台鼠标服务:                                       [   确定   ]

Please choose one of the following display sizes (1 - 13):

# 显示分辨率,这里是以 1024x768 为例

# VMware Tools 安装的时候,会自动修改 X server 的配置文件

[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"
Please enter a number between 1 and 13:

[2] 3


X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.9-34.EL i686 [ELF]
Current Operating System: Linux rd01.domain 2.6.9-34.EL #1 Wed Mar 8 00:07:35 CST 2006 i686
Build Date: 04 May 2006
Build Host: x8664-build.centos.org

         Before reporting problems, check http://wiki.X.Org
         to make sure that you have the latest version.
Module Loader present
OSKernel: Linux version 2.6.9-34.EL (buildcentos@build-i386) (gcc version3.4.5 20051201 (Red Hat 3.4.5-2)) #1 Wed Mar 8 00:07:35 CST 2006 P
Markers: (--) probed, (**) from config file, (==) default setting,
         (++) from command line, (!!) notice, (II) informational,
         (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/vmware-config0/XF86ConfigLog.3131", Time: Mon Jun 12 20:57:34 2006
(++) Using config file: "/tmp/vmware-config0/XF86Config.3131"
(WW) VMWARE(0): Failed to set up write-combining range (0xf0000000,0x1000000)

X is running fine with the new config file.

Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                       [   确定   ]
   Guest filesystem driver: