Wednesday, February 12, 2014

Installing Ubiquity's UniFi wifi controller server on gentoo

The process for installing the UniFi controller software on Gentoo is pretty simple, thanks to the work done by the github user travisghansen.

Add an xml file containing this:

<?xml version="1.0" ?>                                                                                                    
<repositories version="1.0">
        <repo priority="50" quality="experimental" status="unofficial">
                <name>chaos</name>
                <description>Chaos.</description>
                <homepage>https://github.com/travisghansen/chaos/</homepage>
                <owner>
                        <email>travisghansen@github.com</email>
                </owner>
                <source type="git">git://github.com/travisghansen/chaos.git</source>
        </repo>
</repositories>

to /etc/layman/overlays, say as "chaos.xml". The .xml is important by the way!


Then simply sync your layman overlay list, add the overlay and emerge the package.

layman -S ; layman -a chaos ; emerge unifi

Optionally, you can modify the port that the server listens on by editing  /var/lib/unifi/data/system.properties .

I set my ports as such:
unifi.http.port=80 
unifi.https.port=443


Update: script form

mkdir -p /etc/layman/overlays/
cat <<EOF >> /etc/layman/overlays/chaos.xml
<?xml version="1.0" ?>
<repositories version="1.0">
    <repo priority="50" quality="experimental" status="unofficial">
       <name>chaos</name>
       <description>Chaos.</description>
       <homepage>https://github.com/travisghansen/chaos/</homepage
       <owner><email>travisghansen@github.com</email></owner>
       <source type="git">git://github.com/travisghansen/chaos.git</source>
   </repo>
</repositories>
EOF
layman -S ; layman -a chaos ; emerge unifi
cat <<EOF >> /var/lib/unifi/data/system.properties
unifi.http.port=80
unifi.https.port=443
EOF

4 comments:

  1. Yay, works great. Also I updated it to 3.2.10 by unpacking the archive from http://www.ubnt.com/downloads/unifi/3.2.10/UniFi.unix.zip

    Maybe you could provide a new eBuild for 3.2.10-GA - Changelog: https://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-3-2-10-is-released/ba-p/1165532

    ReplyDelete
  2. Thank you very much.
    Maybe you could do ebuild 4.6.6.
    https://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-4-6-6-is-released/ba-p/1288816

    ReplyDelete
  3. I've made updated ebuilds available via my own gentoo overlay:

    https://github.com/jonesmz/gentoo-overlay

    Including a 4.6.6 build.

    ReplyDelete