20070208
這幾天在虛擬機(jī)里安裝了Fedora Core 6,并安裝的VMware Tool成功,參考了網(wǎng)上的一些文章,結(jié)合自己的實踐經(jīng)驗。以下把具體的實現(xiàn)過程記錄下來,以備參考!
1,安裝GCC開發(fā)工具
# Install software called by by VMware Tools
yum install gcc
2,安裝內(nèi)核文件
# Install kernel header files
yum install kernel-devel
3.檢查內(nèi)核文件的版本是否匹配,如果不匹配需要進(jìn)行升級
# Check it matches the running kernel
uname -r # running kernel
rpm -q kernel-devel # installed kernel headers
4,第3不中如果不匹配,則需要升級內(nèi)核文件,升級完后,重新啟動系統(tǒng)
# It the two versions do not match, run
yum -y upgrade kernel kernel-devel
# then reboot (but only if they did not match).
5,查找內(nèi)核文件的位置,安裝VMware-tool工具時候需要(我裝的時候,會自動查找到,不需要手工指定)
# Find out where the kernel headers are
ls -d /usr/src/kernels/$(uname -r)*/include
# You may need this later.
7,下載虛擬機(jī)工具安裝包,即:VMware-tool安裝包,并解壓(具體就是在虛擬機(jī)工具欄上,點擊"VM"->"Install VMware Tools",會出現(xiàn)安裝包,選擇*.gz的文件,解壓到一個目錄下就可以)
以下是命令行中具體實現(xiàn)方法,我是在圖形界面下實現(xiàn)的
# 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.進(jìn)入解壓目標(biāo)目錄,執(zhí)行以下代碼,一路回車按下來
cd /tmp/vmware-tools-distrib/
./vmware-install.pl
# Do you want to run vmware-config-tools.pl? yes
9,修改配置文件,這步也可在圖形界面下進(jìn)行,打開/etc/X11/xorg.conf,按照下面的說明,添加響應(yīng)的字段,保存后重新啟動系統(tǒng)
# 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
這是安裝的全部過程,紅色部分是解決顯示與鼠標(biāo)的部分。安裝如上操作,鼠標(biāo)終于搞定!
至此,vmware tools 的安裝就全部完成了。
通過安裝VMWare Tools,我實現(xiàn)了鼠標(biāo)的自動切換,但是拷貝,粘貼還是有不行,請高手指教,共同探討,聯(lián)系QQ:18820884
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請
點擊舉報。