Author: Dennis Kovarsky
Date: 16-01-02 02:20
Just use an /stand/sysinstall's unattended install script. If you specify your CDROM as the installation media and don't install XFree86 - you get a brand new box in just over 5 minutes. Play around with the script, it ain't all that bad if you have a huge cluster to roll out. :) And yes, you can use DHCP if you wanted to...
--------------------------------------------------------
debug=yes
hostname=your.host.here
domainname=your.domain
nameserver=primary_dns_ip_here
nameserver=secondary_dns_ip_here
defaultrouter=your_gateway_ip_here
ipaddr=your_ip_here
netmask=your_netmask_here
_ftpPath=ftp://ftp3.freebsd.org/pub/FreeBSD
netDev=ed0
mediaSetFTPActive
dists=bin crypto
distSetCustom
disk=ad0
partition=all
bootManager=standart
diskPartitionEditor
ad0s1-1=ufs 204800 /
ad0s1-2=swap 786432 none
ad0s1-3=ufs 104857 /var 1
ad0s1-4=ufs 0 /usr 1
diskLabelEditor
diskPartitionWrite
diskLabelCommit
installCommit
command=mount -t msdos /dev/fd0 /mnt
system
command=cp /mnt/etc/rc.conf /etc
system
command=cp /mnt/etc/resolv.conf /etc
system
command=cp /mnt/etc/XF86Config /etc/X11
system
package=bash-2.05
packageAdd
package=XFree86-4.1.0_6
packageAdd
package=linux_base-6.1
packageAdd
package=linux-navigator-4.78
packageAdd
command=/usr/sbin/tzsetup
system
command=/usr/bin/passwd
system
command=pw user add -n new_username_here -d /usr/home/new_username_here -g wheel -L wheel -m -s /usr/local/bin/bash -w random
| mail -s "new_username_here password" email_address_here
system
shutdown
|
|