Linux无人值守安装系统
vim /etc/dhcp/dhcpd.conf
---------------------------------------------
systemctl restart dhcpd
systemctl enable dhcpd
firewall-cmd --permanent --add-service=dhcp
firewall-cmd --reload
-------------------------------
systemctl restart xinetd
firewall-cmd --permanent --add-port=69/udp
firewall-cmd --reload
yum install syslinux -y
cd /var/lib/tftpboot/
cp /usr/share/syslinux/pxelinux.0 .
cp /media/cdrom/images/pxeboot/{vmlinuz,initrd.img} .
cp /media/cdrom/isolinux/{vesamenu.c32,boot.msg} .
mkdir pxelinux.cfg
cp /media/cdrom/isolinux/isolinux.cfg pxelinux.cfg/default
vim pxelinux.cfg/default
------------------------
第一行改为:default linux
第64行改为:append initrd=initrd.img inst.stage2=ftp://192.168.10.10 ks=ftp://192.168.10.10/pub/ks.cfg quiet
第70行改为:append initrd=initrd.img inst.stage2=ftp://192.168.10.10 rd.live.check ks=ftp://192.168.10.10/pub/ks.cfg quiet
yum install vsftpd -y
systemctl restart vsftpd
systemctl enable vsftpd
firewall-cmd --permanent --add-service=ftp
firewall-cmd --reload
cp -r /media/cdrom/* /var/ftp
setsebool -P ftpd_connect_all_unreserved=on
cp ~/anaconda-ks.cfg /var/ftp/pub/ks.cfg
chmod +r /var/ftp/pub/ks.cfg
vim /var/ftp/pub/ks.cfg
-------------------------------
第6行cdrom改为:url --url=ftp://192.168.10.10
第21行时区改为:timezone Asia/Shanghai --isUtc
第28行改为:clearpart --all --initlabel
最新文章
- git命令分类图
- [.net 面向对象程序设计深入](0) 开篇
- C# 显示问题
- catalog备份数据库及RMAN存储脚本
- BZOJ 4326 树链剖分+二分+差分+记忆化
- FastCgi与PHP-fpm之间是个什么样的关系
- 【Hadoop需要的Jar包】Hadoop编程-pom.xml文件
- .NET中JSON的序列化和反序列化
- C++函数学习笔记
- prototype原型链继承
- 通过localstorage和cookie实现记录文章的功能
- 基本Guava工具
- Caused by: java.sql.SQLException: Incorrect integer value: '' for column 'clientId' at row 41
- 第49章:MongoDB-数据导入导出
- vue 路由 及 跳转传递参数的总结
- 在operator =中要处理“自我赋值”
- authentication plugin caching_sha2
- Codeforces Round #525 (Div. 2)-A/B/C/E
- 2018ICPC网络赛(焦作站)E题题解
- 【Java并发编程】:守护线程与线程阻塞的四种情况
热门文章
- regulator_get 调用过程【转】
- Cordova 开发 App
- 异常机制及throw与throws的区别(转)
- 【POI2004】【Bzoj2069】T2 洞穴 zaw
- 国产手机没有google services 和google play崩溃,判断google services是否存在
- RDA 重现率
- npm 是干什么的?
- sqlserver2000连接失败,不存在或拒绝访问
- bzoj 1999: [Noip2007]Core树网的核【树的直径+单调队列】
- ZOJ-3960 What Kind of Friends Are You?