Page 1 of 1

Amahi Unifi Controller

Posted: Thu Mar 02, 2017 6:38 pm
by wilholt
Has anyone run a Unifi controller on Amahi? Just thinking that such an app might be nice. Might even look into making one myself if anyone is actually interested.

There is a .deb installer that works for debian/ubuntu but no such thing for fedora.

https://community.ubnt.com/t5/UniFi-Upd ... -p/1828449

Re: Amahi Unifi Controller

Posted: Mon Jul 16, 2018 5:50 am
by armorer1984
I know this is an old post, but this seems to top the list of Google results without any solution posted. Figured I would help if anyone found this and was looking for a solution.

Ths is the install instructions for Fedora 23-25. Anything before or after is unknown.

First off, login as root, then add the ubnt user and grab some other needed items

Code: Select all

useradd -r ubnt

Code: Select all

yum -y install mongodb-server java-1.8.0-openjdk unzip wget
Download the UniFi Controller and extract it. An item of note, I installed it in my /opt directory.

Code: Select all

cd ~ && wget http://dl.ubnt.com/unifi/5.8.24/UniFi.unix.zip

Code: Select all

unzip -q UniFi.unix.zip -d /opt

Code: Select all

chown -R ubnt:ubnt /opt/UniFi
Create our startup script:

Code: Select all

nano /etc/systemd/system/unifi.service

#
# Systemd unit file for UniFi Controller
#

[Unit]
Description=UniFi AP Web Controller
After=syslog.target network.target

[Service]
Type=simple
User=ubnt
WorkingDirectory=/opt/UniFi
ExecStart=/usr/bin/java -Xmx1024M -jar /opt/UniFi/lib/ace.jar start
ExecStop=/usr/bin/java -jar /opt/UniFi/lib/ace.jar stop
SuccessExitStatus=143


[Install]
WantedBy=multi-user.target




Enable the service to start at boot

Code: Select all

systemctl enable unifi.service

Code: Select all

Reload systemctl

Code: Select all

systemctl daemon-reload

You should now be up and running. Point your web browser to https://hda:8443 (DON'T FORGET THE HTTPS)

I did have to tweak the ports the controller works on for my installation but on others the default seems to work fine. Hope this helps!!

Re: Amahi Unifi Controller

Posted: Mon Jul 16, 2018 3:39 pm
by bigfoot65
Nice.

Could you add this the the wiki?

We prefer to keep tutorials there, not in the forums.