Nuts and Bolts

Posts

  • Enabling and Disabling SSH in Munki Update

    Posted on 1 min

    I previously posted a munki nopkg script to enable SSH using /usr/sbin/systemsetup This stopped working on newer versions of macOS at some point and I implemented a new method, but never posted it. The new method simply loads the launch daemon to enable SSH. The install_check script <key>installcheck_script</key> <string>#!/bin/bash #check to see if ssh is off (/bin/launchctl list | grep ssh) if [[ $? = 1 ]] then # exit 0 to tell Munki an install is needed exit 0 fi # if not needed, exit 1 exit 1</string> The postinstall_script :
  • Stupid SSH Tricks

    Posted on 1 min

    I’m writing down these SSH configuration tweaks because I tend to change them infrequently enough that I forget them :-) Configuring SSH keys Sometimes it might be useful to use seperate SSH keys for seperate purposes. For example, one for work and one for peprsonal. On macOS this can be accomplished using ~/.ssh/config For each host that you want to use a specific key for, you can create an entry like this :
  • Logic Pro Rename

    Posted on 1 min

    With the 11.1 update, Logic Pro has changed the app bundle from Logic Pro X.app to Logic Pro.app But wait! Didn’t this change happen a few updates back? Yes and no… The file sustem name was Logic Pro X.app but it displayed in Finder as Logic Pro.app If installing Logic Pro from the App Store, none of this is important as it is all seemless to the user. If like me you are managing this on managed endpoints, the path changing is important.
  • Getting Version Info for MATLAB

    Posted on 2 mins

    It can be challenging to get accurate version information for MATLAB on macOS. The installer is not a package, so no package receipts to rely on. The next place we might logically look for version info is in the app bundle itself. <key>CFBundleVersion</key> <string>24.2.0</string> Well that at least looks promising… This is an example from an installation of MATLAB 2024b. The 24.x indicates 2024 and the x.2 indicates b version. The problem with this is that the full version of that app is 24.
  • Mathematica.app Is Now Wolfram.app

    Posted on 1 min

    With version 14.1 of the desktop app, Mathematica.app is now Wolfram.app. In addition to a new path and a new bundle identifier for the application, there is also a new path if you deploy a mathpass file as we do in our organization. /Library/Mathematica/Licensing/mathpass as of version 14.1 becomes /Library/Wolfram/Licensing/mathpass
  • Deploying SPSS 27

    Posted on 1 min

    Good news! As of SPSS 27 IBM is finally shipping an Apple installer package for macOS instead of their Java based silent installer. Looking at the installer, it has a few minor issues but is for the most part sane. The package can be imported into Munki without much fuss. As in the past, activation will need to be scripted post install to license SPSS. The format of the path to the application has changed a bit, my postinstall script now looks like :
  • Enabling and Disabling SSH Using Munki

    Posted on 2 mins

    I recently needed to be able to test connectivity from client systems in a number of locations to some new infrastructure. Obviously being able to remotely login to these systems is a lot more efficient than traveling around to all the locations. We do not have SSH enabled by default on our managed macOS clients. I wanted to use Munki to enable SSH on select systems for testing, and then be able to disable it after testing was completed.
  • Renewing SPSS for Mac License Silently Update

    Posted on 1 min

    I previously wrote about a script to license SPSS for Mac silently . In version 25 of SPSS Statistics, the path to the bundled Java has changed. It now no longer has the version of the JRE in the path. As a result the script now looks like this : #!/bin/bash -x VERSION=25 AUTHCODE=<redacted> APPPATH="/Applications/IBM/SPSS/Statistics/$VERSION/SPSSStatistics.app/" cd "$APPPATH/Contents/bin" "$APPPATH/Contents/JRE/bin/java" -jar "$APPPATH/Contents/bin/licenseactivator.jar" SILENTMODE CODES=$AUTHCODE If SPSS keeps a consistent path to the bundled Java, it will make it a little bit easier to update the script for each new version of SPSS Statistics.
  • Sharing What We've Learned

    Posted on 1 min

    This post is a companion to a workshop delivered with Anthony Reimer. Included is a list of links to additional resources. Slack signup http://macadmins.org Jamf Nation https://www.jamf.com/jamf-nation/ Email Lists http://lists.psu.edu/archives/macenterprise.html https://groups.google.com/forum/#!forum/munki-dev https://groups.google.com/forum/#!forum/munki-discuss https://groups.google.com/forum/#!forum/autopkg-discuss GitHub https://github.com Presenting https://hynek.me/articles/speaking/ https://www.radiotope.com/blog/?p=posts/2017/02/09/Speaking_Professionally.md https://www.inc.com/carmine-gallo/how-googles-ceo-creates-brain-friendly-presentations.html http://speaking.io/ Blogging https://www.youtube.com/watch?v=i0BKZi966kQ https://learn.wordpress.com/get-started/ https://pages.github.com/ Vaughn’s web site : https://www.vaughnemiller.com Anthony’s web site : https://jazzace.github.io
  • Upcoming 2017 Mac Admin Conferences

    Posted on 1 min

    I am pleased to share that I will be speaking at the following upcoming Mac Admin conferences : MacDeployment in Calgary, Alberta http://macdeployment.ca/ and MacAdmins at Penn State : http://macadmins.psu.edu/ Hope to see you there!