- Using a ready-to-use Ubuntu image
This file contains hidden or 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
| ## Where to find info and how to report on system extensions in macOS Catalina+ | |
| # Staged system extensions location in folder based on unique ID | |
| /Library/SystemExtensions/ | |
| # Info on each | |
| /Library/SystemExtensions/db.plist | |
| Includes... | |
| - state (enabled, activated, etc.) | |
| - associated launchd plists |
This file contains hidden or 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
| # INSTRUCTIONS | |
| # Create a folder on the Administrator Desktop named "Project" | |
| # Run the script to generate the AES key | |
| # Run the script to generate the Active Directory encrypted password file | |
| # Run the script to generate the Jamf Pro encrypted password file | |
| # Update the following variables: | |
| # JamfProServer |
This file contains hidden or 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 | |
| # macOS Preferences Defaults | |
| # By Christopher Allen @ChristopherA https://github.com/christophera/ | |
| # | |
| # Personal macOS preferences applied via `defaults write`. Designed for | |
| # macOS Tahoe 26.x on Apple Silicon. Some settings may work on earlier | |
| # versions but are only tested on Tahoe. | |
| # | |
| # Repository DID: did:repo:1bd512b281bdedc2c76d9ba63c8c84b750847355 | |
| # Signing key: SHA256:a61TkTtLFGEYOmdRMbpYGkZwXw2QUrGkAWp3dok8jcw |
This file contains hidden or 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
| deb http://deb.debian.org/debian buster main contrib non-free | |
| deb-src http://deb.debian.org/debian buster main contrib non-free | |
| deb http://deb.debian.org/debian buster-updates main contrib non-free | |
| deb-src http://deb.debian.org/debian buster-updates main contrib non-free | |
| deb http://security.debian.org/debian-security/ buster/updates main contrib non-free | |
| deb-src http://security.debian.org/debian-security/ buster/updates main contrib non-free |
This file contains hidden or 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 | |
| # server connection information | |
| URL="https://talkingmoose.jamfcloud.com" | |
| userName="API-Editor" | |
| password="P@55w0rd" | |
| httpErrorCodes="200 Request successful | |
| 201 Request to create or update object successful | |
| 400 Bad request |
This file contains hidden or 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 | |
| if [ "$1" == "-h" ]; then | |
| echo "Usage: `basename $0` Autoconf of /etc/krb5.conf. Replace default value with your value." | |
| echo " -r <REALM> (Your Realm. Ex: FOO)" | |
| echo " -k <KDC> (The KDC. Ex: DC1)" | |
| echo " -f <FQDN> (The FQDN of your domain. Ex: FOO.LOCAL)" | |
| exit 0 | |
| fi | |
| while getopts r:k:f: option | |
| do |
This file contains hidden or 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
| # Generate a token | |
| tokenResp=$(curl -k -u "username:password" -X POST "https:/yoururl.jamfcloud.com/uapi/auth/tokens" -H "accept: application/json") | |
| # parse the token from the response | |
| token=$(echo $tokenResp | awk -F '[:,{"}]' ' {print $6} ') | |
| # pass the token into a cURL command | |
| curl -k -X GET "https://yoururl.jamfcloud.com/uapi/v1/inventory-preload" -H "accept: application/json" -H "Authorization: Bearer $token" | |
| # The expiration time can be found with the following | |
| time=$(echo $tokenResp | awk -F "[:,{}]" ' {print $5} ') |
This file contains hidden or 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/zsh | |
| ## postinstall | |
| pathToScript=$0 | |
| pathToPackage=$1 | |
| targetLocation=$2 | |
| targetVolume=$3 | |
| # This postinstall script for Composer creates the following | |
| # A LaunchDaemon that starts a separate script to run a Jamf Pro policy command |
This file contains hidden or 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 | |
| loggedInUser=$( /usr/sbin/scutil <<< "show State:/Users/ConsoleUser" | awk -F’: ‘ ‘/[[:space:]]+Name[[:space:]]:/ { if ( $2 != "loginwindow" ) { print $2 }}’ ) | |
| sudo -u $loggedInUser chflags -R nouchg /Users/$loggedInUser | |
| diskutil resetUserPermissions / $loggedInUser | |
| exit 0 |