EGOPOLY

Topics include: programming, Apple, Unix, gadgets, large-scale web sites and other nerdy stuff.

Other random checklist items for creating CentOS kickstart server

2006-06-15 19:47:02

In an earlier note, I documented how to create a kickstart server to do automated network installs for FC4.

I recently repeated the process for CentOS, and found a few things that I had forgotten about. This is a brief recap.

  1. You need to make sure you install a DHCP server, a TFTP server and Apache:

yum install tftp-server
yum install dhcp

2. Edit the dhcpd.conf as in the other article.

3. Edit /etc/xinetd.d/tftp and set "disable" to "no"

4. Use this rsync script:

#! /bin/sh
mirror=rsync://mirrors.kernel.org/centos
localdir=/var/www/html/centos-mirror
rsync -azvH --exclude-from=/l/etc/centos-rsync-exclude.txt $mirror $localdir
createrepo -q $localdir/4/updates
repoview -f -q $localdir/4/updates
createrepo -q $localdir/4/os
repoview -f -q $localdir/4/os
createrepo -q $localdir/4/extras
repoview -f -q $localdir/4/extras

This assumes you have repoview utility to make yum repositories web browse-able.