Skip to content

Instantly share code, notes, and snippets.

@gaikokujinch
Last active June 23, 2017 06:29
Show Gist options
  • Save gaikokujinch/cb3c40b5c99809407f1b07ca422fc346 to your computer and use it in GitHub Desktop.
Save gaikokujinch/cb3c40b5c99809407f1b07ca422fc346 to your computer and use it in GitHub Desktop.
Unifi Controler

Unifi Controler

=======

Source: https://wiki.mattrude.com/FreeNAS/Unifi_Controller_Install

ToC

Notes

Create a jail

Install UniFi Controler

jls
jexec 18 tcsh
pkg update
pkg upgrade
pkg install -y openjdk8

Configure openjdk8 to work within the jail.

echo "fdesc   /dev/fd         fdescfs         rw      0       0" > /etc/fstab
echo "proc    /proc           procfs          rw      0       0" >> /etc/fstab

Install MongoDB

pkg install -y mongodb
echo 'mongod_enable="YES"' >> /etc/rc.conf

Install Unifi Controller

setenv BATCH yes
portsnap fetch extract
portsnap fetch update
cd /usr/ports/net-mgmt/unifi5/
make install clean
echo 'unifi_enable="YES"' >> /etc/rc.conf
service unifi start

Setting up UniFi Controler

First go to the IP address of your Unifi host, ie: https://:8443 You will be prompted to accept an Invalid SSL Certificate before accessing the new site.

Updating UniFi Controler

Check https://svnweb.freebsd.org/ports/head/net-mgmt/unifi5/Makefile?view=co

portsnap fetch update && cd /usr/ports/net-mgmt/unifi5/ && make deinstall reinstall clean && \
service unifi restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment