[Fedora]/root下anaconda-ks.cfg

安裝系統時的一些信息。  

--引用文字開始--

#Kickstart file automatically generated by anaconda.

#version=DEVEL

--我用的是網絡安裝--

install

nfs --server=192.168.13.99 --dir=/home/iso

--安裝時選擇的語言和鍵盤佈局

lang zh_CN.UTF-8

keyboard us

--安裝是的網絡配置信息 時區

network --device eth0 --bootproto dhcp

timezone Asia/Shanghai

--root密碼

rootpw  --iscrypted $6$OfzhRzifop07.Pe9$zWwQeE.TkY5Pc5LRxLGEyMY1dY9W91aYaOyiqBbx7AUFi2rs2/VZFbUBOrqZdStaH/qmz1dtJ95d8jd3VX7qd1

--selinux的配置信息

selinux --enforcing

認證加密

authconfig --enableshadow --passalgo=sha512 --enablefingerprint

防火牆的配置信息

firewall --service=ssh

磁盤配置信息

# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --linux --drives=sda
#ignoredisk --only-use=sda

#part None --fstype=ntfs --onpart=sda1 --noformat
#part None --fstype=vfat --label="D:" --onpart=sda2 --noformat
#part None --fstype=ntfs --label="E:" --onpart=sda3 --noformat

#part /boot --fstype=ext4 --size=500
#part pv.ooFpmG-Wylf-pAgR-FCPH-HvSZ-qvgY-TGkhJT --grow --size=500

#volgroup vg_zhangjianfeng --pesize=32768 pv.ooFpmG-Wylf-pAgR-FCPH-HvSZ-qvgY-TGkhJT
#logvol /home --fstype=ext4 --name=lv_home --vgname=vg_zhangjianfeng --grow --size=100
#logvol / --fstype=ext4 --name=lv_root --vgname=vg_zhangjianfeng --grow --size=1024 --maxsize=51200
#logvol swap --name=lv_swap --vgname=vg_zhangjianfeng --grow --size=1888 --maxsize=3776

--啓動引導分區

bootloader --location=mbr --driveorder=sda --append="rhgb quiet"

安裝時選擇的軟件包
%packages
@base
@chinese-support
@core
@development-libs
@development-tools
@editors
@fonts
@gnome-desktop
@gnome-software-development
@graphical-internet
@graphics
@hardware-support
@input-methods
@java
@kde-desktop
@online-docs
@text-internet
@x-software-development
@base-x
@xfce-desktop
xfsprogs
mtools
gpgme
gpm
lua
cjkuni-uming-fonts
cjkuni-ukai-fonts
qtcurve-gtk2
gvfs-obexftp
glibmm24-devel
gnome-vfs2-devel
libsigc++20-devel
libart_lgpl-devel
kdepim
konversation
ImageMagick
digikam
kipi-plugins
kdegraphics
gypsy
gpsd
hdparm
m17n-db-tamil
m17n-db-gujarati

m17n-db-kannada

m17n-db-hindi
gok
m17n-db-oriya
m17n-db-bengali
m17n-contrib-sinhala
m17n-db-assamese
m17n-db-punjabi
iok
m17n-db-telugu
m17n-db-malayalam
ncftp
mesa-libGLU-devel
xorg-x11-apps
xscreensaver-gl-extras
gdm
xscreensaver-extras
xscreensaver-base
xterm
xorg-x11-resutils
%end

 @爲未安裝的包

其他爲安裝的包               

這個配置文件修改之後可以用於雷同環境下,使用Kickstart來自動安裝大量同樣的操作系統

可以把這個文件修改之後放入U盤,命名爲ks.cfg

在裝系統時,出現boot界面時就可以輸入:

linux ks=/dev/sdb:/yourpath/ks.cfg

也可以放入nfs服務器,通過網絡安裝,出現boot界面時就可以輸入:

linux ks=nfs:servername:/yourpath/ks.cfg

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章