Mac OS X 10.6 set computername, hostname, and localhostname after netboot
I have a couple of iMacs Netbooting from a Mac Mini Server on a local LAN. I am using Mac OS X 10.6 on all of the systems. I am fairly new to MACs in general,but have gotten the Netboot to work well. I want to find the best way to set the computername, hostname, and localhostname for the netbooted iMacs.
I am starting simple and learning, but for now this is what am doing. I set up the Server running DHCP and create a static map to the IP address for each netbooted iMac. I loaded an iMac with a clean install and updated the system. I booted in Target Disk mode and used the System Image Utility to create a Netboot image and get that setup on the Netboot server. I use NFS to serve the image and at this point can netboot just fine with the proper IP address assigned. I just want to set the hostname(s) to something other than Netboot001 etc and Macintosh-macaddress... I believe running a script at boot to set these will work just fine and I can write the script and learn how to get it to run at boot time. There are likely 20 different ways to script it ,but in general it could be scripted. However, I would like to know If there is a better or more standard way to do this. Another apparent option is to use a file with the configuration information when creating the netboot image via the SIU, but that seemed to be for installs and not necessarily Netboots. I tried it anyway and it did not work. I am sure there are a myriad of things I could have done wrong when creating the image, so I thought it was a good time to get on the forum and ask the question of those who will have much more experience and expertise. That way I can concentrate on the best method that will actually work well.
I do plan to use instadmg and build from the install disk, but that will be later as I refine my installation.
TIA for any help
Mac mini, Mac OS X (10.6.8), iMacs netboot from Mac Mini Server