页面

显示标签为“debian live cd”的博文。显示所有博文
显示标签为“debian live cd”的博文。显示所有博文

2009-04-09

制作debian live CD

debian live cd工程的主页在这里:
http://live.debian.net/
所有关于制作debian live cd的资料都有。debian live cd的维基在这里:
http://wiki.debian.org/DebianLive/

以下是主要的制作过程:
  1. 安装基本制作工具live-helper:
    $ aptitude install live-helper
  2. 建立制作配置,生成两个目录configscripts
    $ lh_config --mirror-bootstrap "ftp://mirror.cpsc.ucalgary.ca/mirror/debian.org/debian/" --mirror-chroot "ftp://mirror.cpsc.ucalgary.ca/mirror/debian.org/debian/" --mirror-binary "http://ftp.debian.org/debian/" --debian-installer netinst
    头两个参数指定用于制作live CD的包源;第三个参数指定最终生成的live CD中使用的包源;参数debian-installer指定生成的live CD将包括一个debian网络安装接口;编辑配置文件config/chroot定制额外的包。例如,制作包括gnome桌面环境的live CD,可以通过修改变量LH_PACKAGES_LISTS
    LH_PACKAGES_LISTS="gnome"
    这个变量实际上引用了live-helper预先定义的“宏”,类似于apt中pseudo包的意思。要包含具体的软件包,可以编辑变量LH_PACKAGES
    LH_PACKAGES="gparted dosfstools ntfsprogs emacs wodim apt-spy less mplayer"
  3. 配置完毕,正式生成镜像文件binary.iso:
    $ lh_build
  4. 生成镜像文件后,用虚拟机测试一下:
    $ qemu -cdrom binary.iso
  5. 测试满意,烧成CD:
    $ wodim binary.iso

creating a debian live cd

Above all, the debian live cd project's home is:
http://live.debian.net/
There are all about debian live cd. Another resource is its wiki:
http://wiki.debian.org/DebianLive/

The following shows the main process:
  1. The basic utility bundle is live-helper:
    $ aptitude install live-helper
  2. Make a configuration base in which two directories, config and scripts, are created:
    $ lh_config --mirror-bootstrap "ftp://mirror.cpsc.ucalgary.ca/mirror/debian.org/debian/" --mirror-chroot "ftp://mirror.cpsc.ucalgary.ca/mirror/debian.org/debian/" --mirror-binary "http://ftp.debian.org/debian/" --debian-installer netinst
    The first two options specify the package retrieval source for building a live CD; The third option specifies the apt source used by the final live system; option debian-installer instructs to create a live CD with debian net installer interface.User may want to include extra pakcages into the live CD, which can be done by editing the file config/chroot. For example, if a user wants to make a live CD with gnome, edit the variable LH_PACKAGES_LISTS:
    LH_PACKAGES_LISTS="gnome"
    Actually, this variable refers live-helper predefined 'macro', like the pseudo package name in APT. Another similar variable LH_PACKAGES can be used to include atom package:
    LH_PACKAGES="gparted dosfstools ntfsprogs emacs wodim apt-spy less mplayer"
  3. Then build a ISO file in terms of the configuration:
    $ lh_build
  4. User may want to test the ISO image:
    $ qemu -cdrom binary.iso
  5. Finally, burn the ISO image:
    $ wodim binary.iso