Difference between revisions of "Unifi"

From SME Server
Jump to navigationJump to search
(2 intermediate revisions by the same user not shown)
Line 33: Line 33:
  
 
First install the needed repositories.
 
First install the needed repositories.
  yum install smeserver-extrarepositories-centos-sclo-rh smeserver-extrarepositories-epel --enablerepo=smecontribs,smedev
+
  yum install smeserver-extrarepositories-centos-sclo-rh smeserver-extrarepositories-epel  
 
  signal-event yum-modify
 
  signal-event yum-modify
  
Line 60: Line 60:
 
* TCPPort : 8080,8443,8880,8843
 
* 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
 
* 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
 +
 +
=== Workaround ===
 +
You might get the following warining in logs for mongodb
 +
<syntaxhighlight lang="text">
 +
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
 +
</syntaxhighlight>
 +
 +
the way to fix
 +
<syntaxhighlight lang="bash" highlight="1" start='1' line>
 +
sed -i s/1024/2048/ /etc/security/limits.d/90-nproc.conf
 +
</syntaxhighlight>
  
 
=== Bugs ===
 
=== Bugs ===

Revision as of 22:30, 15 March 2020




unifi
NeedImage.svg
unifi logo
MaintainerUnnilennium
Urlhttps://wiki.contribs.org
Licenceproprietary
Category

Category you want

Tags wifiubntubiquity


Warning.png Warning:
Beware this is still alpah stage. Use only for testing purpose


Maintainer

Jean-Philippe Pialasse

Version

Contrib 10:
Contrib 9:
smeserver-unifi
The latest version of smeserver-unifi is available in the SME repository, click on the version number(s) for more information.


Description

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.


Installation

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.

Uninstall

yum remove smeserver-unifi  unifi

you can then remove the content of : /opt/UniFi and /opt/Unifi_bak

Configuration

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

Workaround

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

1sed -i s/1024/2048/ /etc/security/limits.d/90-nproc.conf

Bugs

Please raise bugs under the SME-Contribs section in bugzilla and select the smeserver-unifi component or use this link


Below is an overview of the current issues for this contrib:

No open bugs found.

Changelog

Only released version in smecontrib are listed here.

smeserver-unifi Changelog: SME 10 (smecontribs)
2022/12/26 Jean-Philippe Pialasse 5.6.30-5.sme
- fix execution bit again [SME: 12225]
2022/11/18 Jean-Philippe Pialasse 5.6.30-4.sme
- add execution bit [SME: 12225]
2022/10/22 Jean-Philippe Pialasse 5.6.30-3.sme
- fix [SME: 10534]

2022/08/03 Jean-Philippe Pialasse 5.6.30-2.sme
- systemd enabled [SME: 12139]
- update event [SME: 12139]
- update Ports [SME: 12139]
- use LE cert if available [SME: 10534]

- add to core backup [SME: 12027]
2018/03/09 Jean-Philipe Pialasse 5.6.30-1.sme
- initial release

Requirements

Operating System:

  • 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).

https://help.ubnt.com/hc/en-us/articles/115009221227-UniFi-Recommended-Minimum-System-Requirements

Sources