加入收藏 | 设为首页 | 会员中心 | 我要投稿 应用网_丽江站长网 (http://www.0888zz.com/)- 科技、建站、数据工具、云上网络、机器学习!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

RedHat 6.0企业版安装指南

发布时间:2016-05-28 05:53:29 所属栏目:Linux 来源:网络整理
导读:一、简介: 本文翻译自Red_Hat_Enterprise_Linux-6-Installation_Guide-en-US。 闲来无事、游手好闲,因此特将该文件的第28至33章翻译出来。内容较多,若翻译有

6.4 生成Kickstart文件:

yum安装system-config-kickstart软件,使用该软件生成Kickstart文件,使用方法见第五节内容。

生成Kickstart文件后保存至/ks目录下(该目录默认不存在,需要手动创建目录)

[root@localhost ~]#vim  /ks/ks.cfg        Kickstart文件内容如下

#platform=x86, AMD64, or Intel EM64T

#version=DEVEL

# Firewall configuration

firewall --disabled

# Install OS instead of upgrade

install

# Use NFS installation media

nfs --server=192.168.0.2 --dir=/media

# Root password

rootpw --iscrypted $1$k7gSaGFT$cRcT1X9SNOuEuvUHHkkAD0

# System authorization information

auth  --useshadow  --passalgo=sha512

# Use text mode install

text

firstboot --disable

# System keyboard

keyboard us

# System language

lang en_US

# SELinux configuration

selinux --disabled

# Installation logging level

logging --level=info

# Reboot after installation

reboot

# System timezone

timezone  Asia/Shanghai

# Network information

network  --bootproto=static --device=eth0 --gateway=192.168.0.1 --ip=192.168.0.201 --nameserver=202.106.0.20 --netmask=255.255.255.0 --onboot=on

# System bootloader configuration

bootloader --location=mbr

# Partition clearing information

clearpart --all --initlabel

# Disk partitioning information

part /boot --fstype="ext4" --size=200

part swap --fstype="swap" --size=2000

part /home --fstype="ext4" --size=500

part /var --fstype="ext4" --size=2000

part / --fstype="ext4" --size=5000

%packages

@base

@basic-desktop

@chinese-support

@desktop-debugging

@desktop-platform

@fonts

@general-desktop

@graphical-admin-tools

@input-methods

@internet-browser

@x11

cjkuni-fonts-ghostscript

cjkuni-fonts-ghostscript

%end

(编辑:应用网_丽江站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读