UniFi Controller
This material is work-in-progress ... Do not follow instructions here until this notice is removed. |
Install Prerequisites
OpenJDK 8 JRE
Install openjdk8-jre
from the community repository.
Edit /etc/apk/respositories and uncomment the appropriate community repository for your Alpine version:
http://host.name/alpine_version/community
Update the package cache.
apk update
Install the package.
apk add openjdk8-jre
MongoDB
Install MongoDB
apk add mongodb
s6
Install s6
apk add s6
Install UniFi Controller
Create the unifi
user and group.
adduser -D -H /srv/unifi -g unifi unifi
Change to the parent folder within which you wish to install the UniFi Controller.
cd /srv
Download the generic unix archive of the VERSION
you wish to install.
wget http://www.ubnt.com/downloads/unifi/VERSION/UniFi.unix.zip
Unpack the archive.
unzip UniFi.unix.zip
Rename the unpacked directory.
mv UniFi unifi
Change ownership.
chown unifi:unifi unifi
Lock down permissions.
chmod o-rwx unifi