免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2101 | 回复: 0
打印 上一主题 下一主题

定制自己的LiveCD,依托(centos) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-15 14:35 |只看该作者 |倒序浏览

1、建立自己的yum-repository或者使用官方的(考虑到你需要的软件小,所以这一步不是很必要)。
2、安装一个centos系统,修改etc/yum.repos.d/centos-livecd.repo文件内容
# Name: CentOS LiveCD repository
[livecd]
name = CentOS $releasever - LiveCD
baseurl = http://www.nanotechnologies.qc.ca/propos/linux/centos-live/$basearch/live
enabled=1
protect=0
gpgkey = http://www.nanotechnologies.qc.ca/propos/linux/RPM-GPG-KEY-PGuay
保存之后,执行以下命令:
# yum install livecd-tools syslinux
这样就安装好了工具,接下来就是写自己想要的ks脚本;
3、ks脚本
名称:centos-livecd-minimal.ks(这个就是你所说的linux+GNOME)
内容:
lang en_US.UTF-8
keyboard us
timezone US/Eastern
auth --useshadow --enablemd5
selinux --disabled
firewall --disabled


repo --name=base --baseurl=http://ftp.telus.net/pub/centos/5/os/$basearch
repo --name=updates --baseurl=http://ftp.telus.net/pub/centos/5/updates/$basearch
repo --name=extras --baseurl=http://ftp.telus.net/pub/centos/5/extras/$basearch
#repo --name=base --baseurl=http://isoredirect.centos.org/centos/5/os/$basearch
#repo --name=updates --baseurl=http://isoredirect.centos.org/centos/5/updates/$basearch
#repo --name=extras --baseurl=http://isoredirect.centos.org/centos/5/extras/$basearch
repo --name=live --baseurl=http://www.nanotechnologies.qc.ca/propos/linux/centos-live/$basearch/live

%packages
bash
kernel
syslinux
passwd
policycoreutils
chkconfig
authconfig
rootfiles
comps-extras
xkeyboard-config
gnome-desktop
4、生成
# LANG=C livecd-creator –config=centos-livecd-minimal.ks –fslabel=linux-gnome
执行这个命令需要一会时间,你耐心等下,执行成功后,你会看到一个linux-gnome.iso的文件,这个文件可以刻录到光盘,在光驱中直接启动,也可以安装到硬盘,并且你可以定制里面的配置和桌面背景之类的,都是通过ks脚本实现。注意(ks 脚本路径要写对,上面那样写,要在ks脚本所在目录执行)


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/109111/showart_2149929.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP