Forum Replies Created
-
AuthorPosts
-
Rusty Myers
Participantbw38,
Check this out, it may help explain first boot packages and the bits behind them:
October 12, 2010 at 12:19 am in reply to: Another qustion (Not really instaDMG related though) – KSMB Print #379644Rusty Myers
Participantnobrainer, there is a postflight: http://pastie.org/1214255
Installers like this annoy me. The installer drops all the files into some directory, probably tmp, I didn’t check. Then the postflight script checks for any existence of previous files, and deletes them if they are there. Then it moves the rest of the files, sets the correct permissions and links one of the files into /usr/libexec.
What does Composer find when you run it? It should find 5 files:
Permissions Owner:Group Path
drwxr-xr-x _lp:wheel /var/spool/ksmbprintd
-rwxr–r– root:admin /Library/LaunchAgents/com.deploystudio.ksmbprintd.plist
drwxr-xr-x root:wheel /usr/local/bin/ksmbprintd
drwxr-xr-x root:wheel /usr/local/bin/ksmbprintspool
drwxr-xr-x root:wheel /usr/local/bin/smbclient
lrwxr-xr-x root:wheel /usr/libexec/cups/backend/ksmbIf Composer doesn’t find them, try dragging them into the Composer window and it should create a new project with those as the installer files.
Rusty Myers
ParticipantOK, I’ve not got much experience with it, as you could probably tell. =)
If it’s a text file, I like to manipulate them with perl:
Replace abc with def:
perl -i~ -pe ‘s/abc/def/g’ filenameIf its a plist, which I think it is (not sure, is it the /Library/Preferences/com.apple.alf.plist?)
Then I would try to use PlistBuddy or defaults to add additional exceptions.
Hope that helps!
Rusty Myers
ParticipantYour asking if there is a script in the package? If it’s not a flat package, you should be able to open it up and modify the postflight script.
Rusty Myers
ParticipantHave you seen this page:
The content is for MCX, but some of the terminal commands are there and it will tell you what other plists need to be there for it to work.
And this page, #15:
http://www.macosxtips.co.uk/index_files/terminal-commands-for-hidden-settings-in-snow-leopard.htmlI’ve been doing this through MCX.
Good luck!
Rusty Myers
ParticipantDoes it have a preference manifest?
http://code.google.com/p/manifestdestiny/wiki/PreInstalledManifests
Rusty Myers
ParticipantI’m afraid this is a question that is too broad to effectively answer in one post, but this is what I can say:
There are a lot of different tools and methods to deploy software to OS X clients. JAMF’s Casper Suite has the ability to deploy packaged software to clients, as does BigFix, Absolute Manage (LanRev). I can also think of Apple’s Remote Desktop, Radmind, Munki, DeployStudio, command line, etc….
As for serials and deploying them through packages, again this is a broad question. For most software applications, you are able to package them with the license file. Some software doesn’t like to share it’s license. Depending on your software, you may have a difficult time deploying it.
Start to look for network or site licenses when looking at deploying a product, especially if the license has to be linked to a certain machine (Studiocode, Boardmaker, MacDicate, etc.). If you get heavy into sharing licenses, Sassafras KeyServer does a great job at managing the licenses.
Hope this helps, perhaps a more specific question would be helpful to further the discussion.
Rusty
Rusty Myers
ParticipantTry using sudo. You not restricting who can log in via system preferences, are you?
Rusty Myers
ParticipantI have all my launchd items call a script with a shell:
Does that help?
[code]
[/code]
Disabled
Label
com.stupski.ActivateMCX
ProgramArguments
/bin/bash
/Applications/Utilities/Scripts/ActivateMCX.sh
RunAtLoad
[QUOTE][u]Quote by: jasonkstupski[/u][p]Hey all,
Here’s my plist and shell script file. Any help would be so appreciated!!
[code]
[/code]
Disabled
Label
com.stupski.ActivateMCX
ProgramArguments
/Applications/Utilities/Scripts/ActivateMCX.sh
RunAtLoad
[/QUOTE]Rusty Myers
ParticipantHey Steven
I would create a launchd item and script that would run your ARD settings during first boot of your machines. That way you would know its being set right. You can do as you suggest as well and just use ARD to set the clients prefs, but I personally don’t like having to trust ARD for that kinda thing. I’d rather do it once and let it fix itself. Sorry we couldn’t get it to work via InstaDMG build train, perhaps someone else has a fix for it?
Rusty Myers
ParticipantSorry, should have been more clear on that. I was trying these on my laptop, already running 10.6.4. From the terminal, when I ran the commands, it didn’t take the first few times I ran it. Although, I had the system prefs window open the second time I ran it, so It probably worked but didn’t show me the changes. When I was running this command in InstaDMG, I was doing it with a separate package that ran after createUser.
Not sure what the ordering of the scripts changes. I suggest experimenting with that. Good luck.
Rusty Myers
ParticipantHey Steven,
This seems to still work:
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -specifiedUsers
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users “admin” -privs -all -restart -agentHowever, didn’t respect my wishes the first time I ran it. I ran:
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -specifiedUsers
A couple more times and eventually it took…strange for sure!
Rusty
Rusty Myers
ParticipantHow are you running InstaDMG? Do you run the –process flag from InstaUp2Date or do you just run ./instadmg.bash? If your running InstaUp2Date with the process flag, you need to add the createUser.pkg to the catalog that you call. If your running just the instadmg.bash script, you need to add it into the custom packages folder under a numbered folder (I think).
Check this thread, it has some mentioned of guides and videos that may help you.
https://www.afp548.com/forum/viewtopic.php?showtopic=26912Rusty Myers
ParticipantI think this setting is changed in system prefs. I would start up FSeventer and make the change to a live system. You should be able to identify what is changed, and how to change the language of the system. Once you know what needs changed it’s much easier to find the solution.
Rusty Myers
ParticipantI would try to copy the home folder manually:
% sudo ditto /System/Library/User\ Template/English.lproj /Users/newuser
% sudo chown -R newuser:staff /Users/newuserObviously, add the $3, username (or variable), and test.
Not sure if it will work! Good luck.
-
AuthorPosts
Recent Comments