UBNT: UniFi: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
New page: ==Referensi== * http://forum.ubnt.com/showthread.php?t=45945 * http://www.ubnt.com/downloads/unifi/2.2.5/UniFi.unix.zip ==Pranala Menarik== * UBNT
 
Onnowpurbo (talk | contribs)
No edit summary
Line 1: Line 1:
UniFi Controller APT howto
UniFi provides a debian package that you can update via APT
1. add mongoDB to apt souce.
UniFi Controller .dep package depends on mongoDB 2.0.0 or newer.
So please follow the steps HERE to add mongoDB into apt source list before install UniFi Controller.
2. edit /etc/apt/sources.list
Code:
## Ubuntu Natty (11.04):
deb http://www.ubnt.com/downloads/unifi/distros/deb/natty natty ubiquiti
## Ubuntu Maverick (10.10):
deb http://www.ubnt.com/downloads/unifi/distros/deb/maverick maverick ubiquiti
## Ubuntu Lucid (10.4):
deb http://www.ubnt.com/downloads/unifi/distros/deb/lucid lucid ubiquiti
## Ubuntu Karmic (9.10):
deb http://www.ubnt.com/downloads/unifi/distros/deb/karmic karmic ubiquiti
## Ubuntu Jaunty (9.4):
deb http://www.ubnt.com/downloads/unifi/distros/deb/jaunty jaunty ubiquiti
## Debian Lenny (5.0):
deb http://www.ubnt.com/downloads/unifi/distros/deb/lenny lenny ubiquiti
## Debian Squeeze (6.0):
deb http://www.ubnt.com/downloads/unifi/distros/deb/squeeze squeeze ubiquiti
3. add GPG Key
Code:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50
# or over HTTP:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv C0A52C50
4. update, install & upgrade
Code:
# retrieve the latest package information
apt-get update
# install/upgrade unifi package
apt-get install unifi
# or you can do apt-get upgrade to upgrade all packages on your debian
5. the UniFi webUI can be reached via https://<unifi_ip>:8443/
UniFi Zipped Package
A zipped package is also provide for DIYers. See readme.txt for details.
UniFi.unix.zip
UniFi API
A shell library, unifi_sh_api is provided with the release. here's a sample script to authorize a guest for 30 minutes
Code:
#!/bin/sh
## define required variables
username=admin
password=admin
baseurl=https://localhost:8443
## include the API library
. unifi_sh_api
unifi_login
unifi_authorize_guest "e8:17:22:10:5d:4d" 30
unifi_logout





Revision as of 23:52, 20 July 2012

UniFi Controller APT howto UniFi provides a debian package that you can update via APT 1. add mongoDB to apt souce. UniFi Controller .dep package depends on mongoDB 2.0.0 or newer. So please follow the steps HERE to add mongoDB into apt source list before install UniFi Controller.

2. edit /etc/apt/sources.list Code:

    1. Ubuntu Natty (11.04):

deb http://www.ubnt.com/downloads/unifi/distros/deb/natty natty ubiquiti

    1. Ubuntu Maverick (10.10):

deb http://www.ubnt.com/downloads/unifi/distros/deb/maverick maverick ubiquiti

    1. Ubuntu Lucid (10.4):

deb http://www.ubnt.com/downloads/unifi/distros/deb/lucid lucid ubiquiti

    1. Ubuntu Karmic (9.10):

deb http://www.ubnt.com/downloads/unifi/distros/deb/karmic karmic ubiquiti

    1. Ubuntu Jaunty (9.4):

deb http://www.ubnt.com/downloads/unifi/distros/deb/jaunty jaunty ubiquiti

    1. Debian Lenny (5.0):

deb http://www.ubnt.com/downloads/unifi/distros/deb/lenny lenny ubiquiti

    1. Debian Squeeze (6.0):

deb http://www.ubnt.com/downloads/unifi/distros/deb/squeeze squeeze ubiquiti

3. add GPG Key Code:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50

  1. or over HTTP:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv C0A52C50

4. update, install & upgrade Code:

  1. retrieve the latest package information

apt-get update

  1. install/upgrade unifi package

apt-get install unifi

  1. or you can do apt-get upgrade to upgrade all packages on your debian

5. the UniFi webUI can be reached via https://<unifi_ip>:8443/

UniFi Zipped Package A zipped package is also provide for DIYers. See readme.txt for details. UniFi.unix.zip


UniFi API A shell library, unifi_sh_api is provided with the release. here's a sample script to authorize a guest for 30 minutes

Code:

  1. !/bin/sh
    1. define required variables

username=admin password=admin baseurl=https://localhost:8443

    1. include the API library

. unifi_sh_api

unifi_login unifi_authorize_guest "e8:17:22:10:5d:4d" 30 unifi_logout



Referensi


Pranala Menarik