Skip to content

Instantly share code, notes, and snippets.

@gmarnin
gmarnin / gist:52cecba24b9149542cb6
Last active August 29, 2015 14:00
SPSS installer.properties for munki
<key>postinstall_script</key>
<string>#!/bin/sh
USER_INSTALL_DIR="/Applications/SPSS 20/"
# Create installer.properties
cd /var
echo "INSTALLER_UI=silent
USER_INSTALL_DIR="$USER_INSTALL_DIR"
LICENSE_ACCEPTED=true
#For network license
network=1
#!/bin/sh
#
# Optional script by which you can control the user installation.
#
# Variables to set:
# startDesktop: set to false if you don't want the desktop to start up immediately after installation
# CP_USER_HOME: Allows the app to start scanning the user's home folder immediately after installation
# user: Used to properly set file permissions
# userGroup: Also used for file permissions
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>_metadata</key>
<dict>
<key>created_by</key>
<string>autopkg</string>
<key>creation_date</key>
<date>2014-07-22T17:02:32Z</date>
@gmarnin
gmarnin / gist:dc2d801332903319f7d8
Created October 6, 2014 20:10
Munkireport-php AD Auth
$conf['auth']['auth_AD']['account_suffix'] = '@domain.edu';
$conf['auth']['auth_AD']['base_dn'] = 'DC=something,DC=domain,DC=edu'; //set to NULL to auto-detect
$conf['auth']['auth_AD']['domain_controllers'] = array('dc1.domain.edu','dc2.domain.edu'); //can be an array of servers
$conf['auth']['auth_AD']['admin_username'] = NULL; //if needed to perform the search
$conf['auth']['auth_AD']['admin_password'] = NULL; //if needed to perform the search
$conf['auth']['auth_AD']['mr_allowed_groups'] = array('group1','IT group2'); //case sensitive
@gmarnin
gmarnin / gist:d2bc5efb30d204130ec2
Created December 10, 2014 15:17
vfuse traceback
Macintosh:vfuse admin$ sudo ./vfuse -i /Volumes/Stuff/109_P2V/HardDrive-image.dmg -o /Volumes/Stuff/109_P2V/ -n HardDrive-image-vfuse.dmg
Mounting /Volumes/Stuff/109_P2V/HardDrive-image.dmg
Traceback (most recent call last):
File "./vfuse", line 334, in <module>
main()
File "./vfuse", line 304, in main
os_vers = get_osvers(mount_point)
File "./vfuse", line 117, in get_osvers
print colored(err, 'red')
File "./vfuse", line 54, in colored
Macintosh:vfuse admin$ sudo ./vfuse -i /Volumes/Stuff/109_P2V/HardDrive-image.dmg -o /Volumes/Stuff/109_P2V -n 109p2v
Mounting /Volumes/Stuff/109_P2V/HardDrive-image.dmg
Traceback (most recent call last):
File "./vfuse", line 334, in <module>
main()
File "./vfuse", line 304, in main
os_vers = get_osvers(mount_point)
File "./vfuse", line 117, in get_osvers
print colored(err, 'red')
File "./vfuse", line 54, in colored
@gmarnin
gmarnin / gist:c1f766447ffb92982206
Created February 24, 2015 13:52
HP Printer Drivers pkginfo
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>_metadata</key>
<dict>
<key>created_by</key>
<string>autopkg</string>
<key>creation_date</key>
<date>2014-10-02T10:06:22Z</date>
@gmarnin
gmarnin / gist:e17eb746e23d2e75fe1b
Created June 10, 2015 18:22
Radar 14023881 - FileVault 2: Allow encrypted password with fdesetup enable -inputplist
Summary:
When using fdesetup enable -inputplist to enable other accounts, the password in the plist is clear text. I would like to file an enhancement to have the -inputplist plist support hashed passwords.
Steps to Reproduce:
If you run fdesetup enable -inputplist with a hashed password, FileVault 2 is not enabled for the hashed password account.
Expected Results:
@gmarnin
gmarnin / gist:00bb721744f8d2fef4f8
Created August 4, 2015 17:22
SEP 12.1.6 Pkginfo
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>_metadata</key>
<dict>
<key>created_by</key>
<string>munki-admin</string>
<key>creation_date</key>
<date>2015-07-06T15:58:47Z</date>
@gmarnin
gmarnin / gist:bc5fc6d7f0935e9dcced
Created August 12, 2015 18:56
FinaleUpdate.munki
12mor101m3:~ autopkg$ autopkg run -vv FinaleUpdate.munki
Processing FinaleUpdate.munki...
SparkleUpdateInfoProvider
{'Input': {'appcast_url': u'http://downloads2.makemusic.com/xml/Finale_Mac.xml'}}
SparkleUpdateInfoProvider: Version retrieved from appcast: 5545
SparkleUpdateInfoProvider: User-facing version retrieved from appcast: 2014.4.0.5545
SparkleUpdateInfoProvider: Found URL http://makemusic.blob.core.windows.net/applications/Finale/2014d/Sparkle/FinaleUp2014dMac_5545.zip
{'Output': {'url': 'http://makemusic.blob.core.windows.net/applications/Finale/2014d/Sparkle/FinaleUp2014dMac_5545.zip',
'version': '2014.4.0.5545'}}
URLDownloader