Why write my own if an excelent reference exists in the Mac Mini Wiki. Some other sites are listed here: