自制linux 安装光盘,Linux无人值守安装光盘制作

Linux(rhel5.5)无人值守安装光盘制作

一、生产自动安装kickstart配置文件(可用kickstart配置工具,system-config-kickstart配置)

[root@www.linuxidc.com ~]#vim /root/ks.cfg

#platform=x86, AMD64, 或 Intel EM64T

# System authorization information

auth  --useshadow  --enablemd5

key --skip                            #跳过安装sn的输入,必须有

# System bootloader configuration

bootloader --location=mbr

# Clear the Master Boot Record

zerombr

# Partition clearing information

clearpart --all --initlabel

# Use graphical install

#graphical

# Use text mode install            #字符界面安装

text

# Firewall configuration

firewall --disabled

# Run the Setup Agent on first boot

firstboot --disable

# System keyboard

keyboard us

# System language

lang zh_CN                     #系统默认语言设置

# Installation logging level

logging --level=info

# Use CDROM installation media

cdrom                         #默认安装介质

# Network information

network --bootproto=static --device=eth0 --gateway=192.168.32.254 --ip=192.168.32.30 --netmask=255.255.255.0 --onboot=on    #网络设置

# Reboot after installation

reboot --eject    #安装后弹出cd重新系统,必须弹出cd,否则重启时会再次自动安装系统

#Root password

rootpw --iscrypted $1$m3qF5xHj$nPMaPd2vTvl6Bnm5Do.un.

# SELinux configuration

selinux --disabled

# System timezone

timezone  Asia/Chongqing

# Install OS instead of upgrade

install

# X Window System configuration information

xconfig  --defaultdesktop=GNOME --depth=16 --resolution=1024x768 --startxonboot

# Disk partitioning information        #硬盘分区设置

part /boot --bytes-per-inode=4096 --fstype="ext3" --ondisk=sda --size=256

part swap --bytes-per-inode=4096 --fstype="swap" --ondisk=sda --size=8192

#part / --bytes-per-inode=4096 --fstype="ext3" --grow --ondisk=sda --size=51200

#LVM install                #逻辑卷创建配置,必须严格按照物理卷、卷组、逻辑卷顺序创建

part pv.01 --ondisk=sda --size 51200

volgroup vg00 pv.01

logvol / --vgname=vg00 --size=1 --grow --name=lv00

#Software packages install   #软件安装包选择

%packages

@base

@gnome-desktop

@development-libs

@base-x

@admin-tools

@legacy-software-development

@development-tools

@chinese-support

@server-cfg

@legacy-network-server

@legacy-software-support

@system-tools

@editors

@text-internet

@graphical-internet

@smb-server

@ftp-server0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值