春节繁忙于过节,而且节后一不小心生了场不大不小的病,唉这个病不是不小心就避免的,-过敏症,病的事情以后再说,接着说我的NAS的操作系统的事情,其实年前第一个马马虎虎的VMWARE上测试的版本已经做了出来,X-WINDOWS下NVDIA驱动存在一点问题,VMWARE和和真实的机器上还是有差异的,如果是我自己用,倒可以马虎一下,装好系统后yum或者手工升级一下nvdia的驱动,但是考虑要做一个正式的发布版本还是打算严谨一点。
下面将我精简centos的过程介绍一下,也许和你看到的互联网上的教材出入,但是这个我是测试过的,保证你一定能用的教程。呵呵,出了个小差,配置过程全部在家里,今天回来了,发上来给大家看看。
1、安装必要的工具
查询
rpm -qa|grep -E "anaconda-runtime|createrepo|yum-utils|anaconda|anaconda-help|busybox-anaconda|mkisofs"
没有就安装
yum -y install anaconda-runtime createrepo yum-utils anaconda anaconda-help busybox-anaconda mkisofs
2、查看anaconda-ks.cfg文件,看看安装了什么东西
[root@centos ~]# more anaconda-ks.cfg
# Kickstart file automatically generated by anaconda.
install
cdrom
lang zh_CN.UTF-8
keyboard us
xconfig --startxonboot
network --device eth0 --bootproto static --ip 192.168.1.110 --netmask 255.255.25
5.0 --gateway 192.168.1.1 --nameserver 202.103.224.68 --hostname centos
rootpw --iscrypted $1$NUASfV6b$K2BNgfsGo9dn7CrPlHf54.
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc Asia/Shanghai
bootloader --location=mbr --driveorder=sda
# 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
#part / --fstype ext3 --size=100 --grow
#part swap --size=100 --grow --maxsize=1536
%packages
@admin-tools
@base
@chinese-support
@core
@ftp-server
@gnome-desktop
@legacy-network-server
@server-cfg
@sound-and-video
@system-tools
@web-server
@smb-server