Skip to content

Instantly share code, notes, and snippets.

@nathansgreen
Last active August 23, 2022 12:07
Show Gist options
  • Select an option

  • Save nathansgreen/b0d556d3ef1207a9a2fd5f16ea835473 to your computer and use it in GitHub Desktop.

Select an option

Save nathansgreen/b0d556d3ef1207a9a2fd5f16ea835473 to your computer and use it in GitHub Desktop.
UniFi Network Controller Setup for MacOS
#!/bin/sh
# https://community.ui.com/questions/Unifi-Controller-5-11-50-on-Mac-OS-X-Catalina-fails-to-start-/2fde6f63-b0ac-43a0-83f7-5cf43ba3d40f?page=2
brew cask install homebrew/cask-versions/adoptopenjdk8
brew cask install ubiquiti-unifi-controller
export CLASSPATH=/Applications/UniFi.app/Contents/Java/*
cd /Applications/UniFi.app/Contents/Resources
java com.ubnt.ace.Launcher start &
read -p "Press any key to terminate UniFi... " -n1 -s
echo
java com.ubnt.ace.Launcher stop
@rgaufman
Copy link

rgaufman commented Jul 16, 2022

I believe now it should be:

brew tap homebrew/cask-versions
brew install --cask temurin8
cd /Applications/UniFi.app/Contents/Resources/
JAVA_VERSION=1.8 java -jar /Applications/UniFi.app/Contents/Resources/lib/ace.jar ui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment