部分客户要求可以自定制安装系统,由于平时使用debian客户较多,搜索一下相关信息

debian的自动化安装基本是通过配置debian installer参数来完成的.

相关信息如下

http://www.zzbaike.com/wiki/Debian/%E4%BD%BF%E7%94%A8Debian%E5%AE%89%E8%A3%85%E7%A8%8B%E5%BA%8F

http://www.cnblogs.com/hopeworld/archive/2011/04/13/2015114.html

https://wiki.debian.org/DebianInstaller/Preseed/EditIso

自动生成配置网站

http://www.instalinux.com/cgi-bin/coe_bootimage.cgi

example下载地址:

https://www.debian.org/releases/lenny/example-preseed.txt

Create copy of image

You need one of the already built ISO images, which will be used as the basis that we modify. Because you can't modify an ?ISO9660 image, you've to copy it first:

... as root ...

 # mkdir loopdir
 # mount -o loop your-image.iso loopdir
 # mkdir cd
 # rsync -a -H --exclude=TRANS.TBL loopdir/ cd
 # umount loopdir

 If the above "mount -o loop" step produces errors you may need to load the loop module using # modprobe loop

Hack the initrd

... as root ...

# mkdir irmod
# cd irmod
# gzip -d < ../cd/install/2.6/initrd.gz | \
        cpio --extract --verbose --make-directories --no-absolute-filenames
# cp ../my_preseed.cfg preseed.cfg
# find . | cpio -H newc --create --verbose | \
        gzip -9 > ../cd/install/2.6/initrd.gz
# cd ../
# rm -fr irmod/
  • I think it to be easier to just put the preseed.cfg on the CD Filesystem and mention it in isolinux.cfg (just add a new label and append preseed/file=/cdrom/preseed.cfg to the kernel command line). This approach doesn't require root. -- ?HelmutGrohne

  • Unless the preseed file is in the initrd image you cannot preseed the first three questions. --GuyHulbert

  • Sigh ... wrong again (for etch anyway ;-). See http://hands.com/d-i/, second paragraph. There is also a link to the appropriate part of the new d-i manual, for lazy folks like myself. However, I still need to do some sarge installs (disaster recovery testing) so only half wrong, I guess. --GuyHulbert

2006-12-06 15:12:53

Fix md5sum's

 # cd cd
 # md5sum `find -follow -type f` > md5sum.txt
 # cd ..

Create new image

To make the cdrom bootable, you need to run genisoimage with appropriate parameters. Here is how to do it for x86/amd64, using isolinux.

Change to the top of the cd directory then:

To create the cdrom image using the isolinux boot image:

 # genisoimage -o test.iso -r -J -no-emul-boot -boot-load-size 4 \
 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat ./cd

修改引导文件,使能找到preseed文件

注意:语言、国家和键盘无法在预置文件preseed中指定,因为这些要在加载预置文件之前指定,所以要修改isolinux中得txt.cfg和gtk.cfg

我的是这样的:

针对文本模式安装

txt.cfg

append debian-installer/locale=en_US console-keymaps-at/keymap=us preseed/file=/cdrom/.disk/preseed.cfg vga=788 initrd=/install.amd/initrd.gz -- quiet

针对图形安装系统

gtk.cfg

append debian-installer/locale=en_US console-keymaps-at/keymap=us preseed/file=/cdrom/.disk/preseed.cfg video=vesa:ywrap,mtrr vga=788

initrd=/install.amd/gtk/initrd.gz – quiet

debian的自动化安装定制相关推荐

  1. Debian自动化安装

    定制Debian的自动化安装 1 更改grub配置文件,修改安装系统选项,加载安装配置文件(/boot/grub/grub.cfg) if loadfont $prefix/font.pf2 ; th ...

  2. ubuntu18使用preseed文件定制ISO镜像实现自动化安装

    需求 通常在安装ubuntu操作系统时,需要手工去选择安装过程中出现的问题,如地区.网络.分区等的设置.但是当需要大批量安装操作系统时,手工的方式就会很繁琐,效率低下,因此就有了自动化安装的需求. u ...

  3. 定制centos一键自动化安装iso的详细解决方案

      大家好,我是herosunly.985院校硕士毕业,现担任算法研究员一职,热衷于机器学习算法研究与应用.曾获得阿里云天池比赛第一名,科大讯飞比赛第三名,CCF比赛第四名.拥有多项发明专利.对机器学 ...

  4. 银河麒麟高级服务器操作系统V10SP1 - ISO镜像定制 + KickStart自动化安装

    文章目录 一.基础环境搭建 1. 原始ISO获取 2. 系统安装 二.ISO镜像定制 1. 准备工作 2. 修改ISO镜像 3. 生成ISO镜像: 三.ISO镜像验证 一.基础环境搭建 1. 原始IS ...

  5. Debian下Apache2安装与设置 一 ZT

    Debian下Apache2安装与设置 一 ZT 4. Apache 的安装 Apache 的安装无外乎两种方式: 源代码安装和DEB包安装.这两种安装类型各有特色,DEB包安装不需要编译,而源代码安 ...

  6. linux自动化安装oracle,ftp的客户端软件 Linux环境一键自动化安装oracle软件的构想(附she...

    一.自动化批量安装ORACLE软件的构想 1.1构想从哪里来? 熟悉PXE+KICKSTART一键批量安装Liunx操作系统的童鞋都知道,该方式可实现快速定制,规范化,自动化的无人值守安装.基于此方式 ...

  7. mysql 自动化 安装_mysql自动化安装

    MySQL安装一般使用RPM或者源码安装的方式. RPM安装的优点是快速,方便.缺点是不能自定义安装目录.如果需要调整数据文件和日志文件的存放位置,还需要进行一些手动调整. 源码安装的优点是可以自定义 ...

  8. CentOS 6.5自动化运维之基于DHCP和TFTP服务的PXE自动化安装centos操作系统详解

    前言    如果要给很多台客户端主机安装操作系统,要是每一台都拿张安装光盘一台一台主机的去装系统那就太浪费时间和精力了.在生产环境中也不实际,要实现为多台主机自动安装操作系统,那我们怎么实现自动化安装 ...

  9. Cobbler实现自动化安装操作系统

    一.cobbler简介 cobbler是实现自动化安装操作系统的工具.它解决了PXE安装时的弊端(只能实现单一操作系统的安装).实际上,cobbler是对PXE二次封装可实现多版本,多环境操作系统安装 ...

最新文章

  1. 3ds Max V-Ray5 完整指南大师班视频教程
  2. 很久没有回到我51的家啦!
  3. matplotlib 模块 画图 例2
  4. IDEA2018软件安装教程
  5. Android Lifecycle源码解析(一)
  6. java 获取td_[Java教程]jQuery获取table表中的td标签
  7. Python风格总结:函数
  8. JavaScript把客户端时间转换为北京时间
  9. kafka常用的操作命令
  10. Unity编辑器:自定义编辑器样式——GUIStyle
  11. 登录小米帐号怎么会显示服务器错误,小米官网登录不进去怎么办 小米官网无法登陆是怎么回事...
  12. Linux下Mysql5.5的Cmake安装以及sphinx结合
  13. 民生银行香港卡的办理经历,和踩过的那些坑····
  14. 第一次开发EOS区块链的经验总结
  15. linux控制cpu占用率
  16. python写百行代码可运行_56 岁潘石屹学俩月 Python ,写下百行代码
  17. 考研一看书就犯困,怎么破?
  18. 核密度估计(二维、三维)
  19. rsync忽略文件或目录
  20. 全球与中国电机市场深度研究分析报告

热门文章

  1. 计算机互联网IT行业
  2. 500 行代码写一个俄罗斯方块游戏(附源码)
  3. Codeforces Round #736 (Div. 2) C. Web of Lies
  4. c语言pm2.5检测系统,PM2.5检测
  5. 腾讯应用研究-机器学习一面
  6. java计算机毕业设计企业门户网站源代码+数据库+系统+lw文档
  7. 毕业设计-基于机器安全帽检测方法- YOLO
  8. php的json格式,php json格式问题
  9. opengl 摄像头移动
  10. 西门子触摸屏上电显示初始画面几秒后,自动切换到下一个画面的具体方法