`
xitong
  • 浏览: 6208953 次
文章分类
社区版块
存档分类
最新评论

[ubuntu12.04] u盘全自动安装 ubuntu server 12.04

 
阅读更多

1 ubuntu 12.04 server 下 使用 Startup Disk Creater 将 ubuntu 12.04 server的iso 烧录至 u盘 ,制作成启动盘


2 修改配置文件

mount /dev/sdb1 /mnt/

cd /mnt/syslinux/

mv isolinux.bin syslinux.bin

vim syslinux.cfg

default autoinstall
prompt 0
timeout 100
 
menu title Custom Live CD
menu background splash.png
menu color title 1;37;44 #c0ffffff #00000000 std
 
label autoinstall
menu label autoinstall - auto install ubuntu
kernel /install/vmlinuz
append initrd=/install/initrd.gz file=/cdrom/preseed/autoinstall.seed boot=install debian-installer/locale=en_US console-setup/ask_detect=false keyboard-configuration/layoutcode=us automatic-ubiquity quiet splash --

3 在 /mnt/preseed/下 创建文件 autoinstall.seed

cd /mnt/presedd/

vim autoinstall.seed

#locate
d-i debian-installer/locale string en_US
d-i debian-installer/language string en
d-i debian-installer/country string us
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/sdb
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-server
d-i passwd/username string ubuntu
d-i passwd/user-password-crypted password $1$3nGno0$c4rp7NcQRAcJV3AdzKV890
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 build-essential
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


分享到:
评论

相关推荐

    ubuntu-server12.04系统U盘安装详细教程

    ubuntu-server12.04系统U盘安装详细教程,适合初学者。

    win7下U盘安装ubuntu12.04双系统教程

    win7下U盘安装ubuntu12.04双系统教程 亲测实现

    win7 下U盘安装ubuntu12.04双系统

    win7 下U盘安装ubuntu12.04双系统

    ubuntu12.04 for Android

    定制的ubuntu12.04 的ISO镜像,安卓环境已经安装好,1.3G左右。 刻录U盘启动后, 下载了代码直接编译即可! 有需要的可以下载

    ubuntu 12.04 中network-manager 离线安装包

    如果卸载了network-manager,就无法再上网进行 apt-get ...ubuntu 12中有线网无法设static ip,可先卸载network-manager,再修改eth0配置,重新安装network-manager,系统显示有线网络设备未托管,但是已经可以用了!

    Windows7系统下利用U盘安装Ubuntu_12.04实现双系统详细教程

    Windows7系统下利用U盘安装Ubuntu_12.04实现双系统详细教程

    linux数据防泄漏软件for Ubuntu12.04-64位

    4. 企业员工通过网络,邮件,QQ, U盘等途径将源代码有意无意地泄露出去。 5. 企业员工因不符合企业要求被辞退,但是其掌握的源代码可能被恶意泄露,给企业造成巨大损失。 如何既能保证企业内部正常的开发需要,又能...

    一个用于制作ubuntu安装U盘的小软件

    将下载的ISO格式的镜像更改格式为RAW,然后用该软件写入U盘即可,在win下不会被识别,但可以完美从U盘启动安装系统,适用于无光驱安装Ubuntu(注:本人只验证过ubuntu11.10和12.04)

    win7下用U盘安装Ubuntu14.10双系统教程

    该文档主要是将win7下安装ubuntu双系统的教程,如果是安装Ubuntu12.04系统,安装该文档没有一点问题。如果是安装Ubuntu14.10系统,有一点区别,需要结合我博客上的文章一起安装。

    ImageWriter启动

    由于最近在公司使用的是Ubuntu12.04,也想自己尝试弄个U盘启动来安装一个Ubuntu12.04,在网上搜了下,有人推荐ImageWriter.exe,下载后在虚拟机的xp系统上无法运行,报以下错误 .net framework initialization ...

    win32diskimager-v0.8-binary

    使用类似ultraiso的刻录软件会出现“Faild to copy file from CD-ROM”这个错误,解决的办法是使用win32diskimager制作U盘安装程序,就可以正常安装Ubuntu 12.04 Server。

    Ubuntu服务器开机卡住不动,显示kernel offset信息

    公司Ubuntu12.04服务器突然开机起来后就卡住不动,打印kernel offset信息 目前已尝试以下方法,均失败 1:开机启动选择Ubuntu选项时,选择recovery mode启动,仍然卡住,显示kernel offset信息 2:在开机选项...

    使用grub4dos制作多系统启动U盘

    使用grub4dos制作多系统启动U盘(win7、ubuntu12.04) 所需要的软件和文件打包 具体教程见:http://blog.csdn.net/hcx25909/article/details/8982208

    ImageWriter

    解决 U 盘安装 Ubuntu 12.04 不成功的方法 刻录的时候记得要把镜像文件的后缀名改为 .raw ,这样就可以找见镜像文件了。 刻录成功后就会进入到安装界面。

    构建优美的Linux系统环境

    安装Ubuntu12.04LTS操作系统,当然也可以安装其他版本,但是比较推荐安装LTS长期支持版本。  Ubuntu的安装ISO文件可以到Ubuntu官网去下载,然后使用Ultro ISO工具写入U盘,直接用U盘安装,快捷方便。个人建议选择...

Global site tag (gtag.js) - Google Analytics