UniFi Controller
Install
I was able to install UniFi Controller on a CentOS server without too much issues, using this page, and this page could also be helpful to you.
TechVideos created a video that describes access to the mongo database, for example for password recovery.
If you want to run the guest portal you might have to make sure to check the routes and open ports to the controller to load and work (port 8880 and 8843 TCP are needed to guest portal to load).
Some configuration you might want to think about:
- guest network behaviour when controller is unreachable: link
- unifi controller should not run as root: link
Upgrade
Update UniFi: <created a small script for this in /opt/UniFi>
|
HowToo
How to: Remote Adoption
Hmm, using the Unifi App it should be possible to easily adopt a device. However I've not been able to use that.
How to: Manually setting the controller address for a Unifi AP
- SSH to ubnt:192.168.1.20 (or whatever the IP address is.)
default password is ubnt, if it something else, I hope you wrote it down when you set it. :) You must reset the AP to defaults before changing the inform ip address. To do so execute the following command
syswrapper.sh restore-default
This will reboot the radio and disconnect your SSH session. Once it comes back online, you will need to reconnect.
Connect to the mca client
mca-cli
Now issue the set-inform command with the IP address of your Unifi controller.
set-inform http://192.168.3.2:8080/inform
The AP should connect to the controller within a few seconds and you are set.
Adopting a UniFi device
Use a default site, as some credentials are being changed to a site, then you won't be able to adopt the device (see link)
CLI commands
dmesg
wstalist
List power options:
iwlist ath0 txpower |egrep Current |sed -e 's/^*//'
Set power option:
sed -i 's/^radio.1.txpower_mode=.*/radio.1.txpower_mode=custom/w /tmp/system.cfg' /tmp/system.cfg sed -i 's/^radio.1.txpower=.*/radio.1.txpower=16/w /tmp/system.cfg' /tmp/system.cfg save reboot