|Tags||wifi, ubnt, ubiquity,|
Ubiquity network (ubnt) provides a UniFi controller which can run on a Linux server to monitor your UniFi devices. Those are WiFi and networking, professional grade devices. This contribution allow to install and follow the upgrade of this controller on a SME server . As this is proprietary software, we can not bundle it as a rpm and distribute it. This rpm is all you need to easily download and install with the least intervention on your SME.
First install the needed repositories.
yum install smeserver-extrarepositories-centos-sclo-rh smeserver-extrarepositories-epel signal-event yum-modify
Install the SME Server Package
yum install smeserver-unifi --enablerepo=smecontribs,smedev,epel,centos-sclo-rh
Launch the download and installation of your installer.
signal-event smeserver-unifi-install config set UnsavedChanges no
you can now access to your UniFi controller using : https://YOURSERVERIP:8443
Follows the steps to configure the interface, and add your first devices.
yum remove smeserver-unifi unifi
you can then remove the content of : /opt/UniFi and /opt/Unifi_bak
Upgrade installed version
This will be a 3 steps upgrade
- find the version you want to update to, and list of allowed to upgrade release from
- find your current version release, and update to the minimal needed release
- update to the last version you want.
First you will need to find the current installed version :
# config getprop unifi VersionToInstall 5.6.30
Then you will need to check what is the version needed to upgrade to the desired version. Let's say 6.0.43 : https://community.ui.com/releases/UniFi-Network-Controller-6-0-43/b28bb453-927a-4dd8-82f7-40af28505510
6.0.43 and earlier 6.0.x versions. 5.14.25 and earlier 5.14.x versions. 5.13.33 and earlier 5.13.x versions. 5.12.72 and earlier 5.12.x versions. 5.11.52 and earlier 5.11.x versions. 5.10.27 and earlier 5.10.x versions. 5.9.33 and earlier 5.9.x versions. 5.8.30 and earlier 5.8.x versions. 5.7.28 and earlier 5.7.x versions. 5.6.42 and earlier 5.6.x versions. Most earlier versions are also supported for direct upgrade, going back to 3.1.0.
Existing UniFi controllers must be on one of the following versions in order to upgrade directly to this version: 5.10.24 and earlier 5.10.x versions. 5.9.33 and earlier 5.9.x versions. 5.8.30 and earlier 5.8.x versions. 5.7.28 and earlier 5.7.x versions. 5.6.42 and earlier 5.6.x versions. Most earlier versions are also supported for direct upgrade, going back to 3.1.0.
check the lowest release needed is available
# wget https://www.ubnt.com/downloads/unifi/5.6.42/UniFi.unix.zip -O UniFi.unix.5.6.42.zip --2021-01-12 15:15:16-- https://www.ubnt.com/downloads/unifi/5.6.42/UniFi.unix.zip Résolution de www.ubnt.com... 22.214.171.124, 126.96.36.199, 188.8.131.52 Connexion vers www.ubnt.com|184.108.40.206|:443...connecté. requête HTTP transmise, en attente de la réponse...301 Moved Permanently Emplacement: https://www.ui.com/downloads/unifi/5.6.42/UniFi.unix.zip [suivant] --2021-01-12 15:15:16-- https://www.ui.com/downloads/unifi/5.6.42/UniFi.unix.zip Résolution de www.ui.com... 220.127.116.11, 18.104.22.168, 22.214.171.124 Connexion vers www.ui.com|126.96.36.199|:443...connecté. requête HTTP transmise, en attente de la réponse...301 Moved Permanently Emplacement: https://dl.ubnt.com/unifi/5.6.42/UniFi.unix.zip [suivant] --2021-01-12 15:15:16-- https://dl.ubnt.com/unifi/5.6.42/UniFi.unix.zip Résolution de dl.ubnt.com... 188.8.131.52 Connexion vers dl.ubnt.com|184.108.40.206|:443...connecté. requête HTTP transmise, en attente de la réponse...200 OK Longueur: 63581448 (61M) [application/zip] Sauvegarde en : «UniFi.unix.5.6.42.zip»
then set your update release, and launch event to do the upgrade :
# config setprop unifi VersionToInstall 5.6.42 # signal-event smeserver-unifi-install
then finally update to desired version
# config setprop unifi VersionToInstall 5.10.25 # signal-event smeserver-unifi-install
here are the available configurations:
- access : default is local, you can set it to public to allow access from the outside network
- status : enabled
- TCPPort : 8080,8443,8880,8843
- VersionToInstall: here is the version number you want to install. Default is usually the version number of the rpm, currently 5.6.30 for smeserver-unifi-5.6.30. But you can force to install another version, if needed
You might get the following warining in logs for mongodb
WARNING: soft rlimits too low. rlimits set to 1024 processes, 4096 files. Number of processes should be at least 2048 : 0.5 times number of files
the way to fix
sed -i s/1024/2048/ /etc/security/limits.d/90-nproc.conf
Below is an overview of the current issues for this contrib:
|ID||Product||Version||Status||Summary (3 tasks)|
|11321||SME Contribs||10alpha||CONFIRMED||multiple issues|
|10704||SME Contribs||9.2||CONFIRMED||can not start with dansguardian installed because of port 8080 conflict|
|10534||SME Contribs||9.2||CONFIRMED||NFR : use the certificate associated with apache server|
Only released version in smecontrib are listed here.
- Ubuntu Desktop / Server 14.04 or later (LTS Releases, 16.04 recommended)
- Debian 7 “Wheezy” or later (LTS Releases, 8 recommended)
- macOS Mavericks 10.9 or later (10.12 recommended)
- Windows 7 or later (10 recommended)
- Windows Server 2008 or later (2016 recommended)
CPU: x86-64 Processor (Intel / AMD x64 Processors)*
RAM: 1GB for Headless Servers; 2GB for GUI*
Network: 100Mbps Wired Ethernet*
HDD: Minimum 10GB free (20GB or more preferred)*
Java: Java Runtime Environment (JRE) 8
Web Browser: Google Chrome
MongoDB: version 2.6.10. (Mongo is offered bundled, so most users will not need to acquire separately. Some distros might use a slightly older version, but v2.6.10 is the one typicallybundled in the Windows/Mac packages, and hence what we will recommend here).