Chinaunix首页 | 论坛 | 博客
  • 博客访问: 208323
  • 博文数量: 35
  • 博客积分: 2691
  • 博客等级: 少校
  • 技术积分: 527
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-11 09:42
文章分类

全部博文(35)

文章存档

2012年(5)

2010年(6)

2009年(2)

2008年(22)

我的朋友

分类: LINUX

2010-12-14 12:43:04

/****************
整理yjm0573
2010-12-14
****************/

# Locale sets language and country.
d-i debian-installer/locale string en_HK

# Keyboard selection.
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us

# Network configuration.
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain

#d-i netcfg/get_nameservers string 202.96.209.5
#d-i netcfg/get_ipaddress string 192.168.16.250
#d-i netcfg/get_netmask string 255.255.255.0
#d-i netcfg/get_gateway string 192.168.16.1
#d-i netcfg/confirm_static boolean true

# Mirror settings
d-i mirror/country string manual
d-i mirror/http/hostname string 192.168.16.241
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string

# Clock and time zone setup
d-i clock-setup/utc boolean false
d-i time/zone string Asia/Shanghai

# Partitioning
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/choose_recipe select atomic
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true

# Base system installation
d-i base-installer/kernel/image string linux-generic

# Account setup
d-i passwd/root-login boolean true
d-i passwd/root-password password 123456
d-i passwd/root-password-again password 123456
d-i passwd/make-user boolean false
d-i user-setup/encrypt-home boolean false

# Apt setup
d-i apt-setup/use_mirror boolean false
d-i apt-setup/services-select multiselect security
d-i apt-setup/security_host string 192.168.16.241
d-i apt-setup/security_path string /ubuntu
d-i debian-installer/allow_unauthenticated string true

# Package selection
tasksel tasksel/first multiselect standard
d-i pkgsel/include string openssh-server
d-i pkgsel/upgrade select none
d-i pkgsel/language-packs multiselect en, zh
d-i pkgsel/update-policy select none

# Boot loader installation
d-i grub-installer/only_debian boolean true

# Finishing up the installation
d-i finish-install/reboot_in_progress note


创建preseed.cfg文件,将上述内容拷贝进去
从光盘里找到install/netboot/ubuntu-installer/i386/initrd.gz
将其复制到当前目录
mkdir initrd
cd initrd
cpio -i < ..initrd.gz
将preseed.cfg拷贝到当前目录
再执行
find . | cpio -o -H newc |gzip -9 >../initrd.img.gz
cd ..
mv initrd.img.gz initrd.gz
将新生成的initrd.gz放置到tftp对应的目录下
tftp的使用请参考其他文档

阅读(5099) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-12-15 15:30:53

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com