The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Simpler solution
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

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 Simpler solution   new
Dennis Kovarsky 16-01-02 02:20 
 Re: Simpler solution   new
Dan Langille 16-01-02 04:09 
 Re: Simpler solution   new
Dennis Kovarsky 16-01-02 21:33 
 Re: Simpler solution   new
James A. Peltier 23-01-02 10:02 
 Re: Simpler solution   new
Dan Langille 23-01-02 16:55 
 Re: Simpler solution   new
James A. Peltier 23-01-02 10:10 
 Re: Simpler solution   new
Dennis Kovarsky 23-01-02 21:26 
 Re: Simpler solution   new
James A. Peltier 24-01-02 05:58 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org