Difference between revisions of "UBNT: UniFi"

From OnnoWiki
Jump to navigation Jump to search
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
UniFi Controller APT howto
+
http://www.ubnt.com/unifi
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
+
UniFi is a revolutionary WiFi system which combines carrier class performance, unlimited scalability, disruptive pricing, and a virtual management controller.
Code:
 
  
## Ubuntu Natty (11.04):
+
Intuitive Software
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
+
Install, configure, and manage all of your UniFi Wireless Access Points with the intuitive and easy to learn UniFi User Interface.
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
+
==Instalasi Paket Pendukung==
Code:
 
  
# retrieve the latest package information
+
Lakukan
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/
+
sudo apt-get install sun-java6-plugin sun-java6-jre sun-java6-bin sun-java6-fonts
 +
apt-get install mongoDB
  
UniFi Zipped Package
+
Restart mongoDB
A zipped package is also provide for DIYers. See readme.txt for details.
 
UniFi.unix.zip
 
  
 +
sudo /etc/init.d/mongodb start
  
UniFi API
+
==Edit sources.list==
A shell library, unifi_sh_api is provided with the release. here's a sample script to authorize a guest for 30 minutes
 
  
Code:
+
edit
  
#!/bin/sh
+
vi /etc/apt/sources.list
  
## define required variables
+
Masukan
username=admin
 
password=admin
 
baseurl=https://localhost:8443
 
  
## include the API library
+
## Ubuntu Precise (12.04):
. unifi_sh_api
+
deb http://www.ubnt.com/downloads/unifi/distros/deb/precise precise ubiquiti
 +
## Ubuntu Oneiric (11.10):
 +
deb http://www.ubnt.com/downloads/unifi/distros/deb/oneiric oneiric ubiquiti
 +
## 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
  
unifi_login
 
unifi_authorize_guest "e8:17:22:10:5d:4d" 30
 
unifi_logout
 
  
 +
Tambahkan GPG Key
  
 +
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
  
 +
==Update & Install==
 +
 +
Lakukan
 +
 +
sudo su
 +
 +
# 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
 +
 +
Betulkan konfigurasi
 +
 +
vi /etc/init.d/unifi
 +
 +
kemudian cari
 +
 +
JAVA_HOME=/usr/lib/jvm/java-6-openjdk/
 +
 +
dan ganti dengan ini
 +
 +
JAVA_HOME=/usr/lib/jvm/java-6-openjdk-i386/
 +
 +
atau anda pastikan dahulu dimana directory java yg terinstall di pc anda. Cara paling mudah menggunakan perintah
 +
 +
ls /usr/lib/jvm/
 +
 +
Jika sudah jangan lupa save
 +
 +
==Restart==
 +
 +
Restart unifi menggunakan perintah
 +
 +
/etc/init.d/unifi restart
 +
 +
Untuk menjalankan unifi ketikan perintah berikut
 +
 +
/etc/init.d/unifi start
 +
 +
Untuk mematikan unifi ketikan perintah berikut
 +
 +
/etc/init.d/unifi stop
 +
 +
 +
Jika Error,
 +
 +
Cannot locate Java Home
 +
 +
SOLUSI: Perbaiki seperti yang di sarankan di http://paydoel.blogspot.com/2012/06/how-to-fix-unifi-controller-cannot.html
 +
 +
==Akses WebUI==
 +
 +
Instal Flash sebelum mengakses Web
 +
 +
sudo apt-get install flashplugin-installer flashplugin-nonfree flashplugin-nonfree-extrasound \
 +
libnspr4-dev libnss3-dev
 +
 +
UniFi WebUI dapat di akses melalui alamat
 +
 +
https://localhost:8443/
 +
https://localhost:8080/
 +
 +
==Paket ZIP UniFi==
 +
 +
Alternatif lain kita dapat menggunakan paket ZIP UniFi
 +
 +
UniFi.unix.zip
 +
 +
 +
==UniFi API==
 +
 +
Shell library, unifi_sh_api yang di sediakan di release. Berikut adalah contoh agar pengguna / guest dapat mengakses selama 30 menit.
 +
 +
#!/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
  
 
==Referensi==
 
==Referensi==
Line 72: Line 145:
 
* http://forum.ubnt.com/showthread.php?t=45945
 
* http://forum.ubnt.com/showthread.php?t=45945
 
* http://www.ubnt.com/downloads/unifi/2.2.5/UniFi.unix.zip
 
* http://www.ubnt.com/downloads/unifi/2.2.5/UniFi.unix.zip
 
+
* http://paydoel.blogspot.com/2012/06/how-to-fix-unifi-controller-cannot.html
 +
* http://paydoel.blogspot.com/2012/02/how-to-install-unifi-controller-on.html
  
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 
* [[UBNT]]
 
* [[UBNT]]
 +
* [[UBNT: Teknik Recovery]]
 +
* [[UBNT: Upload Firmware]]
 +
* [[UBNT: Rebuild Firmware]]
 +
* [[UBNT: firmware dengan OLSR]]
 +
* [[UBNT: openwrt]]
 +
* [[UBNT: olsr dengan openwrt]]
 +
* [[UBNT: olsr dengan kamikaze openwrt]]
 +
* [[UBNT: olsr dengan backfire openwrt]] '''RECOMMENDED'''
 +
* [[UBNT: UniFi]]
 +
* [[UBNT: UniFi Konfigurasi Awal]]
 +
* [[UBNT: UniFi Manajemen HotSpot]]
 +
* [[UBNT: OLSR Pembuatan Firmware]]
 +
* [[UBNT: OLSR Konfigurasi]]
 +
* [[OLSR - di UBNT]]
 +
* [[OLSR - di Ubuntu]]
 +
* [[OpenWRT]]

Latest revision as of 07:59, 22 July 2012

http://www.ubnt.com/unifi

UniFi is a revolutionary WiFi system which combines carrier class performance, unlimited scalability, disruptive pricing, and a virtual management controller.

Intuitive Software

Install, configure, and manage all of your UniFi Wireless Access Points with the intuitive and easy to learn UniFi User Interface.


Instalasi Paket Pendukung

Lakukan

sudo apt-get install sun-java6-plugin sun-java6-jre sun-java6-bin sun-java6-fonts
apt-get install mongoDB

Restart mongoDB

sudo /etc/init.d/mongodb start

Edit sources.list

edit

vi /etc/apt/sources.list

Masukan

## Ubuntu Precise (12.04):
deb http://www.ubnt.com/downloads/unifi/distros/deb/precise precise ubiquiti
## Ubuntu Oneiric (11.10):
deb http://www.ubnt.com/downloads/unifi/distros/deb/oneiric oneiric ubiquiti
## 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 


Tambahkan GPG Key

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

Update & Install

Lakukan

sudo su
# 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

Betulkan konfigurasi

vi /etc/init.d/unifi

kemudian cari

JAVA_HOME=/usr/lib/jvm/java-6-openjdk/ 

dan ganti dengan ini

JAVA_HOME=/usr/lib/jvm/java-6-openjdk-i386/

atau anda pastikan dahulu dimana directory java yg terinstall di pc anda. Cara paling mudah menggunakan perintah

ls /usr/lib/jvm/

Jika sudah jangan lupa save

Restart

Restart unifi menggunakan perintah

/etc/init.d/unifi restart

Untuk menjalankan unifi ketikan perintah berikut

/etc/init.d/unifi start

Untuk mematikan unifi ketikan perintah berikut

/etc/init.d/unifi stop


Jika Error,

Cannot locate Java Home

SOLUSI: Perbaiki seperti yang di sarankan di http://paydoel.blogspot.com/2012/06/how-to-fix-unifi-controller-cannot.html

Akses WebUI

Instal Flash sebelum mengakses Web

sudo apt-get install flashplugin-installer flashplugin-nonfree flashplugin-nonfree-extrasound \
libnspr4-dev libnss3-dev

UniFi WebUI dapat di akses melalui alamat

https://localhost:8443/
https://localhost:8080/

Paket ZIP UniFi

Alternatif lain kita dapat menggunakan paket ZIP UniFi

UniFi.unix.zip


UniFi API

Shell library, unifi_sh_api yang di sediakan di release. Berikut adalah contoh agar pengguna / guest dapat mengakses selama 30 menit.

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

Referensi

Pranala Menarik