livecd linux 原理,制作centos-livecd

安装livecd-tools

#yum -y install livecd-tools

如果安装过程中报错,镜像网站不可用。要重新配置yum源, 替换成中科大的mirror,可以参考 https://lug.ustc.edu.cn/wiki/mirrors/help/centos 替换/etc/yum.repos.d/CentOS-Base.repo之前,记得备份。 如果这样还是安装失败的话,建议下载rpm安装。

获取ks文件

#wget http://people.centos.org/arrfab/CentOS6/LiveCD-DVD/centos6-liveCD-desktop.cfg

编辑ks文件

[[email protected] livecd]# vim centos6-liveCD-desktop.cfg

lang en_US.UTF-8

keyboard us

timezone US/Eastern

#rootpw wavetop_888888

auth --useshadow --enablemd5

seLinux --enforcing

firewall --disabled --service=mdns

repo --name="CentOS-6 - Media" --baseurl=file:///media/CentOS_6.4_Final

#--baseurl=http://mirrors.ustc.edu.cn/epel/6/$basearch

# --baseurl=file://REPOPATH

xconfig --startxonboot

part / --size 8192 --fstype ext4

services --enabled=NetworkManager,network,sshd --disabled=

可以设置root密码,默认开启或关闭的服务,设置键盘时区等。这里为了提高速度,我把repo 的源设置为cd镜像,就不用在线下载一些包了。

制作ios

# livecd-creator -c centos6-liveCD-desktop.cfg -f centos6-desktop

这样就可以创建出一个名为centos6-desktop.iso的镜像文件了。

参考: [1] Building Custom CentOS 6.4 LiveCD With

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值