一:安裝虛擬機器Vmware。
注意:如果是win7系統則需要裝7.0以上版本,否則會導致虛擬機器geust系統無法上網。
二:安裝Ubuntu。建議安裝9.04相對穩定。
注意:9.10版本可能會導致安裝ADT失敗,需要安裝WST解決此問題。run Eclipse->Help->Install new software->Add Site->
http://download.eclipse.org/releases/galileo/.
三:安裝Samba。此工具用於host與guest之間的檔案分享權限設定。
# sudo apt-get insall samba samba-common-bin
2.1. 建立共用目錄:
# mkdir /home/win_share
# sudo chmod 777 /home/win_share
2.2. 建立Samba設定檔: (選配)
#sudo gedit /etc/samba/smb.conf
添加以下配置:
[Win_share]
comment = windows share
path = /home/win_share
browseable = yes
read only = no
writable = yes
public = yes
guest ok = yes
available = yes
2.3. 重啟Samba服務
# /etc/init.d/samba restart
以上操作成功後,在Ubuntu下敲命令列ifconfig查看ip,用主機直接存取guest的ip地址即可。為了方便訪問win_share檔案夾,也可以工具->映射網路驅動
四:安裝Vmware-tools
首先你可能需要安裝vmware-tools工具.這樣你滑鼠可以方便的在虛擬機器和主機之間自由移動.複製黏貼等操作.
以下操作可以完成vmware-tools的安裝
將下面代碼儲存成ubuntu904vmtools.sh
代碼
#!/bin/bash
echo "Updating packages..."
sleep 3
sudo apt-get update
echo Y|sudo apt-get upgrade
echo -n "Determining whether this is a desktop or a server installation... "
if [ "${kernelstring=`uname -r|grep -i server`}" == "" ]; then
desktopinstall=true
echo "desktop."
else
desktopinstall=false
echo "server."
fi
sleep 3
if [ $desktopinstall == true ]; then
echo Y|sudo apt-get install build-essential libgtk2.0-dev libgtkmm-2.4-dev libproc-dev libdumbnet-dev xorg-dev psmisc linux-headers-$(uname -r) libproc-dev libicu-dev libglib2.0-dev libnotify-dev libfuse-dev xserver-xorg-input-vmmouse
else
echo Y|sudo apt-get install build-essential libproc-dev libdumbnet-dev psmisc linux-headers-$(uname -r) libproc-dev libicu-dev libglib2.0-dev libfuse-dev
fi
mkdir /tmp/chrysaor.info && cd /tmp/chrysaor.info
echo "Downloading VMware Tools..."
sleep 1
wget http://content.wuala.com/contents/chrysaor.info/public/scriptcontent/vmware-tools-ubuntu904.tgz
echo "Removing (Open) VMware Tools if installed"
sleep 1
echo Y|sudo apt-get remove open-vm-tools
if [ -f /usr/bin/vmware-uninstall-tools.pl ]; then
sudo perl /usr/bin/vmware-uninstall-tools.pl
fi
echo "Untaring VMware Tools..."
sleep 1
tar xzvf vmware-tools*.tgz*
echo "Installing VMware Tools..."
sleep 1
cd vmware-tools-distrib/
sudo perl ./vmware-install.pl
echo "Installation of VMware Tools finished. You may now reboot."
echo "Please come visit us at http://chrysaor.info ."
儲存在目前的目錄下然後運行#sudo perl ./ubuntu904vmtools.sh。
最後注意舊版本的金山詞霸去Ubuntu有衝突,主機host與guest切換游標時會導致程式退出