AFP548

WGM & MCX

I'm working on setting managed preferences via Workgroup Manager so that I can enforce certain preferences on my InstaDMG image for 10.5.3. By piecing together techniques from these two articles (https://www.afp548.com/article.php?story=using-mcx-in-the-dslocal-domain & http://managingosx.wordpress.com/2008/02/07/mcx-dslocal-and-leopard/) I've gotten a test machine "working." The test machine is a MacBook that was imaged with an InstaDMG build. I used WGM to create a localhost.plist with a blank ethernet address for the localhost computer (under the Network tab in WGM). Then I transferred the .plist to the test machine's /private/var/db/dslocal/nodes/Default/computer/ directory, and wrote the following loginHook: [code]#!/bin/sh storedMacAddress=`/usr/bin/dscl . -read /Computers/$computerRecordName ENetAddress | cut -f2 -d " "` macAddress=`/sbin/ifconfig en0 | /usr/bin/grep 'ether' | /usr/bin/sed "s/^[[:space:]]ether //" | cut -f1 -d " "` if [ "$storedMacAddress" != "$macAddress" ] ; then sudo dscl . -create /Computers/localhost ENetAddress $(ifconfig en0 |grep ether | awk '{print $2}') fi[/code] On first login after copying the localhost.plist and setting up the loginHook, the settings aren't present, but if I logout and log back in, my managed preferences are there (this works as I'd expect). Some questions: Anybody doing this already? Have suggestions/ideas for how to incorporate the .plist and the loginHook into the InstaDMG ASR? I have been able to make packages of software for my InstaDMG build using logGen/pkgGen/IceBerg and LanRev InstallEase, but have had trouble with Leopard PackageMaker. Another question: If you are using WGM, can you setup MCXDockSpecialFolders for anything other than the Documents folder? (I'd like to also include the Downloads folder and perhaps the Home folder.) - Esther
Exit mobile version