文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>如何通过Kickstart安装RHEL5(网络安装一)

如何通过Kickstart安装RHEL5(网络安装一)

时间:2009-04-30  来源:binghun0518

通过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://192.168.50.250/RHEL5.3/
      http方式为:
       url --url http://192.168.50.250/RHEL5.3
      ftp方式为:
        url --url ftp://username:[email protected]/var/www/html/RHEL5.3
      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                         #以下为所安装的服务和包。
    24.@cluster-storage
    25.@admin-tools
    26.@editors
    27.@virtualization
    28.@gnome-desktop
    29.@core
    30.@base
    31.@clustering
    32.@base-x
    33.@graphical-internet
    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脚本中,开头为#的也是注释点的行。     有关参数的祥细解释,参见:http://doc.chinahtml.com/manual/rhl-cg-zh_cn-9/s1-kickstart2-options.html  Red Hat Linux 9: Red Hat Linux 定制指南   二、客户端的安装    客户端以LINUX的引导盘进行启动,在boot:下输入:    linux ks=http://192.168.50.250/ks.cfg    客户端就可以ks的方式进行定制的安装了。(若新硬盘的安装测试完成后,接着再补充。)
相关阅读 更多 +
排行榜 更多 +
2025pubg国际服最新版本

2025pubg国际服最新版本

飞行射击 下载
pubg国际服地铁逃生最新版本2025

pubg国际服地铁逃生最新版本2025

飞行射击 下载
火柴人大乱斗4游戏

火柴人大乱斗4游戏

飞行射击 下载