Forums

Resolved
1 votes
Hello Forum Peoples.
This has probably already been documented but in case anyone needs a quick guide to getting the Unifi Wireless (Java) Controller working on ClearOS (v6.5 here)....


yum -y --enablerepo=* install mongodb
yum -y --enablerepo=* install mongodb-server
yum -y --enablerepo=* install java
yum -y --enablerepo=* install unzip

mkdir /root/bin
echo "cd /opt/UniFi" > /root/bin/unifi-start
echo "java -jar lib/ace.jar start" >> /root/bin/unifi-start
chmod +x /root/bin/unifi-start
echo "cd /opt/UniFi" > /root/bin/unifi-stop
echo "java -jar lib/ace.jar stop" >> /root/bin/unifi-stop
chmod +x /root/bin/unifi-stop

# This ensures it will start at boot time
echo "/root/bin/unifi-start &" >> /etc/rc.local

# Double check the latest release info here:
# http://www.ubnt.com/download#UniFi:AP
# Release notes and other downloads about UniFi Software.
# Download the UniFi.unix.zip and upload to the server

unzip UniFi.unix.zip
mv UniFi /opt

# Review this file for port clashes
nano /opt/UniFi/data/system.properties
# On clearos - this one specifically will need to be changed:
unifi.http.port=8080
# If using Dans... Probably best to change it anyway...
unifi.http.port=18080
# Save the changes

#Start the UniFi system.
/root/bin/unifi-start &
# You access the system by the HTTPS port listed
# in the above config file:
unifi.https.port=8443 (or whatever you have changed this to)
# In your browser:
https://<ip.ip.ip.ip>:8443


BTW - my system.properties looks like this:

portal.http.port=18880
portal.https.port=18843
unifi.db.port=27117
unifi.http.port=18080
unifi.https.port=18443
unifi.shutdown.port=18081


Works like a treat. Not too much in the way of load although admittedly I am only running 2x APs and maybe 20 clients.

Hope that helps some folks out.

Jim
Friday, June 20 2014, 10:54 AM
Share this post:
Responses (1)
  • Accepted Answer

    Tuesday, January 13 2015, 05:06 PM - #Permalink
    Resolved
    0 votes
    Thanks - very useful.

    One small point the /opt/Unifi/data directory does not exist until the controller has been started once - so you need to start it then stop it then do this step

    nano /opt/UniFi/data/system.properties
    The reply is currently minimized Show
Your Reply