1. 安裝 wine
詳看:http://wiki.ubuntu.org.cn/Wine
sudo apt-get install wine
因為版本比較舊,所以通常不用,改用 PPA中 的 wine。
安裝最新版 wine
ubuntu 官方內建了 wine ,但是推薦用 winehq 官方提供的最新版本 wine ,新版本解決了很多以前顯得麻煩的問題。
PPA 地址:https://launchpad.net/~ubuntu-wine/+archive/ppa
sudo add-apt-repository ppa:ubuntu-wine/ppa<br />sudo apt-get update<br />sudo apt-get install wine
2. 安裝 winetricks
wget http://kegel.com/wine/winetricks
改變許可權,剪下到:/usr/local/bin
chmod +x winetricks<br />sudo mv winetricks /usr/local/bin
使用 winetricks,安裝軟體,例如安裝 .net2.0 架構
winetricks dotnet20
3.安裝 source insight
:http://www.sourceinsight.com/downeval.html
使用命令 wine *.exe(剛下載的source insight軟體)開始安裝 source insight
ubuntu中Application/wine/Programs開啟source insight
建立 project,匯入 android 源碼即可。
4.卸載 wine
刪除主要檔案
sudo apt-get remove --purge wine
刪除殘留檔案
(1)刪除.config/menus目錄下的相應檔案
(2)刪除.config/menus/applications-merged目錄下的相關檔案
(3)開啟.config/menus/applications.menu檔案,刪除檔案中與wine有關的內容。
(4)刪除以下三個檔案:
/usr/share/app-install/desktop/wine.desktop
/usr/share/app-install/desktop/wineconfig.desktop
/usr/share/app-install/desktop/winefish.desktop
(5)刪除下面三個目錄下與wine和wine相關的內容:
~/.local/share/applications
~/.local/share/desktop-directories
~/.local/share/icons
(6)刪除~/.wine
注意:.config、.wine、.local 均在使用者目錄下(一般會隱藏),可在終端使用 ls -al 顯示當期目錄的所有檔案,然後使用 rm -f **刪除檔案、使用 rm -fr **刪除檔案夾。
5.更多wine配置
http://forum.ubuntu.org.cn/viewtopic.php?t=107816注意:4、5 是題外話,有興趣的 ITREN 可以研究!!!