当你的cnetos安装完成之后,会在/root目录生成一个anaconda-ks.cfg安装文件,通过该文件我们可以非常清楚的了解Centos安装的详细过程及情况,而且可以很方便的大规模布署Centos,实现无人值守的安装,以下为anaconda-ks.cfg文件的详细信息供大家参考!
[root@localhost ~]# cat anaconda-ks.cfg
# Kickstart file automatically generated by anaconda.
#version=DEVEL
install
cdrom
lang zh_CN.UTF-8
keyboard us
network --onboot yes --device eth0 --bootproto static --ip 192.168.1.6 --netmask 255.255.255.0 --gateway 192.168.1.1 --noipv6 --">nameserver 192.168.1.1
rootpw --iscrypted $6$vYMhFpQhZRf0ZUfu$zvqOGTL8XZUAe.9THa4a39D9N5e.QdeN9wJ9zcM73K/erBFmrSzdDv8YHlD1UNYJpaHTWIpHEoD8ZXhYPOr9.1
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --enforcing
timezone --utc Asia/Shanghai
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"
# 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
#volgroup VolGroup --pesize=4096 pv.008002
#logvol / --fstype=ext4 --name=lv_root --vgname=VolGroup --grow --size=1024 --maxsize=51200
#logvol swap --name=lv_swap --vgname=VolGroup --grow --size=4064 --maxsize=4064
#part /boot --fstype=ext4 --size=500
#part pv.008002 --grow --size=1
repo --name="CentOS" --baseurl=cdrom:sr0 --cost=100
%packages
@base
@chinese-support
@core
@debugging
@basic-desktop
@desktop-debugging
@desktop-platform
@directory-client
@fonts
@general-desktop
@graphical-admin-tools
@input-methods
@internet-applications
@internet-browser
@java-platform
@legacy-x
@network-file-system-client
@office-suite
@print-client
@remote-desktop-clients
@server-platform
@server-policy
@x11
mtools
oddjob
wodim
sgpio
genisoimage
device-mapper-persistent-data
pax
abrt-gui
samba-winbind
certmonger
pam_krb5
krb5-workstation
gnome-pilot
libXmu
我们也可以通过查看install.log日志文件,来判断Centos安装了哪些程序。
[root@localhost ~]# cat install.log
安装 valgrind-3.8.1-3.2.el6.i686
安装 enscript-1.6.4-15.el6.i686
安装 ledmon-0.74-1.el6.i686
安装 efibootmgr-0.5.4-10.el6.i686
安装 xvattr-1.3-18.el6.i686
安装 mlocate-0.22.2-4.el6.i686
安装 ltrace-0.5-23.45svn.el6.i686
安装 lsof-4.82-4.el6.i686
安装 rsync-3.0.6-9.el6.i686
安装 nano-2.0.9-7.el6.i686
安装 libitm-4.7.0-5.1.1.el6.i686
安装 attr-2.4.44-7.el6.i686
安装 nfs4-acl-tools-0.3.3-6.el6.i686
安装 scl-utils-20120927-2.el6.i686
安装 wdaemon-0.17-5.el6.i686
安装 mtr-0.75-5.el6.i686
安装 traceroute-2.0.14-2.el6.i686
安装 setserial-2.17-25.el6.i686
安装 vconfig-1.9-8.1.el6.i686
安装 rfkill-0.3-4.el6.i686
安装 rdate-1.4-16.el6.i686
安装 zip-3.0-1.el6.i686
安装 bridge-utils-1.2-10.el6.i686
安装 eject-2.1.5-17.el6.i686
安装 strace-4.5.19-1.17.el6.i686
安装 b43-fwcutter-012-2.2.el6.i686
安装 latrace-0.5.9-2.el6.i686
安装 trace-cmd-1.0.5-10.el6.i686
安装 crash-trace-command-1.0-4.el6.i686
......
内容太多忽略,有兴趣的朋友可以使用cat命令查看一下!
install.log.syslog是安装时对用户及用户组的配置,如创建用户、用户组等。
[root@localhost ~]# cat install.log.syslog
<86>Feb 17 16:35:03 groupadd[1942]: group added to /etc/group: name=dbus, GID=81
<86>Feb 17 16:35:03 groupadd[1942]: group added to /etc/gshadow: name=dbus
<86>Feb 17 16:35:03 groupadd[1942]: new group: name=dbus, GID=81
<86>Feb 17 16:35:03 useradd[1946]: new user: name=dbus, UID=81, GID=81, home=/, shell=/sbin/nologin
<86>Feb 17 16:35:17 groupadd[2035]: group added to /etc/group: name=usbmuxd, GID=113
<86>Feb 17 16:35:17 groupadd[2035]: group added to /etc/gshadow: name=usbmuxd
<86>Feb 17 16:35:17 groupadd[2035]: new group: name=usbmuxd, GID=113
<86>Feb 17 16:35:17 useradd[2040]: new user: name=usbmuxd, UID=113, GID=113, home=/, shell=/sbin/nologin
<86>Feb 17 16:35:18 groupadd[2055]: group added to /etc/group: name=utmp, GID=22
<86>Feb 17 16:35:18 groupadd[2055]: group added to /etc/gshadow: name=utmp
<86>Feb 17 16:35:18 groupadd[2055]: new group: name=utmp, GID=22
<86>Feb 17 16:35:18 groupadd[2059]: group added to /etc/group: name=utempter, GID=35
<86>Feb 17 16:35:18 groupadd[2059]: group added to /etc/gshadow: name=utempter
<86>Feb 17 16:35:18 groupadd[2059]: new group: name=utempter, GID=35
<86>Feb 17 16:35:22 groupadd[2103]: group added to /etc/group: name=desktop_admin_r, GID=499
<86>Feb 17 16:35:22 groupadd[2103]: group added to /etc/gshadow: name=desktop_admin_r
<86>Feb 17 16:35:22 groupadd[2103]: new group: name=desktop_admin_r, GID=499
<86>Feb 17 16:35:22 groupadd[2107]: group added to /etc/group: name=desktop_user_r, GID=498
<86>Feb 17 16:35:22 groupadd[2107]: group added to /etc/gshadow: name=desktop_user_r
<86>Feb 17 16:35:22 groupadd[2107]: new group: name=desktop_user_r, GID=498
<86>Feb 17 16:35:24 groupadd[2135]: group added to /etc/group: name=floppy, GID=19
<86>Feb 17 16:35:24 groupadd[2135]: group added to /etc/gshadow: name=floppy
<86>Feb 17 16:35:24 groupadd[2135]: new group: name=floppy, GID=19
<86>Feb 17 16:35:24 groupadd[2140]: group added to /etc/group: name=vcsa, GID=69
<86>Feb 17 16:35:24 groupadd[2140]: group added to /etc/gshadow: name=vcsa
<86>Feb 17 16:35:24 groupadd[2140]: new group: name=vcsa, GID=69
<86>Feb 17 16:35:24 useradd[2145]: new user: name=vcsa, UID=69, GID=69, home=/dev, shell=/sbin/nologin
<86>Feb 17 16:35:48 groupadd[2413]: group added to /etc/group: name=rpc, GID=32
<86>Feb 17 16:35:48 groupadd[2413]: group added to /etc/gshadow: name=rpc
<86>Feb 17 16:35:48 groupadd[2413]: new group: name=rpc, GID=32
<86>Feb 17 16:35:48 useradd[2417]: new user: name=rpc, UID=32, GID=32, home=/var/cache/rpcbind, shell=/sbin/nologin
<86>Feb 17 16:35:54 groupadd[2439]: group added to /etc/group: name=rtkit, GID=497
<86>Feb 17 16:35:54 groupadd[2439]: group added to /etc/gshadow: name=rtkit
<86>Feb 17 16:35:54 groupadd[2439]: new group: name=rtkit, GID=497
<86>Feb 17 16:35:54 useradd[2444]: new user: name=rtkit, UID=499, GID=497, home=/proc, shell=/sbin/nologin
<86>Feb 17 16:36:35 groupadd[2647]: group added to /etc/group: name=avahi-autoipd, GID=170
<86>Feb 17 16:36:35 groupadd[2647]: group added to /etc/gshadow: name=avahi-autoipd
<86>Feb 17 16:36:35 groupadd[2647]: new group: name=avahi-autoipd, GID=170
<86>Feb 17 16:36:35 useradd[2652]: new user: name=avahi-autoipd, UID=170, GID=170, home=/var/lib/avahi-autoipd, shell=/sbin/nologin
<86>Feb 17 16:36:42 groupadd[2717]: group added to /etc/group: name=cdrom, GID=11
<86>Feb 17 16:36:42 groupadd[2717]: group added to /etc/gshadow: name=cdrom
<86>Feb 17 16:36:42 groupadd[2717]: new group: name=cdrom, GID=11
<86>Feb 17 16:36:42 groupadd[2722]: group added to /etc/group: name=tape, GID=33
<86>Feb 17 16:36:42 groupadd[2722]: group added to /etc/gshadow: name=tape
<86>Feb 17 16:36:42 groupadd[2722]: new group: name=tape, GID=33
<86>Feb 17 16:36:42 groupadd[2727]: group added to /etc/group: name=dialout, GID=18
<86>Feb 17 16:36:42 groupadd[2727]: group added to /etc/gshadow: name=dialout
<86>Feb 17 16:36:42 groupadd[2727]: new group: name=dialout, GID=18
<86>Feb 17 16:36:53 groupadd[2769]: group added to /etc/group: name=wbpriv, GID=88
<86>Feb 17 16:36:53 groupadd[2769]: group added to /etc/gshadow: name=wbpriv
<86>Feb 17 16:36:53 groupadd[2769]: new group: name=wbpriv, GID=88
<86>Feb 17 16:37:04 groupadd[2809]: group added to /etc/group: name=pulse, GID=496
<86>Feb 17 16:37:04 groupadd[2809]: group added to /etc/gshadow: name=pulse
<86>Feb 17 16:37:04 groupadd[2809]: new group: name=pulse, GID=496
<86>Feb 17 16:37:04 useradd[2814]: new user: name=pulse, UID=498, GID=496, home=/var/run/pulse, shell=/sbin/nologin
<86>Feb 17 16:37:04 groupadd[2819]: group added to /etc/group: name=pulse-access, GID=495
<86>Feb 17 16:37:04 groupadd[2819]: group added to /etc/gshadow: name=pulse-access
<86>Feb 17 16:37:04 groupadd[2819]: new group: name=pulse-access, GID=495
<86>Feb 17 16:37:16 groupadd[2877]: group added to /etc/group: name=fuse, GID=494
<86>Feb 17 16:37:16 groupadd[2877]: group added to /etc/gshadow: name=fuse
<86>Feb 17 16:37:16 groupadd[2877]: new group: name=fuse, GID=494
<86>Feb 17 16:37:17 groupadd[2892]: group added to /etc/group: name=haldaemon, GID=68
<86>Feb 17 16:37:17 groupadd[2892]: group added to /etc/gshadow: name=haldaemon
<86>Feb 17 16:37:17 groupadd[2892]: new group: name=haldaemon, GID=68
<86>Feb 17 16:37:17 useradd[2897]: new user: name=haldaemon, UID=68, GID=68, home=/, shell=/sbin/nologin
<86>Feb 17 16:37:17 useradd[2897]: add 'haldaemon' to group 'haldaemon'
<86>Feb 17 16:37:17 useradd[2897]: add 'haldaemon' to shadow group 'haldaemon'
<86>Feb 17 16:37:21 groupadd[2913]: group added to /etc/group: name=ntp, GID=38
<86>Feb 17 16:37:21 groupadd[2913]: group added to /etc/gshadow: name=ntp
<86>Feb 17 16:37:21 groupadd[2913]: new group: name=ntp, GID=38
<86>Feb 17 16:37:21 useradd[2917]: new user: name=ntp, UID=38, GID=38, home=/etc/ntp, shell=/sbin/nologin
<86>Feb 17 16:37:24 groupadd[2943]: group added to /etc/group: name=apache, GID=48
<86>Feb 17 16:37:24 groupadd[2943]: group added to /etc/gshadow: name=apache
<86>Feb 17 16:37:24 groupadd[2943]: new group: name=apache, GID=48
<86>Feb 17 16:37:24 useradd[2948]: new user: name=apache, UID=48, GID=48, home=/var/www, shell=/sbin/nologin
<86>Feb 17 16:37:25 groupadd[2971]: group added to /etc/group: name=saslauth, GID=76
<86>Feb 17 16:37:25 groupadd[2971]: group added to /etc/gshadow: name=saslauth
<86>Feb 17 16:37:25 groupadd[2971]: new group: name=saslauth, GID=76
<86>Feb 17 16:37:25 useradd[2976]: new user: name=saslauth, UID=497, GID=76, home=/var/empty/saslauth, shell=/sbin/nologin
<86>Feb 17 16:37:25 groupadd[2984]: group added to /etc/group: name=postdrop, GID=90
<86>Feb 17 16:37:25 groupadd[2984]: group added to /etc/gshadow: name=postdrop
<86>Feb 17 16:37:25 groupadd[2984]: new group: name=postdrop, GID=90
<86>Feb 17 16:37:25 groupadd[2988]: group added to /etc/group: name=postfix, GID=89
<86>Feb 17 16:37:25 groupadd[2988]: group added to /etc/gshadow: name=postfix
<86>Feb 17 16:37:25 groupadd[2988]: new group: name=postfix, GID=89
<86>Feb 17 16:37:25 useradd[2993]: new user: name=postfix, UID=89, GID=89, home=/var/spool/postfix, shell=/sbin/nologin
<86>Feb 17 16:37:25 useradd[2993]: add 'postfix' to group 'mail'
<86>Feb 17 16:37:25 useradd[2993]: add 'postfix' to shadow group 'mail'
<86>Feb 17 16:37:33 groupadd[3468]: group added to /etc/group: name=abrt, GID=173
<86>Feb 17 16:37:33 groupadd[3468]: group added to /etc/gshadow: name=abrt
<86>Feb 17 16:37:33 groupadd[3468]: new group: name=abrt, GID=173
<86>Feb 17 16:37:33 useradd[3473]: new user: name=abrt, UID=173, GID=173, home=/etc/abrt, shell=/sbin/nologin
<86>Feb 17 16:37:37 useradd[3506]: new group: name=rpcuser, GID=29
<86>Feb 17 16:37:37 useradd[3506]: new user: name=rpcuser, UID=29, GID=29, home=/var/lib/nfs, shell=/sbin/nologin
<86>Feb 17 16:37:37 groupadd[3515]: group added to /etc/group: name=nfsnobody, GID=65534
<86>Feb 17 16:37:37 groupadd[3515]: group added to /etc/gshadow: name=nfsnobody
<86>Feb 17 16:37:37 groupadd[3515]: new group: name=nfsnobody, GID=65534
<86>Feb 17 16:37:37 useradd[3522]: new user: name=nfsnobody, UID=65534, GID=65534, home=/var/lib/nfs, shell=/sbin/nologin
<86>Feb 17 16:37:48 groupadd[3602]: group added to /etc/group: name=gdm, GID=42
<86>Feb 17 16:37:48 groupadd[3602]: group added to /etc/gshadow: name=gdm
<86>Feb 17 16:37:48 groupadd[3602]: new group: name=gdm, GID=42
<86>Feb 17 16:37:48 useradd[3607]: new user: name=gdm, UID=42, GID=42, home=/var/lib/gdm, shell=/sbin/nologin
<14>Feb 17 16:39:24 dbus: avc: received policyload notice (seqno=2)
<86>Feb 17 16:41:10 groupadd[4291]: group added to /etc/group: name=stapusr, GID=156
<86>Feb 17 16:41:10 groupadd[4291]: group added to /etc/gshadow: name=stapusr
<86>Feb 17 16:41:10 groupadd[4291]: new group: name=stapusr, GID=156
<86>Feb 17 16:41:10 groupadd[4296]: group added to /etc/group: name=stapsys, GID=157
<86>Feb 17 16:41:10 groupadd[4296]: group added to /etc/gshadow: name=stapsys
<86>Feb 17 16:41:10 groupadd[4296]: new group: name=stapsys, GID=157
<86>Feb 17 16:41:10 groupadd[4301]: group added to /etc/group: name=stapdev, GID=158
<86>Feb 17 16:41:10 groupadd[4301]: group added to /etc/gshadow: name=stapdev
<86>Feb 17 16:41:10 groupadd[4301]: new group: name=stapdev, GID=158
<86>Feb 17 16:41:12 groupadd[4309]: group added to /etc/group: name=sshd, GID=74
<86>Feb 17 16:41:12 groupadd[4309]: group added to /etc/gshadow: name=sshd
<86>Feb 17 16:41:12 groupadd[4309]: new group: name=sshd, GID=74
<86>Feb 17 16:41:12 useradd[4314]: new user: name=sshd, UID=74, GID=74, home=/var/empty/sshd, shell=/sbin/nologin
<86>Feb 17 16:41:16 groupadd[4367]: group added to /etc/group: name=tcpdump, GID=72
<86>Feb 17 16:41:16 groupadd[4367]: group added to /etc/gshadow: name=tcpdump
<86>Feb 17 16:41:16 groupadd[4367]: new group: name=tcpdump, GID=72
<86>Feb 17 16:41:16 useradd[4371]: new user: name=tcpdump, UID=72, GID=72, home=/, shell=/sbin/nologin
<86>Feb 17 16:41:23 groupadd[4390]: group added to /etc/group: name=slocate, GID=21
<86>Feb 17 16:41:23 groupadd[4390]: group added to /etc/gshadow: name=slocate
<86>Feb 17 16:41:23 groupadd[4390]: new group: name=slocate, GID=21