FreeBSD自動安裝的方法

2009-05-13 02:13:07来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

玩FreeBSD JumpStart發現的...
http://www.freebsd.org/doc/en/articles/pxe/bootstrap-config.html

把install.cfg檔修改後,
放入mfsroot去安裝FreeBSD.
install.cfg
代碼:
QUOTE:
# $Wintelcom: src/freebsd/pxe/doc/install.cfg,v 1.1 2000/07/14 12:42:05 bright Exp $
# This is the installation configuration file for our rackmounted FreeBSD
# cluster machines
# Turn on extra debugging.
debug=YES
# Ok, this ought to turn off ALL prompting, don't complain to me that you
# lost a machine because you netbooted it on the same subnet as this
# box
nonInteractive=YES
noWarn=YES
tryDHCP=YES
################################
# My host specific data
hostname=booter
domainname=mydomain.com
# DHCP does this for us
#nameserver=10.0.0.1
#defaultrouter=10.0.0.1
#ipaddr=DHCP
#netmask=255.255.255.0
################################
################################
# Which installation device to use
nfs=x.x.x.x:/usr/releng4
netDev=fxp0
tryDHCP=YES
mediaSetNFS
################################
################################
# Select which distributions we want.
dists= bin doc games manpages catpages proflibs dict info des compat1x compat20 compat21 compat22 compat3x crypto
distSetCustom
################################
################################
# Now set the parameters for the partition editor on sd0.
disk=ad0
partition=all
bootManager=standard
diskPartitionEditor
#diskPartitionWrite
################################
################################
# All sizes are expressed in 512 byte blocks!
#
# A 96MB root partition, followed by a 0.5G swap partition, followed by
# a 1G /var, and a /usr using all the remaining space on the disk
#
ad0s1-1=ufs 1999999 /
ad0s1-2=swap 6485760 none
ad0s1-3=ufs 2097152 /var
ad0s1-4=ufs 0 /usr
# Let's do it!
diskLabelEditor
#diskLabelCommit
# OK, everything is set. Do it!
installCommit
package=XFree86-3.3.6
packageAdd
#package=XFree86-aoutlibs-3.3.3
#packageAdd
package=XFree86-contrib-3.3.6
packageAdd
package=arpwatch-2.1.a4
packageAdd
package=bash-2.04
packageAdd
package=bison-1.28
packageAdd
package=bzip2-1.0.0
packageAdd
package=ctags-3.5.2
packageAdd
package=dvips2ascii-1.3
packageAdd
package=electricfence-2.0.5
packageAdd
package=emacs-20.6
packageAdd
package=enscript-letter-1.6.1
packageAdd
package=fping-1.20
packageAdd
package=gawk-3.0.4
packageAdd
package=gdbm-1.8.0
packageAdd
package=gettext-0.10.35
packageAdd
package=gmake-3.79

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:postfix+extmail_for_BSD_邮件系统

下一篇:FreeBSD 服务器上彻底禁用 sendmail