NAS DIY的设计和实施过程-7-打造属于我的NAS操作系统1-精简centos

本文详细介绍了如何精简CentOS以适应NAS操作系统的需求,包括安装必要工具、查看安装配置、创建定制化的软件包列表,并通过脚本进行包的筛选和删除,最终生成一个精简版的ISO镜像文件。整个过程旨在创建一个适用于个人NAS的高效能、低占用的操作系统。
摘要由CSDN通过智能技术生成

      春节繁忙于过节,而且节后一不小心生了场不大不小的病,唉这个病不是不小心就避免的,-过敏症,病的事情以后再说,接着说我的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

评论 13
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值