Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installing Rogue Amoeba Loopback automatically
#!/bin/bash
# This has only been tested by calling via `sudo` as the user who we want to configure it for, so there _may_ be some
APP_PATH=/Applications/Loopback.app
# this is normally called via a privileged helper tool, so user security context isn't quite so simple
# as what we're trying here with sudo. Note that we immediately get a segfault if we run this at the CLI
# using our regular user.
"${APP_PATH}/Contents/Frameworks/ExtrasInstaller.framework/Resources/EchelonInstaller" \
install \
"${APP_PATH}/Contents/Frameworks/ExtrasInstaller.framework/Resources/InstantOn/InstantOn.driver.tgz"

Install notes

Running newproc.d during the install process. On install, before we actually create a new device but after the initial install is done:

2017 Nov 10 14:17:01 531 <1> 64b  xpcproxy com.apple.security.agent
2017 Nov 10 14:17:01 531 <1> 64b  /System/Library/Frameworks/Security.framework/Versions/A/MachServices/SecurityAgent.bundle/Contents/MacOS/SecurityAgent
2017 Nov 10 14:17:03 532 <1> 64b  xpcproxy com.apple.security.authhost.00000000-0000-0000-0000-0000000186A7
2017 Nov 10 14:17:03 532 <1> 64b  /System/Library/Frameworks/Security.framework/Versions/A/MachServices/authorizationhost.bundle/Contents/MacOS/authorizationhost
2017 Nov 10 14:17:04 533 <1> 64b  xpcproxy com.rogueamoeba.ExtrasInstaller
2017 Nov 10 14:17:04 533 <1> 64b  /Applications/Loopback.app/Contents/Frameworks/ExtrasInstaller.framework/Resources/EchelonInstaller install /Applications/Loopback.app/Contents/Frameworks/ExtrasInstaller.framework/Resources/InstantOn/InstantOn.driver.tgz
2017 Nov 10 14:17:04 534 <533> 64b  /usr/bin/tar -C /Library/Audio/Plug-Ins/HAL/ -xvzf /Applications/Loopback.app/Contents/Frameworks/ExtrasInstaller.framework/Resources/InstantOn/InstantOn.driver.tgz
2017 Nov 10 14:17:04 535 <533> 64b  /usr/sbin/chown -R root:wheel /Library/Audio/Plug-Ins/HAL/InstantOn.driver
2017 Nov 10 14:17:04 536 <533> 64b  /Library/Audio/Plug-Ins/HAL/InstantOn.driver/Contents/MacOS/instanton-agent install
2017 Nov 10 14:17:04 537 <536> 64b  /bin/launchctl bsexec / /bin/launchctl load /Library/LaunchDaemons/com.rogueamoeba.instanton-agent.plist
2017 Nov 10 14:17:04 537 <536> 64b  /bin/launchctl load /Library/LaunchDaemons/com.rogueamoeba.instanton-agent.plist
2017 Nov 10 14:17:05 538 <533> 64b  /usr/bin/killall -c coreaudiod -u _coreaudiod
2017 Nov 10 14:17:05 539 <1> 64b  xpcproxy com.apple.audio.coreaudiod
2017 Nov 10 14:17:05 539 <1> 64b  /usr/sbin/coreaudiod
2017 Nov 10 14:17:05 540 <1> 64b  xpcproxy com.apple.audio.SandboxHelper 539
2017 Nov 10 14:17:05 540 <1> 64b  /System/Library/Frameworks/AudioToolbox.framework/XPCServices/com.apple.audio.SandboxHelper.xpc/Contents/MacOS/com.apple.audio.S (...)
2017 Nov 10 14:17:05 541 <1> 64b  xpcproxy com.apple.audio.DriverHelper 539
2017 Nov 10 14:17:05 541 <1> 64b  /System/Library/Frameworks/CoreAudio.framework/Versions/A/XPCServices/com.apple.audio.DriverHelper.xpc/Contents/MacOS/com.apple. (...)
2017 Nov 10 14:17:05 542 <1> 64b  xpcproxy com.rogueamoeba.instanton-agent
2017 Nov 10 14:17:05 543 <1> 64b  xpcproxy com.apple.bluetoothaudiod
2017 Nov 10 14:17:05 543 <1> 64b  /usr/sbin/bluetoothaudiod
2017 Nov 10 14:17:05 542 <1> 64b  instanton-agent
2017 Nov 10 14:17:06 544 <526> 64b  /bin/launchctl remove com.rogueamoeba.loopbackd
2017 Nov 10 14:17:06 545 <526> 64b  /usr/bin/tar -xzf /Applications/Loopback.app/Contents/Resources/loopbackd.tgz
2017 Nov 10 14:17:06 546 <526> 64b  /bin/launchctl load -w /Users/tim/Library/LaunchAgents/com.rogueamoeba.loopbackd.plist
2017 Nov 10 14:17:06 547 <1> 64b  xpcproxy com.rogueamoeba.loopbackd
2017 Nov 10 14:17:06 547 <1> 64b  loopbackd
2017 Nov 10 14:17:07 548 <1> 64b  xpcproxy com.apple.mdworker.sizing
2017 Nov 10 14:17:07 548 <1> 64b  /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker -s mdworker-sizing -c MDSSizingWorker -m <...>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment