LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2632|回复: 3

VMware Tools 不能在Fedora Core 5安装的解决办法

[复制链接]
发表于 2006-8-28 16:24:42 | 显示全部楼层 |阅读模式
现在好多兄弟在自己的windows下安装虚拟机VMware,用来学习Linux,一般情况下在装完Linux操作系统后,再装VMware Tools不是什么难事,具体操作如下:
1.依次点击虚拟机的VM->Install VMware Tools;
2.如果光驱没有被自动加载,可以手动加载光驱;
3.在终端依次输入命令:
cp /mnt/cdrom/VMwareTools-5.5.1-19175.tar.gz /tmp
cd /tmp
进入TMP目录
tar -zxf VMwareTools-5.5.1-19175.tar.gz
解压缩该软件包,默认解压到vmware-tools-distrib     目录下(与文件名同名)。
cd vmware-tools-distrib
进行安装
./vmware-install.pl
但是因为VMwareTools现在还不支持Fedora Core 5的安装,这就导致在虚拟机上安装Fedora Core 5时,使用时非常不方便,
我也是搞了好半天才给弄好的,拿出来共享。
资料来源:http://www.thoughtpolice.co.uk/v ... -tools-install.html
一下带#的为解释语句,不带#的为终端命令,大家的英语也不赖是吧?相信大家都能看懂。
# Install software called by by VMware Tools
yum install gcc

# Install kernel header files
yum install kernel-devel

# Check it matches the running kernel
uname -r             # running kernel
rpm -q kernel-devel  # installed kernel headers
# It the two versions do not match, run
yum -y upgrade kernel kernel-devel
# then reboot (but only if they did not match).

# Find out where the kernel headers are
echo /usr/src/kernels/$(uname -r)-$(uname -p)/include
# You need this later.

# If you already have VMwareTools-5.5.1-19175.tar.gz on disk, SKIP THIS STEP!
# Download VMware-workstation-5.5.1-19175.tar.gz from vmware.com
# Extract the VMware Tools iso from it
tar --strip-components=3 -zxvf VMware-workstation-5.5.1-19175.tar.gz vmware-distrib/lib/isoimages/linux.iso
# Create a temporary mount point
mkdir /mnt/vmtools-temp
# Mount the image
mount -o loop linux.iso /mnt/vmtools-temp
# Copy VMware Tools from the mount
cp /mnt/vmtools-temp/VMwareTools-5.5.1-19175.tar.gz /tmp/
# Unmount the image and tidy up
umount /mnt/vmtools-temp
rmdir /mnt/vmtools-temp
rm linux.iso

# Unpack VMware Tools to a temporary directory
cd /tmp/
tar zxvf VMwareTools-5.5.1-19175.tar.gz
cd /tmp/vmware-tools-distrib/
./vmware-install.pl
# Do you want to run vmware-config-tools.pl? no

# Backup vmware-config-tools.pl
cp /usr/bin/vmware-config-tools.pl /usr/bin/vmware-config-tools.pl.orig

# Patch VMware Tools
cd /tmp/
wget http://platan.vc.cvut.cz/ftp/pub ... -any-update2.tar.gz
tar zxvf vmware-tools-any-update2.tar.gz
cd vmware-tools-any-update2/
./runme.pl
# Do you want to run vmware-config-tools.pl? no

### NOTE: if you have a recent kernel, you must skip this patch
### This commented out step will be removed shortly.
## Backup vmware-config-tools.pl
#cp /usr/bin/vmware-config-tools.pl /usr/bin/vmware-config-tools.pl.prepatch
## Apply patch to vmware-config-tools.pl
#cd /tmp/vmware-tools-distrib/bin
#wget http://www.thoughtpolice.co.uk/v ... nfig-tools.pl.patch
#patch /usr/bin/vmware-config-tools.pl /tmp/vmware-config-tools.pl.patch
###

# Run the config script
/usr/bin/vmware-config-tools.pl

# Link to the VMware mouse driver
ln -s /usr/lib/vmware-tools/configurator/XOrg/6.8.x/vmmouse_drv.o /usr/lib/xorg/modules/input/

# Change xorg mouse
vi /etc/X11/xorg.conf
Change "mouse" to "vmmouse" in Section "InputDevice"

# Restart X
# (press ctrl+alt+backspace)
 楼主| 发表于 2006-9-15 18:32:29 | 显示全部楼层
这么多人看了,也没有人给顶一下下,呵呵
回复 支持 反对

使用道具 举报

发表于 2006-9-16 11:31:49 | 显示全部楼层
好贴,支持你一下。。
回复 支持 反对

使用道具 举报

发表于 2006-11-19 14:13:24 | 显示全部楼层
在FC6下照这种方法安装VMware tools还素不顶用啊~~~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表