wiki:jazz/preseed_ubuntu

Version 2 (modified by jazz, 13 years ago) (diff)

--

無人值守自動安裝 Ubuntu 光碟

背景知識

  • <參考文件> Install CD Customization (客製化安裝光碟)
  • <備註一> 文件中提到這種方式是針對 Alternative 或 Server 版本的安裝光碟,因此不適用 Desktop 版本的安裝光碟。
  • <筆記一> 文件中第一段提到 Ubuntu 從 6.06 版以後的 Alternative 與 Server 版本安裝光碟,目錄結構大致上包含三部份。以下採用 Ubuntu 10.10 PC (Intel x86) alternate install CD 為例:
    ~$ lsb_release -a
    No LSB modules are available.
    Distributor ID:	Ubuntu
    Description:	Ubuntu 10.04.1 LTS
    Release:	10.04
    Codename:	lucid
    ~$ wget http://free.nchc.org.tw/ubuntu-cd/10.10/ubuntu-10.10-alternate-i386.iso
    ~$ mkdir -p /opt/cd-image
    ~$ sudo mount -o loop ubuntu-10.10-alternate-i386.iso /opt/cd-image
    ~$ ls -al /opt/cd-image
    總計 203
    dr-xr-xr-x 11 root root   2048 2010-10-07 23:48 .
    drwxrwxrwx 12 root root   4096 2011-10-26 17:07 ..
    dr-xr-xr-x  3 root root   2048 2010-10-07 23:48 boot
    -r-xr-xr-x  1 root root   1118 2010-10-04 23:27 cdromupgrade
    dr-xr-xr-x  2 root root   2048 2010-10-07 23:47 .disk
    dr-xr-xr-x  3 root root   2048 2010-10-07 23:47 dists
    dr-xr-xr-x  3 root root   2048 2010-10-07 23:47 doc
    dr-xr-xr-x  3 root root   2048 2010-10-07 23:48 install
    dr-xr-xr-x  2 root root  16384 2010-10-07 23:48 isolinux
    -r--r--r--  1 root root 166833 2010-10-07 23:49 md5sum.txt
    dr-xr-xr-x  2 root root   2048 2010-10-07 23:47 pics
    dr-xr-xr-x  3 root root   2048 2010-10-07 23:47 pool
    dr-xr-xr-x  2 root root   2048 2010-10-07 23:47 preseed
    -r--r--r--  1 root root    227 2010-10-07 23:47 README.diskdefines
    lr-xr-xr-x  1 root root      1 2010-10-07 23:47 ubuntu -> .