首页 技术 正文
技术 2022年11月19日
0 收藏 539 点赞 2,875 浏览 1639 个字

最近很多业务系统都是linux lnmp平台安装,反复的安装让人觉得很苦恼,仔细钻研了下kickstart 。这里环境是red hat linux 5.8 32位,系统盘中的软件包里包含有kickstart。

1、安装kickstart

#rpm -ivh py-*

#rpm -ivh system-config-kickstart

2、创建应答文件

#platform=x86, AMD64, 鎴?Intel EM64T
# System authorization information
auth –useshadow –enablemd5
# System bootloader configuration
bootloader –append=”rhgb quiet” –location=mbr –driveorder=sda
# Partition clearing information
clearpart –none
# Use text mode install
text
# Firewall configuration
firewall –disabled
# Run the Setup Agent on first boot
firstboot –disable
key –skip
# 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.1.254 –ip=192.168.1.100 –nameserver=8.8.8.8 –netmask=255.255.255.0 –onboot=on
# Reboot after installation
reboot
#Root password
rootpw –iscrypted $1$qyoXbT/6$OidbitstRPCrz0Yp4Z9IS.

# SELinux configuration
selinux –disabled
# System timezone
timezone –isUtc Asia/Shanghai
# Install OS instead of upgrade
install
# X Window System configuration information
xconfig –defaultdesktop=GNOME –depth=8 –resolution=640×480 –startxonboot

%packages
@admin-tools
@base
@chinese-support
@core
@development-libs
@development-tools
@dialup
@editors
@gnome-desktop
@games
@graphical-internet
@graphics
@java
@legacy-software-support
@office
@printing
@sound-and-video
@text-internet
@base-x
kexec-tools
iscsi-initiator-utils
fipscheck
device-mapper-multipath
sgpio
libstdc++44-devel
python-dmidecode
gcc44-c++
gcc44-gfortran
imake
libgfortran44
gcc44
emacs
libsane-hpaio
xorg-x11-utils
xorg-x11-server-Xnest
xorg-x11-server-Xvfb

将在root用户目录下生成的ks.cfg文件添加到系统镜像中,并修改光盘中isolinux目录下的isolinux.cfg 的第一行

default linux ks=cdrom:/ks.cfg

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,086
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,561
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,410
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,183
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,820
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,903