在CentOS 5.5系统中安装VMware Tools

http://apps.hi.baidu.com/share/detail/16864522


在VMware中安装了CentOS 5.5,可是屏幕分辨率只能设置为800X600,在网上搜了解决方法,需要安装VMware Tools,安装的过程中,遇到的问题及其解决的方法,记录如下:
一、VMware Tools在哪里?
先启动CentOS系统,进入到系统后,在VMware Workstation的主菜单,

选择VM,Install VMware Tools,在弹出的对话框中选择install

如果不先启动CentOS系统,Install VMware Tools菜单是灰色的哦。
二、如何安装VMware Tools ?
双击计算机,双击打开CD-ROM驱动器。

将VMware Tools-5.5.3-34685.tar.gz拷贝到桌面。打开终端
[root@localhost ~]#cd Desktop
[root@localhost Desktop]# tar zxvf VMwareTools-5.5.3-34685.tar.gz
[root@localhost Desktop]#cd vmware-tools-distrib
[root@localhost vmware-tools-distrib]#./vmware-install.pl
开始安装VMware Tools,一路回车往下走。
配置X windows,输入yes并回车:
Do you want to change your guest X resolution?(yes/no) [no] yes
选择显示屏幕大小,好了,重新启动!
------------------------------------------------------------
三、遇到的3个问题
问题1:What is the location of the "gcc" program on your machine?
The answer "" is invalid. It must be the complete name of a binary file.
回车,屏幕一直打印该信息,原因是我装系统的时候没安装开发工具。
解决方法:在VMware中插入CentOS的DVD映像,在CentOS系统中点击“应用程序”,添加/删除软件,将“开发”->“开发工具”选中,应用。
问题2:What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
解决方法:升级 gcc & kernel,使用如下的两个命令
yum -y install gcc gcc-c++ kernel-devel
yum -y update kernel

[root@localhost vmware-tools-distrib]# yum -y install gcc gcc-c++ kernel-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.candishosting.com.cn
* base: centos.mirror.cdnetworks.com
* extras: centos.candishosting.com.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
Package gcc-4.1.2-48.el5.i386 already installed and latest version
Package gcc-c++-4.1.2-48.el5.i386 already installed and latest version
Package kernel-devel-2.6.18-194.11.1.el5.i686 already installed and latest version
Nothing to do
不需要更新!
[root@localhost vmware-tools-distrib]# yum -y update kernel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.candishosting.com.cn
* base: centos.mirror.cdnetworks.com
* extras: centos.candishosting.com.cn
* updates: centos.ustc.edu.cn
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package kernel.i686 0:2.6.18-194.11.1.el5 set to be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================
Package Arch Version Repository Size
================================================
Installing:
Kernel i686 2.6.18-194.11.1.el5 updates 17 M
Transaction Summary
================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 17 M
Downloading Packages:
kernel-2.6.18-194.11.1.el5.i686.rpm | 17 MB 01:19
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : kernel 1/1
Installed:
kernel.i686 0:2.6.18-194.11.1.el5
Complete!
完成更新!
重启系统,重新运行vmware-install.pl
[root@localhost vmware-tools-distrib]#./vmware-install.pl

问题3:系统无法进入X Window
Undefined Monitor "vmware" referenced by Screen "Screen0".
原因:The OS configuration routine could not autodetect the monitor type and wrote a xorg.conf stub with no useful monitor data. The vmware-config-tools script then got confused and mixed monitor data with driver data, ruining the whole setup.
解决方法:依次打开,系统->管理->显示,打开“显示设置”窗口。

有两个地方需要设置:
(1)点击“硬件”选项卡,点击“配置按钮”,将“显示器类型”调整为LCD Display下的相应选项;
(2)点击“设置”选项卡,选择需要设置的分辨率,点“确定”保存修改。
重启系统,大功告成!


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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值