24.03.2015 Views

利用CentOS 快速构建自己的发行版【背景】 一.制作 ... - LinuxTone.Org

利用CentOS 快速构建自己的发行版【背景】 一.制作 ... - LinuxTone.Org

利用CentOS 快速构建自己的发行版【背景】 一.制作 ... - LinuxTone.Org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IT 运 维 专 家 网<br />

http://www.linuxtone.org<br />

done<br />

执 行 以 上 脚 本 将 定 制 ltos 必 要 的 rpm 复 制 到 /ltos/CentOS 目 录<br />

返 回 到 /ltos 目 录 下 , 执 行 createrepo 程 序 生 成 repodata 下 的 comps.xml 文 件<br />

#cd /ltos<br />

#createrepo -g repodata/comps.xml .<br />

4. 配 置 kickstart 脚 本<br />

通 过 CentOS5.3 定 制 安 装 系 统 以 后 , 会 在 系 统 里 产 生 一 个 kickstart 安 装 脚 本 (/root/anaconda-ks.cfg)<br />

# cp anaconda-ks.cfg /ltos/isolinux/ks.cfg<br />

# vi /ltos/isolinux/ks.cfg 并 修 改 脚 本 如 下 :<br />

# Kickstart file automatically generated by anaconda.<br />

# Install CentOS instead of Upgrade<br />

install<br />

text<br />

#install from cd-rom<br />

cdrom<br />

lang en_US.UTF-8<br />

keyboard us<br />

# Skip the X Configuration<br />

skipx<br />

network --device eth0 --bootproto dhcp --hostname ltos.linuxtone.org<br />

rootpw --iscrypted $1$jPZf0P0r$JRe7pd.5wq9k.VZEMOgdq/<br />

# Setup the firewall with SSH, HTTP/S, Syslog, Webmin, and Netflow enabled<br />

firewall --enabled --port=22:tcp --port=69:udp --port=80:tcp --port=443:tcp<br />

authconfig --enableshadow --enablemd5<br />

# Disable SELinux<br />

selinux --disabled<br />

timezone --utc Asia/Shanghai<br />

# Clear the Bootloader and load it to the Master Boot Record<br />

bootloader --location=mbr<br />

zerombr yes<br />

# Set the Mouse<br />

IT 运 维 专 家 网 ------“ 我 为 人 人 , 人 人 为 我 ! 知 识 源 于 分 享 , 源 于 交 流 !”---<strong>LinuxTone</strong> 技 术 交 流 分 享 社 区 !

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!