pkgbuild --component /Volumes/ApplicationName/*.app --install-location \
/Applications ApplicationName-Version.pkg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sysadminctl is a tool Apple introduced in 10.10 for working with system user accounts. In 10.13, | |
sysadminctl is Apple's recommended tool for working with user accounts in the CLI, replacing functionality | |
that has long been provided by dscl and adds new features available only in 10.13. | |
sysadminctl can be used to change user passwords, create new users (including automatically provisioning | |
the user home folder) or check the status of a new-to-10.13 security feature named SecureToken. | |
SecureToken is a user attribute like password type or user home location. SecureToken is not publicly | |
documented by Apple so it is not possible to provide a full technical description, but in practice one | |
needs only to know if a user has SecureToken or not. Having SecureToken set signifies that a user can | |
unlock a FileVault-encrypted volume. Without the SecureToken bit on a user account, that user will not |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Modified 4/5/2019 | |
Version=1.4 | |
# Original source is from MigrateUserHomeToDomainAcct.sh | |
# Written by Patrick Gallagher - https://twitter.com/patgmac | |
# | |
# Guidance and inspiration from Lisa Davies: | |
# http://lisacherie.com/?p=239 | |
# | |
# Modified by Rich Trouton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Automatically check for updates: | |
Enable: sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool TRUE | |
Disable: sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool FALSE | |
Download newly available updates in the background: | |
Enable: sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool TRUE | |
Disable: sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool FALSE |
For faster connection speed and more flexibility.
- Start Xcode in command line by running this in commandline
/Applications/Xcode.app/Contents/MacOS/Xcode
- Start downloading of the simulator
- Cancel it. YES CANCEL IT!
- You will get a message like this:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Original script by Noel B. Alonso: https://gist.github.com/nbalonso/5696340 | |
#variables | |
DSCL="/usr/bin/dscl" | |
SECURITY="/usr/bin/security" | |
LOGGER="/usr/bin/logger" | |
# Determine OS version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MacBook9,1: 'Mac-9AE82516C7C6B903' | |
iMac14,1: 'Mac-031B6874CF7F642A' | |
iMac10,1: 'Mac-F2268DC8' | |
MacBookPro8,1: 'Mac-50619A408DB004DA' | |
MacBook6,1: 'Mac-F22C8AC8' | |
MacBookPro10,2: 'Mac-AFD8A9D944EA4843' | |
iMac12,2: 'Mac-942B59F58194171B' | |
iMac14,2: 'Mac-27ADBB7B4CEE8E61' | |
MacBook8,2: 'Mac-F305150B0C7DEEEF' | |
MacBookAir6,1: 'Mac-35C1E88140C3E6CF' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Determine OS version | |
osvers=$(sw_vers -productVersion | awk -F. '{print $2}') | |
# Environment settings | |
LDAPdomain="new_ldap_server_here" # Fully qualified DNS of new LDAP server | |
oldLDAPdomain="old_ldap_server_here" # Fully qualified DNS of old LDAP server | |
oldADdomain="olddomain.com" # Fully qualified DNS name of the old Active Directory Domain | |
oldADdomainname="OLDDOMAIN" # Name of the old AD Domain as specified in the search paths |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script downloads and installs the latest Flash player for compatible Macs | |
# Determine OS version | |
osvers=$(sw_vers -productVersion | awk -F. '{print $2}') | |
# Determine current major version of Adobe Flash for use | |
# with the fileURL variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Identify location of jamf binary. | |
jamf_binary=`/usr/bin/which jamf` | |
if [[ "$jamf_binary" == "" ]] && [[ -e "/usr/sbin/jamf" ]] && [[ ! -e "/usr/local/bin/jamf" ]]; then | |
jamf_binary="/usr/sbin/jamf" | |
elif [[ "$jamf_binary" == "" ]] && [[ ! -e "/usr/sbin/jamf" ]] && [[ -e "/usr/local/bin/jamf" ]]; then | |
jamf_binary="/usr/local/bin/jamf" |
NewerOlder