| 1 | = Building ClassCloud Live CD = |
| 2 | |
| 3 | == 2010-05-17 == |
| 4 | |
| 5 | * 昨晚想了很久,或許開始動手寫 code 比規劃半天有用。本想用 Chromium OS 來改,因為它也是基於 Ubuntu/Debian 系列,不過看了 penk 的 [http://penkia.blogspot.com/2010/02/xpud-chromium-os.html xPUD 火力展示:全世界最小的 Chromium OS (58MB)],並考量可能會需要一些 base system 跟 firefox 中鑲嵌 terminal 的需求,決定還是用 [http://github.com/penk/mkxpud mkxpud] 來作好了。 |
| 6 | |
| 7 | * 測試環境:Debian GNU/Linux 5.0.4 (lenny) |
| 8 | {{{ |
| 9 | jazz@Wdebian:~$ lsb_release -a |
| 10 | No LSB modules are available. |
| 11 | Distributor ID: Debian |
| 12 | Description: Debian GNU/Linux 5.0.4 (lenny) |
| 13 | Release: 5.0.4 |
| 14 | Codename: lenny |
| 15 | }}} |
| 16 | * 取得 xPUD [http://github.com/penk/mkxpud mkxpud] 原始碼 - (1) 先安裝 git (注意套件名稱是 git-core 不是 git 喔!!) (2) 從 github 下載原始碼 |
| 17 | {{{ |
| 18 | jazz@Wdebian:~$ sudo apt-get install git-core |
| 19 | jazz@Wdebian:~$ git clone git://github.com/penk/mkxpud.git |
| 20 | }}} |
| 21 | * 由於會使用到 mksqushfs 跟 mkiofs 指令,因此就必須安裝 squashfs-tools 與 mkisofs 兩個套件。另外,因為會用到 ttf-droid 套件,只有 Ubuntu 有包,Debian 沒有,所以就只好從 Ubuntu 借了。 |
| 22 | {{{ |
| 23 | jazz@Wdebian:~$ http://mirrors.kernel.org/ubuntu/pool/universe/t/ttf-droid/ttf-droid_1.00~b112+dfsg+1-0ubuntu1_all.deb |
| 24 | jazz@Wdebian:~$ dpkg -i ttf-droid_1.00~b112+dfsg+1-0ubuntu1_all.deb |
| 25 | jazz@Wdebian:~$ sudo apt-get install squashfs-tools mkisofs |
| 26 | jazz@Wdebian:~$ cd mkxpud/ |
| 27 | jazz@Wdebian:~/mkxpud$ sudo ./tools/mkxpud all |
| 28 | }}} |
| 29 | * [結果] 失敗!!! 看樣子 xPUD 的 mkxpud 一定得在 Ubuntu 系列執行才可以 :( - 沒仔細看文件的下場 .... |
| 30 | {{{ |
| 31 | To generate a xPUD image, you will need: |
| 32 | |
| 33 | 1. a working Ubuntu 9.10 installation <---------------- ㄜ!!!! 2.6.28.cookbook jaunty.cookbook xpud089.cookbook default.cookbook lucid.cookbook 都是 ubuntu 系列 |
| 34 | 2. sudo permission to install packages on the host and testing |
| 35 | 3. Internet access to download packages (if required) |
| 36 | 4. at least 500MB of hard disk free space |
| 37 | }}} |