轉載自blog.csdn.net/zzobin/article/details/7376616
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
- sudo apt-get update
- sudo apt-get install wine
2.安裝winetricks
- wget http://kegel.com/wine/winetricks
改變權限,剪切到:/usr/local/bin
- chmod +x winetricks
- 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 **刪除文件夾。
安裝Source Insight之前需要先安裝Wine,然后用Wine去安裝Source Insight。
1. 安裝Wine
在終端輸入以下命令:sudo apt-get install wine
安裝完成之后會在你的用戶主目錄下生成一個隱藏的.wine目錄,內容如下圖:
drive_c 即相當於Windows系統中的C盤:
我們使用Wine安裝的Windows程序就在Program Files目錄下。
我們還可以使用winecfg命令來配置Wine:
2. 用Wine去安裝Source Insight
首先下載好Source Insight的安裝包,比如我的安裝包名稱是:/home/CC/SourceInsight/sourceinsight_Setup_3.5.72.0.exe,然后使用命令:wine /home/CC/SourceInsight/sourceinsight_Setup_3.5.72.0.exe 就可以安裝了。
怎么啟動Source Insight軟件呢?
首先找到Source Insight的安裝目錄,如上面所說的用Wine安裝的windows程序的目錄在:/home/cc/.wine/drive_c/Program Files/下,所以,我們的Source Insight的安裝目錄就在/home/cc/.wine/drive_c/Program Files/Source Insight 3下,在此目錄下會有一個Source Insight的啟動程序,即:Insight3.exe,然后運行命令:wine Insight3.exe即可啟動Source Insight。
如圖:
ok!
www.linuxidc.com/Linux/2012-07/65603.htm