制作liveusb实现ubuntserver12全自动无人职守安装

简介:

使用unetbootin工具制作的liveusb,/pool/main/l/linux-lts-saucy/udeb包的名字由于过长被更改成ude了,在安装的过程中会报缺udeb包的错误。这是工具的问题,所以可以挂载光盘后,手动复制过去。
还一个比较好用的工具是usb-creator-gtk,好像就是传说中的startup disk creator。使用ubuntu 12.04.4的官方iso开始进行liveusb制作。不过按照下面方法造出来的liveusb在部分机器上会卡住不能继续安装,原因未知!

sudo mount /dev/sdc1 /mnt/sdc1

cd /mnt/sdc1/syslinux && sudo mv isolinux.bin syslinux.bin

sudo vim /mnt/sdc1/syslinux/syslinux.cfg
把超时时间timeout改成30,就是3秒的意思
sudo vim /mnt/sdc1/syslinux/txt.cfg
修改append后面的内容
append initrd=/install/initrd.gz file=/cdrom/ks.seed boot=install debian-installer/locale=en_US console-setup/ask_detect=false keyboard-configuration/layoutcode=us automatic-ubiquity quiet splash --

制作ks.seed文件
sudo vim /mnt/sdc1/ks.seed
# ubuntu preseed file
d-i debian-installer/locale string en_US  
d-i debian-installer/language string en  
d-i debian-installer/country string china
d-i localechooser/supported-locales multiselect en_US.UTF-8, zh_CN.UTF-8  
#keyboard  
d-i console-setup/ask_detect boolean false  
d-i console-configuration/layoutcode string us  
d-i keyboard-configuration/modelcode string SKIP   
#clock  
d-i clock-setup/utc boolean false  
d-i time/zone string Asia/Shanghai  
#network  
d-i netcfg/choose_interface select auto  
d-i netcfg/dhcp_failed note  
d-i netcfg/dhcp_options select Do not configure the network at this time  
d-i netcfg/get_hostname string test  
d-i netcfg/get_domain string test-domain  
d-i netcfg/wireless_wep string  
# Mirror  
d-i mirror/protocol string http  
d-i mirror/country string china  
d-i mirror/http/hostname string  mirrors.163.com  
d-i mirror/http/directory string /ubuntu  
d-i mirror/http/proxy string  
# clock  
d-i clock-setup/ntp boolean true  
# partition  
d-i partman-auto/disk string /dev/sda  
d-i partman-auto/method string regular  
d-i partman-lvm/device_remove_lvm boolean true  
d-i partman-md/device_remove_md boolean true  
d-i partman-auto/choose_recipe select atomic  
d-i partman/default_filesystem string ext4  
d-i partman/confirm_write_new_label boolean true  
d-i partman/choose_partition  select Finish partitioning and write changes to disk  
d-i partman/confirm boolean true  
#user  
#d-i passwd/root-login boolean true  
#d-i passwd/root-password-crypted password $1$3nGno0$c4rp7NcQRAcJV3AdzKV890  
#d-i passwd/make-user boolean true  
d-i passwd/user-fullname string ubuntu  
d-i passwd/username string ubuntu  
#d-i passwd/user-password-crypted password $1$3nGno0$c4rp7NcQRAcJV3AdzKV890  
d-i passwd/user-password password admaster54322
d-i passwd/user-password-again password admaster54322
d-i user-setup/allow-password-weak boolean true  
d-i user-setup/encrypt-home boolean false  
#package  
tasksel tasksel/first multiselect none  
d-i pkgsel/include string openssh-server vim gcc make 
d-i pkgsel/upgrade select full-upgrade  
d-i pkgsel/install-language-support boolean true  
d-i pkgsel/language-packs multiselect en, zh  
d-i pkgsel/update-policy select none  
# popularity-contest popularity-contest/participate boolean false  
d-i pkgsel/updatedb boolean true  

#grub  
d-i grub-installer/skip boolean false  
d-i lilo-installer/skip boolean true  
d-i grub-installer/grub2_instead_of_grup_legacy boolean true  
d-i grub-installer/only_debian boolean true  
d-i grub-installer/with_other_os boolean true  

# Finish  
d-i finish-install/keep-consoles boolean true  
d-i finish-install/reboot_in_progress note  
d-i cdrom-detect/eject boolean true  
d-i debian-installer/exit/halt boolean false  
d-i debian-installer/exit/poweroff boolean false



本文转自 朱科强 51CTO博客,原文链接:http://blog.51cto.com/zhukeqiang/1382851,如需转载请自行联系原作者

相关文章
|
前端开发 Android开发
Electron 中 webview 如何与主进程渲染进程进行事件监听通信
Electron 中 webview 如何与主进程渲染进程进行事件监听通信
|
机器学习/深度学习 人工智能 前端开发
机器学习PAI常见问题之web ui 项目启动后页面打不开如何解决
PAI(平台为智能,Platform for Artificial Intelligence)是阿里云提供的一个全面的人工智能开发平台,旨在为开发者提供机器学习、深度学习等人工智能技术的模型训练、优化和部署服务。以下是PAI平台使用中的一些常见问题及其答案汇总,帮助用户解决在使用过程中遇到的问题。
|
jenkins 持续交付 开发工具
Jenkins-pipline流水线语法介绍并结合Blue Ocean查看流水线(十四)
jenkins集成pipeline流水线 1.pipeline概述 pipeline流水线,可以直观的展示每个阶段做的任务,以及每个阶段耗费的时间。 pipeline不在使用鼠标来实现自动构建,也不要去看控制台日志,而是全程使用代码的方式来实现,构建完成后会展示一个视图,用来展示每个阶段完成的情况
554 0
Jenkins-pipline流水线语法介绍并结合Blue Ocean查看流水线(十四)
|
11月前
|
PyTorch 算法框架/工具 计算机视觉
目标检测实战(二):YoloV4-Tiny训练、测试、评估完整步骤
本文介绍了使用YOLOv4-Tiny进行目标检测的完整流程,包括模型介绍、代码下载、数据集处理、网络训练、预测和评估。
655 2
目标检测实战(二):YoloV4-Tiny训练、测试、评估完整步骤
|
弹性计算 Windows
震惊!ECS Windows 系统磁盘竟“撒谎”,空间去哪儿了?别急,这里有终极破解法!
【8月更文挑战第15天】在使用ECS Windows系统时,可能会遇到磁盘显示占用的空间远超实际文件大小的情况,导致空间不足。原因包括系统还原点、卷影副本累积及回收站文件未彻底删除等。解决方法有:清除系统还原点(`vssadmin delete shadows /all`),清空回收站,删除临时文件夹中的文件,以及检查并修复磁盘错误。这些步骤能有效释放空间,保证系统稳定运行。
262 4
|
Unix Shell 测试技术
误删数据恢复系列1
误删数据恢复系列1
222 0
|
安全 网络虚拟化 数据安全/隐私保护
(思科模拟器)单臂路由
执行流量转发的单臂路由器通常是在虚拟局域网(VLAN)上实现的。它们将使用单个以太网网络端口,作为两个或多个虚拟局域网的一部分,使它们能够加入。一个VLAN允许多个虚拟局域网共存于同一物理局域网中。
423 0
|
Android开发 芯片
RK3399平台开发系列讲解(系统修改记录篇)1.17、Android系统永不休眠修改步骤(一般是为了开发便利)
RK3399平台开发系列讲解(系统修改记录篇)1.17、Android系统永不休眠修改步骤(一般是为了开发便利)
282 0
RK3399平台开发系列讲解(系统修改记录篇)1.17、Android系统永不休眠修改步骤(一般是为了开发便利)
|
移动开发 前端开发 Java
基于SSM【爱校图书馆管理系统】
,java精品项目,毕业设计,计算机系,计算机毕业设计,程序设计,设计与实现,源码,H5,爱校图书馆管理系统,
354 1
基于SSM【爱校图书馆管理系统】