Chinaunix首页 | 论坛 | 博客
  • 博客访问: 174502
  • 博文数量: 18
  • 博客积分: 804
  • 博客等级: 军士长
  • 技术积分: 220
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-01 13:30
文章分类

全部博文(18)

文章存档

2015年(1)

2012年(2)

2011年(1)

2010年(2)

2009年(12)

分类: LINUX

2009-04-30 21:00:37

通过Kickstart安装RHEL5
一.安装环境搭建.(VM下)
  DHCP服务器(RHEL5):
   ETH0:    192.168.50.250
   SOFTWARE:DHCP,APACHE.
  配置:
   #chkconfig httpd on
   #chkconfig dhcpd on
   #service httpd on
   #service dhcpd on
   #mkdir /var/www/html/RHEL5.3
   #mount /dev/cdrom /mnt/cdrom
   #cp -arp /mnt/cdrom/ /var/www/html/RHEL5.3
   #cat /var/www/html/ks.cfg << EOF
    1.install
    2.url --url
      http方式为:
       url --url
      ftp方式为:
        url --url
      nfs方式为:
       nfs --server=192.168.10.14 --dir=/var/www/html/RHEL5.3
      cdrom方式为:
       cdrom
      floppy方式为:
       floppy
      注:以上红色字体为安装方式,安装时按环境进行选择其一。

    3.key 4c10c9d64c6b34c9   #或为key --skip
    4.lang en_US.UTF-8       #安装语言
    5.keyboard us            #键盘类型
    6.xconfig --startxonboot 
    7.network --device eth0 --bootproto static --ip 192.168.50.200 --hostname 
       iscsitarget.test.com --netmask 255.255.255.0 --gateway 192.168.50.254 --
       nameserver 192.168.50.254    #网卡配置
    8.rootpw --iscrypted $1$d1TMFbjq$DycVMZCP8bFM43hpW.FzI. #root password
    9.firewall --disabled           #不开启防火墙
    10.authconfig --enableshadow --enablemd5 
    11.selinux --disabled
    12.timezone Asia/Shanghai
    13.bootloader --location=mbr --driveorder=sda --append="rhgb quiet"
    14.# The following is the partition information you requested
    15.# Note that any partitions you deleted are not expressed
    16.# here so unless you clear all partitions first, this is
    17.# not guaranteed to work
    18.clearpart --linux                 #清除linux分区信息。(硬盘安装过LINUX)
    19.part / --fstype ext3 --size=7000  #/ 分区类型和大小
    20.part swap --size=512              #swap分区的大小
    21.#clearpart --all --initlabel --drives=sda
                                        #清除所有分区 (新硬盘,不过还在提醒要初始化,
                                                      添加--initlable的参数)
    22.#autopart                         #自动进行分区。
    23.%packages                         #以下为所安装的服务和包。
   
   
   
   
   
   
   
   
   
   
    34.scsi-target-utils
    35.kexec-tools
    36.bridge-utils
    37.device-mapper-multipath
    38.xorg-x11-utils
    39.xorg-x11-server-Xnest
    40.libsane-hpaio
    41.-sysreport
    42.EOF
    注:红色字体不包括在此KS脚本中,开头为#的也是注释点的行。
    有关参数的祥细解释,参见:  Red Hat Linux 9: Red Hat Linux 定制指南
 
二、客户端的安装
   客户端以LINUX的引导盘进行启动,在boot:下输入:
   linux ks=
   客户端就可以ks的方式进行定制的安装了。(若新硬盘的安装测试完成后,接着再补充。)
阅读(1987) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~