to set up network settings, first static: the commands are
ifconfig en0 $IPnumber netmask netnumber up
route add default $Router
niutil -create . /locations/resolver
niutil -createprop . /locations/resolver nameserver $NameServer
these settings will only be in effect until you reboot. to make them permanent, put the IPnumber in /etc/iftab. i think you should put the route command in an rc script. the resolver commands will stay. i think /etc/resolv.conf will also work, but i m not sure.
if you want to use DHCP however, the commands are much simpler...
just put hostname automatic in /etc/hostconfig, and put automatic in iftab too. read man pages for more details.
to add a user, you need to use niutil:
mkdir /Users/$user_name
niutil -create . /users/$user_name
niutil -createprop . /users/$user_name uid 1001
niutil -createprop . /users/$user_name gid 0
niutil -createprop . /users/$user_name shell /bin/tcsh
niutil -createprop . /users/$user_name home /Users/$user_name
echo enter password for $user_name
passwd $user_name
chown -R $user_name /Users/$user_name
chown -R .wheel /Users/$user_name
you can also add the users to /etc/passwd according to traditional UNIX rules, and make their directories, then run this:
niload . passwd < /etc/passwd
finally, changing the boot disk. that s a tricky one. as far as i know, there is no command line utility to do this. there is however, a command line utility to edit the Open Firmware. so, first, figure out the partition map of the disk. i think pdisk will show you the map under darwin. there really isn t any way to do it under macos (x or otherwise), without the mac port of this unix program. anyway, let s say that you re macos partition is number 9 and darwin is number 8. (i think the mac os uses the first 6 partitions or so for drivers and stuff). then your boot device should be this for darwin: 'hd:8,\\:tbxi'
so to set this, nvram boot-device='hd:8,\\:tbxi'
replace the 8 with whatever is the partition number of the OS you want to boot, after you restart. if your boot partition isn t on the master internal hard drive, there are device aliases for the other disks as well. you can also figure out the full hardware pathnames, if you want to fool around in OF. you can boot from the cd this way too.
OK? let us know how it all works for you