http://live.debian.net/
所有关于制作debian live cd的资料都有。debian live cd的维基在这里:
http://wiki.debian.org/DebianLive/
以下是主要的制作过程:
- 安装基本制作工具live-helper:
$ aptitude install live-helper
- 建立制作配置,生成两个目录config和scripts:
$ 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"
- 配置完毕,正式生成镜像文件binary.iso:
$ lh_build
- 生成镜像文件后,用虚拟机测试一下:
$ qemu -cdrom binary.iso
- 测试满意,烧成CD:
$ wodim binary.iso
没有评论:
发表评论