Related Posts Plugin for WordPress, Blogger... How to Install Unifi Controller on Ubuntu:Coretan Kejujuran

Friday, February 3, 2012

How to Install Unifi Controller on Ubuntu

How to Install Unifi controller on ubuntu

1. Installing mongodb
To use the packages, add a line to your /etc/apt/sources.list, then 'aptitude update' and one of 'aptitude install mongodb-10gen', 'aptitude install mongodb-10gen-unstable' . Make sure you add the 10gen GPG key, or apt will disable the repository (apt uses encryption keys to verify the repository is trusted and disables untrusted ones). To add the GPG key, run this command:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
Then, if you're on a Debianoid with SysV style init scripts (e.g., Debian Lenny or older Ubuntus), add this line verbatim to your /etc/apt/sources.list
deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen

If you're on a Debianoid with Upstart (e.g., recent Ubuntus), use this line in your sources.list:
deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen GPG Key

The public gpg key used for signing these packages follows. It should be possible to import the key into apt's public keyring with a command like this:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10

Configuration
To configure these packages beyond the defaults, have a look at /etc/mongodb.conf, and/or the initialization script, (/etc/init.d/mongodb on older, non-Upstart systems, /etc/init/mongodb.conf on Upstart systems). Most MongoDB operational settings are in /etc/mongodb.conf; a few other settings are in the initialization script. Note that if you customize the userid in the initialization script or the dbpath or logpath settings in /etc/mongodb.conf, you must ensure that the directories and files you use are writable by the userid you run the server as.
Packages for other distros coming soon!
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.10 (Darwin)
mQENBEtsQe8BCACm5G0/ei0IxyjVEp6EEtbEbWK1Q4dKaONtiCODwB8di+L8tlUd
Ra5QYxeyV90C+dqdh34o79enXxT6idHfYYqDdob2/kAPE6vFi4sLmrWIVGCRY++7
RPclZuezPm1sxG1TRAYEsW0VZUE9ofdoQ8xlUZDyn2BSjG8OCT2e4orRg1pHgzw2
n3hnWqJNuJS4jxcRJOxI049THIGUtqBfF8bQoZw8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neX++ouh+9WD5O7gJ0kP3VQJpmXjT/QnN5ANjI4kAtRZUW
qCXlXOxVAeXHL5oiKz0NM23Xc2rNAyfBQY8+SUYrKBalNBq5m68g8oogX8QD5u2F
x+6C+QK9G2EBDD/NWgkKN3GOxpQ5DTdPHI5/fjwYFs1leIaQjjiyJwAifxB/1+w0
VCHe2LDVpRXY5uBTefF2guhVYisKY6n5wNDaQpBmA8w17it5Yp8ge0HMN1A+aZ+6
L6MsuHbG2OYDZgAk8eKhvyd0y/pAhZpNuQ82MMGBmcueSA==
=74Cu
-----END PGP PUBLIC KEY BLOCK-----

Install
In order to complete the installation of the packages, you need to update the sources and then install the desired package
sudo apt-get update
sudo apt-get install mongodb-10gen
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.

1 komentar: