01 安裝ubuntu 來做開發環境設定,準備編譯 Android 原始碼

01 安裝ubuntu 來做開發環境設定,準備編譯 Android 原始碼

柯老師我是用MAC 上面用VMware Fusion 來架設開發環境

 

安裝ubuntu

如果你沒有ubuntu 11.04 的話,可以到下面網址下載iso

http://www.ubuntu.com/download/ubuntu/download

 

 

下載iso 後

燒錄iso 到CD

 

Note:  使用 Apple’s Disk Utility 去 燒 ubuntu ISOs,

  1. 在macLaunch 上執行 Disk Utility (Applications → Utilities → Disk Utility).
  2. 放進空白的  CD/DVD.
  3. 拖拉 .iso 檔到 Disk Utility. 便會看到 .iso 在清單。
  4. 在上面的 toolbar 選擇  .iso file 檔 選取 ‘Burn’  按鈕.

 

或用下拉式的選單選取Images\Burn….

 

 

 

 

 

 

 

 

用VMWave Fusion 安裝ubuntu

 

新增一個新的 虛擬機

 

 

 

 

 

 

 

 

 

 

把剛剛燒好的DVD 放在DVD-Rom,  選取 “Install this operating system”, 按”continue”

 

 

我是選取”English” 和 “Install Ubuntu” 來安裝。

 

選取全部 ,並點選”Forward”

 

 

v選取”Erase disk and install Ubuntu”, 和”Forward”

 

 

“Erase disk and install Ubuntu” 選取”install now”

 

 

 

我是選”USA” 的鍵盤

 

設定你的名字、帳號、密碼, 選’Forward’

 

 

最後,安裝完畢後,restart 就完成了整個按裝過程

 

 

成功

 

 

練習:

請在 ubuntu 上使用 firefox 在 applications->internet-> firefox web browser.

和 使用 movie player  在 applications->Sound&Video ->  movie player  .

看看用作是否一切正常。

 

進階:

 

其實安裝ubuntu 64 bit 也是一個不錯的選擇,速度又快,如果你的硬體支援的話,可以嘗試安裝使用ubuntu 64 bit 版。

 

參考資料:

  • 官方的安裝文件  http://source.android.com/source/initializing.html
  • http://taien.idv.tw/?p=146
  • http://small-strong.blogspot.com/2010/01/ubuntuandroid.html

 

 

 

Android 系統底層
CH01 簡介CH02 安裝CH03 編譯系統CH04 編譯程式的QACH05 系統軟體CH06 JNICH07 APP呼叫Android Driver教學CH30 DRM