![update unifi controller linux update unifi controller linux](https://i2.wp.com/cdn.arstechnica.net/wp-content/uploads/2015/10/portal05-980x517.png)
- #Update unifi controller linux how to#
- #Update unifi controller linux install#
- #Update unifi controller linux archive#
#Update unifi controller linux install#
If using a Red Hat distribution, such as CentOS, Fedora, or Red Hat, use the dnf or yum command to install the UniFi Controller software. You can then SSH onto your UniFi WAP with default username and password ubnt / ubnt or root / root.
![update unifi controller linux update unifi controller linux](https://1.bp.blogspot.com/-he1zca23kRE/Xj4CA3qSxeI/AAAAAAAAcfI/6Ue6eG8BwY0OtqmKcOV2QkVOIjpKBCBPQCLcBGAsYHQ/s1600/Untitled386.png)
MAC Address: F0:9F:C2:94:1E:65 (Ubiquiti Networks) If tar czf "data-$ can be used to find the IP address of your UniFi Wireless Access Point (WAP). If rsync -az /srv/unifi/data/ "data-$stamp" then If s6-svstat -o up $service_dir | grep -q false thenĮcho 'Success: The UniFi Controller was stopped'Įcho 'Error: The UniFi Controller is still running'Įcho "Backing up to /srv/backup/unifi/data-$" If s6-svstat -o up,ready $service_dir | grep -q true thenĮcho 'Warning: The UniFi Controller is not supervised' I will modify it in time, to use rc-service instead. Note: This script assumes the use of s6-svc to control unifi. Rc-update add unifi boot Simple Backup ScriptĬreate /usr/local/bin/unifi-backup using your favourite editor. Rc-service unifi start Configure the UniFi Controller Service to start on boot S6_service_path="$"Ĭhmod 755 /etc/init.d/unifi Start the UniFi Controller Service Open the script file using your favourite editor. Version=`head -1 webapps/ROOT/app-unifi/.version`Įcho "Starting UniFi Controller $version"Įxec s6-setuidgid $user java -jar lib/ace.jar startĮnsure that the run script is executable:Īdd the log/run script, using your favourite editor.Įxec s6-setuidgid $log_user s6-log -b n20 s1000000 t /var/log/unifiĮnsure that the log/run script is executable:Ĭhmod 755 /etc/unifi/run Create log User and DirectoryĬhmod 750 /var/log/unifi Create the OpenRC Service Script Ln -s /usr/bin/mongod Configure Service Management Create UniFi Service Directory and FilesĬreate an s6 service directory for UniFi.Īdd the run script, using your favourite editor.
#Update unifi controller linux archive#
The controller is written in Java, hence the Java process and it in turn, launches a dedicated instance of MongoDB to store its configuration and run-time data.Ĭhange to the parent folder within which you wish to install the UniFi Controller.ĭownload the generic unix archive of the VERSION you wish to install. The below shows a schematic process tree of how the UniFi Controller will be started and supervised by s6. Install openjdk8-jre from the community repository.Įdit /etc/apk/repositories and uncomment the appropriate community repository for your Alpine version:Īpk add s6 which is a service supervision suite, for reliably and efficiently starting, stopping and keeping services running. Feel free to adjust the steps below, replacing /srv/unifi with wherever you would prefer to install the UniFi Controller software. The choice of /srv for the UniFi Controller's root directory is based on the fact that it contains both run-time and configuration data, so installing to /usr/local, /opt or /home didn't seem apt. At the time of writing this, a native Alpine Linux package is not available.įurthermore, this guide uses the incredibly reliable and efficient s6 supervision suite to start and control the UniFi Controller.Ī summarised schematic of what will be installed on the filesystem.
#Update unifi controller linux how to#
This guide explains how to install the generic Unix UniFi Controller, as available from Ubiquity Networks.
![update unifi controller linux update unifi controller linux](https://howtohelpdesk.com/wp-content/uploads/2019/02/UniFi-firmware-upgraded-1024x297.png)