Chinaunix首页 | 论坛 | 博客
  • 博客访问: 394070
  • 博文数量: 89
  • 博客积分: 1386
  • 博客等级: 中尉
  • 技术积分: 827
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-20 10:32
个人简介

12年 linux 系统运维工程师,网络架构设计、优化,故障处理。

文章分类

全部博文(89)

文章存档

2019年(1)

2015年(2)

2014年(11)

2013年(14)

2012年(2)

2011年(59)

分类: LINUX

2011-06-20 10:55:53

#platform=x86, AMD64, or Intel EM64T

# autostep

# System authorization information

auth  --useshadow  --enablemd5 

# System bootloader configuration

bootloader --location=mbr

# Partition clearing information

clearpart --all --initlabel 

# Partiton

part /boot --size 101  --ondisk=sda

part swap --size 8000 --ondisk=sda

part pv.01 --size 20001 --ondisk=sda

part pv.02 --size 100000 --ondisk=sda

part pv.03 --size 100000 --ondisk=sda

part pv.04 --size 10000 --grow --ondisk=sda

volgroup myvg pv.01 

volgroup data1 pv.02

volgroup data2 pv.03

logvol / --vgname=myvg --size=10001 --name=rootvol

logvol /a8root/squid/cache1 --vgname=data1 --size=10001 --grow --name=a8data1

logvol /a8root/squid/cache2 --vgname=data2 --size=10001 --grow --name=a8data2

#logvol /a8root --vgname=myvg --grow --name=a8vol

# Use graphical install

graphical

# text

# Firewall configuration

firewall --enabled --ssh  

# Run the Setup Agent on first boot

firstboot --disable

# System keyboard

keyboard us

# System language

lang en_US

# Installation logging level

logging --level=debug

# Use CDROM installation media

cdrom

# url --url 

# Network information

#network --bootproto=dhcp --device=eth0 --onboot=on

#network --bootproto=static --device=eth1  --onboot=off --ip=192.168.100.205 --netmask=255.255.255.0 --noipv6

network --bootproto=static --device=eth1  --onboot=on --ip=192.168.100.51 --netmask=255.255.254.0 --gateway=192.168.100.1 --nameserver=59.151.12.33 --hostname=njsquid1 --noipv6

# Reboot after installation

reboot

#Root password

rootpw --iscrypted $1$vKujQz.T$6JsCtxQiq0v6CWw1IlMwC.

user --name=kxting --password=$1$vKujQz.T$6JsCtxQiq0v6CWw1IlMwC. --iscrypted

user --name=shuqing --password=$1$vKujQz.T$6JsCtxQiq0v6CWw1IlMwC. --iscrypted

# SELinux configuration

selinux --disabled

# Do not configure the X Window System

skipx

# System timezone

timezone  Asia/Shanghai

# Install OS instead of upgrade

install

services --disabled=acpid,apmd,bluetooth,cpuspeed,cups,fristboot,gpm,haldaemon,hidd,mdmonitor,mcstrans,ip6tables,netfs,messagebus,nfslock,pcscd,portmap,xfs,readahead_early,restorecond,rpcgssd,rpcidmapd,sendmail

%packages

@development-tools

ntp

lynx

mc

vim-minimal

iproute

iptraf

gcc

gcc-c++

lrzsz

openssl-devel

#squid

kernel-PAE

kernel-PAE-devel

#sys_config_zhou

%pre

#!/bin/sh

echo " Welcome to my kickstart"

%post

echo "shuqing ALL=(ALL)    ALL" >> /etc/sudoers

echo "kxting  ALL=(ALL)    ALL" >> /etc/sudoers

(echo -en "# ntp sync time\n01 * * * * root ntpdate clock.redhat.com > /dev/null; hwclock --systohc" >> /etc/crontab ) 1>/root/post-sc.log 2>&1

eject

阅读(1119) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~