Amahi Unifi Controller

wilholt
Posts: 18
Joined: Thu Aug 11, 2016 5:47 am

Amahi Unifi Controller

Postby wilholt » Thu Mar 02, 2017 6:38 pm

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

armorer1984
Posts: 19
Joined: Sun Jun 05, 2011 6:46 am

Re: Amahi Unifi Controller

Postby armorer1984 » Mon Jul 16, 2018 5:50 am

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!!

User avatar
bigfoot65
Project Manager
Posts: 10941
Joined: Mon May 25, 2009 4:31 pm

Re: Amahi Unifi Controller

Postby bigfoot65 » Mon Jul 16, 2018 3:39 pm

Nice.

Could you add this the the wiki?

We prefer to keep tutorials there, not in the forums.
ßîgƒσστ65
Applications Manager

Who is online

Users browsing this forum: No registered users and 1 guest