- 论坛徽章:
- 0
|
更正为 linux ks=http://192.168.239.125/install/ks.cfg
install目录下面是centos 第一张光盘所有的文件和其他三张光盘所有的rpm文件
192.168.239.125 安装了apache服务,想通过http来实现安装
ks.cfg文件如下
install
url --url http://192.168.239.125/install
lang en_US.UTF-8
langsupport --default=en_US.UTF-8 zh_CN.UTF-8 en_US.UTF-8
keyboard us
xconfig --card "ATI Rage XL" --videoram 8128 --hsync 24-61 --vsync 56-75 --resol
ution 800x600 --depth 16
network --device eth0 --bootproto static --ip 192.168.239.201 --netmask 255.255.255.0 --nameserver 202.106.46.151,210.22.70.3
network --device eth1 --bootproto dhcp
rootpw --iscrypted $1$oJdjqzHP$AUYh66WDyrsCpkvTgXUCt/
firewall --enabled --port=22:tcp --port=80:tcp --port=21:tcp --port=25:tcp
selinux --permissive
authconfig --enableshadow --enablemd5
timezone Asia/Shanghai
bootloader --location=mbr
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --linux
#part /boot --fstype ext3 --size=2000 --ondisk=cciss/c0d0
#part /var --fstype ext3 --size=20000 --ondisk=cciss/c0d0
#part /usr --fstype ext3 --size=15000 --ondisk=cciss/c0d0
#part / --fstype ext3 --size=10000 --ondisk=cciss/c0d0
#part /home --fstype ext3 --size=5000 --ondisk=cciss/c0d0
#part /tmp --fstype ext3 --size=2000 --ondisk=cciss/c0d0
#part swap --size=2000 --ondisk=cciss/c0d0
#part /ftp --fstype ext3 --size=1 --grow --ondisk=cciss/c0d0
%packages
@ admin-tools
@ editors
@ emacs
@ system-tools
@ dialup
@ network-server
@ chinese-support
@ server-cfg
@ development-tools
grub
kernel-smp
kernel-smp-devel
kernel-devel
e2fsprogs
%post
在检测网卡的时候提示有2块网卡,手动选择第一个etho
但请求ip的时候无法安装脚本的自动生成,不知道为什么,需要改文件还是要再做个DHCP吗 |
|