Fedora Core 6 在VMware中的vmware-tools安装过程

来源:百度文库 编辑:神马文学网 时间:2024/06/13 13:00:23
20070208
这几天在虚拟机里安装了Fedora Core 6,并安装的VMware Tool成功,参考了网上的一些文章,结合自己的实践经验。以下把具体的实现过程记录下来,以备参考!
1,安装GCC开发工具
# Install software called by by VMware Tools
yum install gcc
2,安装内核文件
# Install kernel header files
yum install kernel-devel
3.检查内核文件的版本是否匹配,如果不匹配需要进行升级
# Check it matches the running kernel
uname -r             # running kernel
rpm -q kernel-devel  # installed kernel headers
4,第3不中如果不匹配,则需要升级内核文件,升级完后,重新启动系统
# It the two versions do not match, run
yum -y upgrade kernel kernel-devel
# then reboot (but only if they did not match).
5,查找内核文件的位置,安装VMware-tool工具时候需要(我装的时候,会自动查找到,不需要手工指定)
# Find out where the kernel headers are
ls -d /usr/src/kernels/$(uname -r)*/include
# You may need this later.
7,下载虚拟机工具安装包,即:VMware-tool安装包,并解压(具体就是在虚拟机工具栏上,点击"VM"->"Install VMware Tools",会出现安装包,选择*.gz的文件,解压到一个目录下就可以)
以下是命令行中具体实现方法,我是在图形界面下实现的
# If you already have VMwareTools-5.5.2-29772.tar.gz
on disk, SKIP THIS STEP!
# Download VMware-workstation-5.5.2-29772.tar.gz from vmware.com
# Extract the VMware Tools iso from it
tar --strip-components=3 -zxvf VMware-workstation-5.5.2-29772.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.2-29772.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.2-29772.tar.gz
8.进入解压目标目录,执行以下代码,一路回车按下来
cd /tmp/vmware-tools-distrib/
./vmware-install.pl
# Do you want to run vmware-config-tools.pl? yes
9,修改配置文件,这步也可在图形界面下进行,打开/etc/X11/xorg.conf,按照下面的说明,添加响应的字段,保存后重新启动系统
# Fix xorg config
# If when you (re)start X, you get the error "Undefined Monitor "vmware"..":
vi /etc/X11/xorg.conf
# Add the lines
Section "Monitor"
Identifier   "vmware"
EndSection
# To add better mouse support, add the lines
Section "InputDevice"
Identifier "Mouse0"
Driver "vmmouse"
Option "Protocol" "Auto"
Option "Device" "/dev/input/mouse0"
EndSection
# then find the "ServerLayout" section, and in that section, add the line
InputDevice "Mouse0" "CorePointer"
# TODO fix vmhgfs compile (currently broken)
# TODO fix fast ethernet driver compile (currently broken)
# TODO copy and paste broken
这是安装的全部过程,红色部分是解决显示与鼠标的部分。安装如上操作,鼠标终于搞定!
至此,vmware tools 的安装就全部完成了。
通过安装VMWare Tools,我实现了鼠标的自动切换,但是拷贝,粘贴还是有不行,请高手指教,共同探讨,联系QQ:18820884