- This topic has 3 replies, 3 voices, and was last updated 13 years, 6 months ago by
Laura.
-
AuthorPosts
-
October 6, 2011 at 1:10 am #381251
Laura
ParticipantHi All
Am compiling a preflight script for InstaDMG to set various things up. I have a couple of settings I don’t seem to be able to make stick. For some of them if I run the command from the terminal I am getting the desired result so I know the file and syntax of my command is correct its just when I use it in a preflight script and I am wondering if I am just missing something simple.
The settings I have issues with are these:
In System Preferences:
General: “Double Click a windows title bar to minimze” – turn this on
Mission Control: “Show Dashboard as Space” & “Automatically rearrange spaces based on most recent use” – turn these off
Language & Text: “Formats” – Set Region to Australia
Security: disable “Automatically update safe downloads list” – Turn this off – this is a biggy as we have an authenticating proxy for internet access and it constantly pops up proxy boxes if this is left on.I’ve pretty much managed to crack all the other settings I need using fseventer and Xcode to inspect the plists and using plistbuddy or defaults to write out the plist files, but these couple are driving me up the wall
Thanks for any assistance you can give!
— Laura
October 6, 2011 at 1:15 pm #381253Allister Banks
ParticipantHey Laura,
Good questions! I’m still stumbling around in the dark a lot. Howsabout we(me included) fix turning on:
1. ARD(currently only ‘send unix command’ works)
2. SSH(haven’t sussed out)Lion is still almost completely undocumented, and I think InstaDMG has other localization issues to speak to one of your points.
I’ll add these two enhancements to the instaDMG project’s createLionUser once I get some answers, and will create a new page on osxdeployment.com for us to collaborate on(haven’t even updated ‘my’ LocalMCX package on github for Lion yet).October 6, 2011 at 11:39 pm #381254foilpan
Participanthave you tried prefixing some of your commands with $3 in the path? that will ensure the changes are made to the target path and not the booted volume.
here’s an explanation of some of the default variables the installer will handle: [url]http://s.sudre.free.fr/Stuff/PackageMaker_Howto.html[/url]
also, it may be better to deal with these prefs with mcx.
October 11, 2011 at 12:55 am #381266Laura
ParticipantHey Allister, for ARD and SSH I used a first boot script rather than a preflight script. Here are the commands
Turn on all ARD priv for admin user:
kickstart=”/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart”
$kickstart -configure -activate -clientopts -setmenuextra -menuextra yes
$kickstart -configure -allowAccessFor -specifiedUsers
$kickstart -configure -access -on -privs -all -users adminTurn on SSH for all users
systemsetup=”/usr/sbin/systemsetup”
$systemsetup -setremotelogin on
foilpan:
I’ve basically cannibalised the post flight script provided here so all the variables to paths are as such:
PREFS_DIR=”$3/Library/Preferences”
USERPREFS_DIR=”$3/System/Library/User Template/English.lproj/Library/Preferences”And as I said most other settings I’ve tried work perfectly just not those few I’ve listed =/
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed