Posted on 08-01-2011 01:00 PM
Has anyone ever configured network settings with Casper or know of a script?
Jade
Posted on 08-01-2011 01:50 PM
You can script a lot of parameters with "networksetup". The resource kit has a couple of baked scripts for various network settings that may already meet your needs. What specifically are you looking to configure?
-Charlie
-------------------------------------
Charlie Smith
Desktop Engineer
Information Services Department (ISD)
MIT Lincoln Laboratory
244 Wood St. Lexington, MA 02420
Phone: 781.981.0854
-------------------------------------
Posted on 08-01-2011 02:13 PM
For example.. I create images with just Ethernet 1 created. I've a script that finds the rest & enables.
Only recently posted: http://macmule.com/2011/07/28/how-to-enable-all-disabled-network-services/
Regards,
Ben.
Posted on 08-01-2011 03:37 PM
Try this one
Use that in scripts and you are good to go.
John
Posted on 08-02-2011 07:00 AM
Here is a snip from my post image script that sets a few things
# # Now set some network preferences #
# require admin rights for ad_hoc creation
/usr/libexec/airportd en1 -ibss_admin 1
/bin/echo "adhoc networks require admin set"
# ensure that airport and ethernet are set to DHCP & set IPv6 off
/usr/sbin/networksetup -setv6off Ethernet
/usr/sbin/networksetup -setv6off Airport
/usr/sbin/networksetup -setdhcp Ethernet
/usr/sbin/networksetup -setdhcp Airport
# enable remote log in, ssh
/usr/sbin/systemsetup -setremotelogin on
# enforce clear text passwords in AFP
/usr/bin/defaults write com.apple.AppleShareClient "afp_cleartext_allow" 1
/bin/echo "network configuration complete"