声明:本站收集资料仅供个人学习使用,版权仍归原作者所有.

Kick Start 无人职守安装(原创)

上一篇 / 下一篇  2007-03-06 16:21:31 / 个人分类:linux文档

 

4?,n1F%\?7df5nE0

 Linux宝库:B0kG5N8] mz

1、文 件 名:ks.cfg

)],V }r?0

2、位    置:位于服务器上。

A4^K Dq^Co`0

3、应用方法首先,用引导盘引导系统进入安装界面;Linux宝库5{BK Qug

              其次,在boot#后输入:Linux宝库h(Yk#fBj%L&N]j

   linux ks=nfs:192.168.1.3:/ftp/pub/ks.cfg

^ } c6f IwT#`0

  (192.168.1.3是NFS服务器名称, /ftp/pub/ks.cfg是Kick Start的配置文件及在服务器上的位置)。

O:T5l {\|0

4、Ks.cfg内容(示例):

I1BHC7ry,h8L0

# Kickstart file automatically generated by anaconda.Linux宝库&A1{_#k6IL
Linux宝库Owj+hu
Install

o;E(_L*V:h:E"K0

# Nfs server、系统语言及支持语言、键盘的设定Linux宝库7a2WYMS0];Z
nfs --server=192.168.1.3 --dir=/ftp/pub/Linux宝库/cZCj*ck
lang en_US.UTF-8Linux宝库1^ ^'SX { s&{6b
langsupport --default=en_US.UTF-8 zh_CN.UTF-8 en_US.UTF-8
'Z{-S$[8^g o3V ?)w0keyboard us

-r#vu5c4D[9[w5Mp0

# 显示器、图形界面、桌面的设定Linux宝库)HRAB*wc'Z6GG
xconfig --card "VMWare" --videoram 16384 --hsync 31.5-37.9 --vsync 50-70 --resolution 800x600 --depth 16 --startxonboot --defaultdesktop gnomeLinux宝库%s:t+wZ9B1{e
# 网络、系统密码(md5加密)、防火墙、时区设定
Linux宝库&R H2mU4sIeo*{4g0\4t

network --device eth0 --bootproto dhcpLinux宝库5{ W%W2`nG.Z
rootpw --iscrypted $1$FJuMuK0****3DoR****iJDe6****ND/Linux宝库X(Zo1P[
firewall --disabledLinux宝库]/rbst-o?V,Q
selinux --enforcing
Jlx&Lcn DNy~0authconfig --enableshadow --enablemd5Linux宝库v"S%Qn W p@
timezone Asia/ShanghaiLinux宝库-Ct7[r'y
bootloader --location=mbr --append="rhgb quiet"
sux9~{I4Y`)X0# 系统磁盘分区设定

m1_ U:M3P,Ra8? B0

# The following is the partition information you requestedLinux宝库{5\5|8\8u'l
# Note that any partitions you deleted are not expressed
7D ~ c oH$Z&ug B"[0# here so unless you clear all partitions first, this isLinux宝库"T W!H#t7k/X
# not guaranteed to work
:]3{:I0]+bY;Daz2Q0clearpart --linux --drives=sdaLinux宝库v^'m1[k:B9}'h v
part /boot --fstype ext3 --size=100Linux宝库4|1zb3i!l
part swap --size=512Linux宝库(k/yl,Z(];b Z
part / --fstype ext3 --size=100 --growLinux宝库u(l@,_&U8WZ5\0N3^7_0K
 

| ^#\nyUo6Z-D0

# 软件包安装列表Linux宝库$P#Vn q ~
%packages
f o L;\{r2|bl0@ admin-tools
f)E Y7v9AP0@ editorsLinux宝库+R:Z*F(qj8_O
@ emacsLinux宝库_z \] zX|
@ system-toolsLinux宝库,m9B*f*}B5TP"t
@ gnome-software-development
i:a fJ7qt$B`z)g0@ text-internetLinux宝库!B-N-n-j'XH
@ x-software-development
K4CPA'jFy%H:g0@ gnome-desktopLinux宝库/x-{w4Dg%H
@ dialup
.f`0C[J'B0@ base-xLinux宝库'a V"\)ft;e
@ chinese-support
j-H,r:K&P-^*U#[0@ graphics
dF yx%R0@ printing
bYQ t$gk b0@ development-tools
9p+U2XE iD.d l0@ graphical-internetLinux宝库-u9qj9x.?%x
grubLinux宝库4?O|'R,^ Hv0B
kernel-devel
LE3abj;F0e2fsprogsLinux宝库7S!A'bAiQ,t3J)Vb
kernel
c)w5z D&L?0
?f*V[7V8~T2^l0%post
?)xH pO*a9V%]0 

M7i ~g/kk {0

 Linux宝库{"q5FO |.@gp z

注:ks.cfg中的汉字仅是说明。应用中可以删除掉。

a xD8U3[;F ]%oGW)[0

 Linux宝库sS0N6p,Hch

5. 如果你的硬盘为新硬盘Linux宝库 ef3YK H+eu

   安装时系统会提示创建新的硬盘分区表,这是整个安装中唯一的一个需要你手工确定的地方(除安装完毕后的重起提示),当然,如果你使用一个已经分过区的硬盘,将不会有此提示。Linux宝库e;q6sp*NJKB

    另外,在clearpart --linux --drives=sda选项中添加--initlabel, 磁盘卷标初始为你的体系的默认值(例如:x86 使用msdos,Itanium 使用gpt)。这个选项很有用,因为在安装了新硬盘驱动器后,安装程序就不会问你是否应初始磁盘卷标。

d L#qybZ9z)b0

TAG: linux文档 linux Linux LINUX kickstart centos

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

数据统计

  • 访问量: 40079
  • 日志数: 45
  • 图片数: 2
  • 书签数: 14
  • 建立时间: 2006-07-10
  • 更新时间: 2007-03-24

RSS订阅

Open Toolbar