Wednesday, December 26, 2007

Changing hostname

I remember it took me an age to work out how to permanently change my PowerBook's hostname under Tiger—if I recall correctly, it ended up requiring Netinfo Manager. Leopard killed Netinfo Manager, so it took me another age to work out how to permanently change my MacBook Pro's hostname under Leopard. For the record, and I'm not making this up, you need to open System Preferences, and change Internet & Network > Sharing > Computer Name. Sure, makes sense when you've found it, but why not just dump /bin/hostname? It doesn't work.

1 comment:

  1. Better yet, why not use the Unix standard of putting the hostname in /etc/hosts and then using a file like /etc/myname (a BSD-ism) or /etc/nodename (Solaris-ism)? Anyway, I'm glad they finally killed netinfo.

    ReplyDelete