{"id":144476,"date":"2023-08-28T13:58:27","date_gmt":"2023-08-28T10:58:27","guid":{"rendered":"https:\/\/computingforgeeks.com\/?p=144476"},"modified":"2025-10-24T18:55:43","modified_gmt":"2025-10-24T15:55:43","slug":"install-unifi-controller-network-application-on-ubuntu","status":"publish","type":"post","link":"https:\/\/computingforgeeks.com\/install-unifi-controller-network-application-on-ubuntu\/","title":{"rendered":"Install UniFi Controller (Network Application) on Ubuntu 20.04"},"content":{"rendered":"\n<p>In today&#8217;s article we discuss on the installation and configuration of UniFi Controller on Ubuntu 20.04 (Focal Fossa) Linux system. The UniFi Controller software is commonly referred to as UniFi Network Server in UniFi terminologies. As a Network Engineer with an experience in systems management, self-hosting a UniFi Network Server can be ideal way of cutting on the cost of hardware. It is applicable for small setup and home labs. But for corporate setup we recommend you purchase an appliance such as  <a href=\"https:\/\/amzn.to\/3sxAidd\" target=\"_blank\" rel=\"noreferrer noopener\">UniFi Dream Machine Pro<\/a>.<\/p>\n\n\n\n<p>The UniFi Network Application (formerly UniFi Controller), is a software developed by Ubiquiti Networks to provide the capability to manage multiple UniFI networks devices from a web browser. The software can be installed on Windows, macOS and Linux system. In our previous article we provided below articles.<\/p>\n\n\n<p>[ebook product=&#8221;2&#8243; theme=&#8221;purple&#8221;]<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/computingforgeeks.com\/how-to-run-unifi-controller-in-docker-container\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Run UniFi Controller in Docker Container<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/computingforgeeks.com\/install-unifi-controller-on-ubuntu-debian\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/computingforgeeks.com\/install-unifi-controller-on-ubuntu-debian\/\" rel=\"noreferrer noopener\">Install UniFi Controller on Ubuntu 18.04 \/ Debian 9<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/computingforgeeks.com\/install-unifi-network-application-on-macos\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install UniFi Network Application on macOS<\/a><\/li>\n<\/ul>\n\n\n\n<p>Before you install UniFi Network Application, ensure the following requirements are met;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A DHCP-enabled network<\/li>\n\n\n\n<li>Java Runtime Environment<\/li>\n\n\n\n<li>Linux, Mac OS X, or Microsoft Windows 7\/8 &#8211; Running controller software.<\/li>\n\n\n\n<li>Web Browser: Mozilla Firefox, Google Chrome, or Microsoft Internet Explorer 8 (or above)<\/li>\n<\/ul>\n\n\n\n<p>Software versions requirements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Java 11 \/ Java 8<\/li>\n\n\n\n<li>MongoDB <strong>&lt;=4.0<\/strong>, but <strong>&gt;=3.6<\/strong> (We&#8217;ll install MongoDB 4.0)<\/li>\n<\/ul>\n\n\n\n<p>Before we begin the installation, confirm your OS details:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">cat \/etc\/os-release<\/mark>\nNAME=\"Ubuntu\"\nVERSION=\"20.04.6 LTS (Focal Fossa)\"\nID=ubuntu\nID_LIKE=debian\nPRETTY_NAME=\"Ubuntu 20.04.6 LTS\"\nVERSION_ID=\"20.04\"\nHOME_URL=\"https:\/\/www.ubuntu.com\/\"\nSUPPORT_URL=\"https:\/\/help.ubuntu.com\/\"\nBUG_REPORT_URL=\"https:\/\/bugs.launchpad.net\/ubuntu\/\"\nPRIVACY_POLICY_URL=\"https:\/\/www.ubuntu.com\/legal\/terms-and-policies\/privacy-policy\"\nVERSION_CODENAME=focal\nUBUNTU_CODENAME=focal<\/code><\/pre>\n\n\n\n<p>Let&#8217;s update and upgrade the system before we proceed further.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update &amp;&amp; sudo apt -y full-upgrade<\/code><\/pre>\n\n\n\n<p>A reboot is recommended if required.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91; -f \/var\/run\/reboot-required ] &amp;&amp; sudo reboot -f<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">1 &#8211; Add UniFi and MongoDB APT repositories<\/h2>\n\n\n\n<p>Before we add the repositories let&#8217;s install required dependencies.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install curl gpg gnupg2 software-properties-common apt-transport-https lsb-release ca-certificates<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Add MongoDB APT repository<\/h3>\n\n\n\n<p>Start by adding GPG key to your system keyring. As stated earlier we are installing MongoDB Server 4.0.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>curl -fsSL https:\/\/pgp.mongodb.com\/server-4.0.asc | sudo gpg --dearmor -o \/usr\/share\/keyrings\/mongodb-server-4.0.gpg<\/code><\/pre>\n\n\n\n<p>Next add the repository containing <a href=\"https:\/\/computingforgeeks.com\/how-to-install-mongodb-on-centos-rhel-7\/\">MongoDB 4<\/a>.0 packages. This will be based on Ubuntu Bionic Beaver.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"deb https:\/\/repo.mongodb.org\/apt\/ubuntu bionic\/mongodb-org\/4.0 multiverse\" | sudo tee \/etc\/apt\/sources.list.d\/mongodb-org-4.0.list<\/code><\/pre>\n\n\n\n<p>Update APT package index.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">sudo apt update<\/mark>\nHit:1 https:\/\/mirror.hetzner.com\/ubuntu\/packages focal InRelease\nHit:2 https:\/\/mirror.hetzner.com\/ubuntu\/packages focal-updates InRelease\nHit:3 https:\/\/mirror.hetzner.com\/ubuntu\/packages focal-backports InRelease\nHit:4 https:\/\/mirror.hetzner.com\/ubuntu\/security focal-security InRelease\nIgn:6 https:\/\/repo.mongodb.org\/apt\/ubuntu bionic\/mongodb-org\/4.0 InRelease\nHit:5 https:\/\/dl.ui.com\/unifi\/debian stable InRelease\nGet:7 https:\/\/repo.mongodb.org\/apt\/ubuntu bionic\/mongodb-org\/4.0 Release &#91;2,989 B]\nGet:8 https:\/\/repo.mongodb.org\/apt\/ubuntu bionic\/mongodb-org\/4.0 Release.gpg &#91;801 B]\nIgn:8 https:\/\/repo.mongodb.org\/apt\/ubuntu bionic\/mongodb-org\/4.0 Release.gpg\nReading package lists... Done<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Add UniFi APT repository<\/h3>\n\n\n\n<p>Import repository GPG key used in signing UniFi APT packages.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo wget -O \/etc\/apt\/trusted.gpg.d\/unifi-repo.gpg https:\/\/dl.ui.com\/unifi\/unifi-repo.gpg <\/code><\/pre>\n\n\n\n<p>Add UniFi APT repository by executing commands below in your terminal.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo 'deb https:\/\/www.ui.com\/downloads\/unifi\/debian stable ubiquiti' | sudo tee \/etc\/apt\/sources.list.d\/ubnt-unifi.list<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2 &#8211; Disable Install of Java 17<\/h2>\n\n\n\n<p>Restrict Ubuntu system from automatically installing Java 17.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-mark hold openjdk-17-*<\/code><\/pre>\n\n\n\n<p>UniFi installation will pull <a href=\"https:\/\/computingforgeeks.com\/how-to-install-java-11-on-centos-fedora\/\">Java 11<\/a> as default.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3 &#8211; Install UniFi Network Application on Ubuntu 20.04<\/h2>\n\n\n\n<p>Now that we&#8217;ve added UniFi and MongoDB repository, let&#8217;s begin the installation of UniFi Network Application (UniFi Controller) on Ubuntu 20.04.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install unifi<\/code><\/pre>\n\n\n\n<p>Accept installation prompt as requested.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Reading package lists... Done\nBuilding dependency tree\nReading state information... Done\nThe following additional packages will be installed:\n  binutils binutils-common binutils-x86-64-linux-gnu ca-certificates-java fontconfig-config fonts-dejavu-core java-common libavahi-client3 libavahi-common-data libavahi-common3 libbinutils\n  libboost-filesystem1.71.0 libboost-iostreams1.71.0 libboost-program-options1.71.0 libctf-nobfd0 libctf0 libcups2 libfontconfig1 libgoogle-perftools4 libgraphite2-3 libharfbuzz0b libjpeg-turbo8\n  libjpeg8 liblcms2-2 libpcrecpp0v5 libpcsclite1 libsnappy1v5 libtcmalloc-minimal4 libyaml-cpp0.6 mongo-tools mongodb-clients mongodb-server mongodb-server-core openjdk-11-jre-headless\nSuggested packages:\n  binutils-doc default-jre cups-common liblcms2-utils pcscd libnss-mdns fonts-dejavu-extra fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic\nThe following NEW packages will be installed:\n  binutils binutils-common binutils-x86-64-linux-gnu ca-certificates-java fontconfig-config fonts-dejavu-core java-common libavahi-client3 libavahi-common-data libavahi-common3 libbinutils\n  libboost-filesystem1.71.0 libboost-iostreams1.71.0 libboost-program-options1.71.0 libctf-nobfd0 libctf0 libcups2 libfontconfig1 libgoogle-perftools4 libgraphite2-3 libharfbuzz0b libjpeg-turbo8\n  libjpeg8 liblcms2-2 libpcrecpp0v5 libpcsclite1 libsnappy1v5 libtcmalloc-minimal4 libyaml-cpp0.6 mongo-tools mongodb-clients mongodb-server mongodb-server-core openjdk-11-jre-headless unifi\n0 upgraded, 35 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 244 MB of archives.\nAfter this operation, 678 MB of additional disk space will be used.\nDo you want to continue? &#91;Y\/n] <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">y<\/mark><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Manually installing  UniFi Network Application on Ubuntu 20.04<\/h3>\n\n\n\n<p>If you prefer manual installation method, download a <strong>.deb <\/strong>package by visiting&nbsp;<a href=\"https:\/\/www.ui.com\/download\/unifi\/\" target=\"_blank\" rel=\"noreferrer noopener\">download the UniFi Controller software<\/a>&nbsp;from the Ubiquiti Networks website.<\/p>\n\n\n\n<p>Choose latest available release for Linux and Click on Download.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"369\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-01-1024x369.png\" alt=\"\" class=\"wp-image-144479\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-01-1024x369.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-01-300x108.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-01-768x277.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-01-1536x554.png 1536w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-01-2048x739.png 2048w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-01-696x251.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-01-1068x385.png 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-01-1165x420.png 1165w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Choose a directory where to save the file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"168\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-02-1024x168.png\" alt=\"\" class=\"wp-image-144480\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-02-1024x168.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-02-300x49.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-02-768x126.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-02-1536x251.png 1536w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-02-696x114.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-02-1068x175.png 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/UniFi-Controller-Ubuntu-02.png 1638w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>If downloading the file with <code>wget<\/code>, use syntax:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/dl.ui.com\/unifi<em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">\/&lt;VERSION&gt;<\/mark><\/em>\/unifi_sysvinit_all.deb<\/code><\/pre>\n\n\n\n<p>Installation of <strong>.deb <\/strong>package can be done with <code>apt<\/code> while passing dowloaded file path as an argument.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">sudo apt install .\/unifi_sysvinit_all.deb<\/mark>\nReading package lists... Done\nBuilding dependency tree\nReading state information... Done\nNote, selecting 'unifi' instead of '.\/unifi_sysvinit_all.deb'\nThe following additional packages will be installed:\n  binutils binutils-common binutils-x86-64-linux-gnu ca-certificates-java fontconfig-config fonts-dejavu-core java-common jsvc libasound2 libasound2-data libavahi-client3 libavahi-common-data\n  libavahi-common3 libbinutils libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-program-options1.65.1 libboost-system1.65.1 libcommons-daemon-java libcups2 libfontconfig1\n  libgoogle-perftools4 libgraphite2-3 libharfbuzz0b libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 libnss3 libpcrecpp0v5 libpcsclite1 libsnappy1v5 libstemmer0d libtcmalloc-minimal4 libyaml-cpp0.5v5\n  mongo-tools mongodb-clients mongodb-server mongodb-server-core openjdk-17-jre-headless\nSuggested packages:\n  binutils-doc default-jre libasound2-plugins alsa-utils java-virtual-machine cups-common liblcms2-utils pcscd libnss-mdns fonts-dejavu-extra fonts-ipafont-gothic fonts-ipafont-mincho\n  fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic\nThe following NEW packages will be installed:\n  binutils binutils-common binutils-x86-64-linux-gnu ca-certificates-java fontconfig-config fonts-dejavu-core java-common jsvc libasound2 libasound2-data libavahi-client3 libavahi-common-data\n  libavahi-common3 libbinutils libboost-filesystem1.65.1 libboost-iostreams1.65.1 libboost-program-options1.65.1 libboost-system1.65.1 libcommons-daemon-java libcups2 libfontconfig1\n  libgoogle-perftools4 libgraphite2-3 libharfbuzz0b libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 libnss3 libpcrecpp0v5 libpcsclite1 libsnappy1v5 libstemmer0d libtcmalloc-minimal4 libyaml-cpp0.5v5\n  mongo-tools mongodb-clients mongodb-server mongodb-server-core openjdk-17-jre-headless unifi\n0 upgraded, 41 newly installed, 0 to remove and 57 not upgraded.\nNeed to get 280 MB of archives.\nAfter this operation, 724 MB of additional disk space will be used.\nDo you want to continue? &#91;Y\/n] <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">y<\/mark><\/code><\/pre>\n\n\n\n<p>A successful installation should have an output similar to below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Note, selecting 'unifi' instead of '.\/unifi_sysvinit_all.deb'\nunifi is already the newest version (7.4.162-1).\n0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">4 &#8211; Create account on UniFi cloud<\/h2>\n\n\n\n<p>If you don&#8217;t have an existing UniFi Cloud account, create one on&nbsp;<em><a href=\"https:\/\/unifi.ui.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">unifi.ui.com<\/a><\/em>. Login or click on &#8220;<strong><em>Create one<\/em><\/strong>&#8220;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"773\" height=\"1024\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-01-773x1024.webp\" alt=\"\" class=\"wp-image-144482\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-01-773x1024.webp 773w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-01-227x300.webp 227w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-01-768x1017.webp 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-01-696x922.webp 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-01-317x420.webp 317w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-01.webp 826w\" sizes=\"auto, (max-width: 773px) 100vw, 773px\" \/><\/figure>\n\n\n\n<p>Input your details to create new account. Once done a confirmation email will be send to your email address provided at time of creating account.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"816\" height=\"680\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-02.webp\" alt=\"\" class=\"wp-image-144483\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-02.webp 816w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-02-300x250.webp 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-02-768x640.webp 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-02-696x580.webp 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-02-504x420.webp 504w\" sizes=\"auto, (max-width: 816px) 100vw, 816px\" \/><\/figure>\n\n\n\n<p>Verify an email to activate UniFi account.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"518\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-03-1024x518.webp\" alt=\"\" class=\"wp-image-144484\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-03-1024x518.webp 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-03-300x152.webp 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-03-768x389.webp 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-03-696x352.webp 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-03-1068x541.webp 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-03-830x420.webp 830w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/create-unifi-account-03.webp 1288w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">5 &#8211; Access UniFi Network Application on Browser<\/h2>\n\n\n\n<p>Restart unifi service using systemctl.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart unifi.service<\/code><\/pre>\n\n\n\n<p>Check to confirm if the service is status.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">systemctl status unifi.service<\/mark>\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">\u25cf<\/mark> unifi.service - unifi\n     Loaded: loaded (\/lib\/systemd\/system\/unifi.service; enabled; vendor preset: enabled)\n     Active: <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">active (running)<\/mark> since Mon 2023-08-28 09:50:20 UTC; 51s ago\n    Process: 11195 ExecStartPre=\/usr\/sbin\/unifi-network-service-helper init (code=exited, status=0\/SUCCESS)\n    Process: 11254 ExecStartPre=\/usr\/sbin\/unifi-network-service-helper init-uos (code=exited, status=0\/SUCCESS)\n    Process: 11264 ExecStartPost=\/usr\/sbin\/unifi-network-service-helper healthcheck (code=exited, status=0\/SUCCESS)\n   Main PID: 11263 (java)\n      Tasks: 88 (limit: 4541)\n     Memory: 772.7M\n     CGroup: \/system.slice\/unifi.service\n             \u251c\u250011263 \/usr\/bin\/java -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Dapple.awt.UIElement=true -Dunifi.core.enabled=false -Dunifi.mongodb.service.enabled=false -Xmx1024M -XX:+UseParal&gt;\n             \u2514\u250011323 bin\/mongod --dbpath \/usr\/lib\/unifi\/data\/db --port 27117 --unixSocketPrefix \/usr\/lib\/unifi\/run --logRotate reopen --logappend --logpath \/usr\/lib\/unifi\/logs\/mongod.log --pidfilep&gt;\n\nAug 28 09:49:50 focal unifi&#91;11253]: init complete...\nAug 28 09:49:50 focal unifi-network-service-helper&#91;11253]: &lt;13&gt;Aug 28 09:49:50 unifi: init complete...\nAug 28 09:49:50 focal unifi&#91;11273]: health-check max retry count: 100\nAug 28 09:49:50 focal unifi-network-service-helper&#91;11273]: &lt;13&gt;Aug 28 09:49:50 unifi: health-check max retry count: 100\nAug 28 09:50:20 focal systemd&#91;1]: Started unifi.<\/code><\/pre>\n\n\n\n<p>Services should be available on port <strong>8080 <\/strong>and port <strong>8443.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>jmutai@unifi-controller:~$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">ss -tunelp | egrep '8080|8443'<\/mark>\ntcp   LISTEN  0       100                           *:8443               *:*     uid:112 ino:47897 sk:a v6only:0 &lt;-&gt;\ntcp   LISTEN  0       100                           *:8080               *:*     uid:112 ino:47891 sk:e v6only:0 &lt;-&gt;<\/code><\/pre>\n\n\n\n<p>UniFi Network Application main log files<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\/usr\/lib\/unifi\/logs\/server.log<\/li>\n\n\n\n<li>\/usr\/lib\/unifi\/logs\/mongod.log<\/li>\n<\/ul>\n\n\n\n<p>Access UniFi Network Application on a web browser using the server IP address an port <strong>8443.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;172.20.30.20:8443\/<\/code><\/pre>\n\n\n\n<p>You&#8217;ll get SSL warnings while trying to access the portal. Ignore and proceed to setup.<\/p>\n\n\n\n<p>Provide a name for your Network application.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"475\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-01-1024x475.webp\" alt=\"\" class=\"wp-image-144486\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-01-1024x475.webp 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-01-300x139.webp 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-01-768x357.webp 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-01-696x323.webp 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-01-1068x496.webp 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-01-905x420.webp 905w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-01.webp 1486w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Sign in with the Ubiquiti account you created earlier.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"616\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-02-1024x616.webp\" alt=\"\" class=\"wp-image-144487\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-02-1024x616.webp 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-02-300x181.webp 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-02-768x462.webp 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-02-696x419.webp 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-02-1068x643.webp 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-02-698x420.webp 698w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-02.webp 1396w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><a href=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2022\/06\/configure-unifi-application-02.png\"><\/a><\/p>\n\n\n\n<p>Consider enabling automatic backup of your network configurations.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"429\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-04-1024x429.webp\" alt=\"\" class=\"wp-image-144488\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-04-1024x429.webp 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-04-300x126.webp 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-04-768x322.webp 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-04-1536x643.webp 1536w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-04-696x292.webp 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-04-1068x447.webp 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-04-1003x420.webp 1003w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-04.webp 1614w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>For Ubiquiti devices on the same network as the controller, they&#8217;ll be discovered automatically. Choose the once you\u2019ll like to configure.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"427\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-05-1024x427.webp\" alt=\"\" class=\"wp-image-144489\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-05-1024x427.webp 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-05-300x125.webp 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-05-768x320.webp 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-05-1536x640.webp 1536w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-05-696x290.webp 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-05-1068x445.webp 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-05-1008x420.webp 1008w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-05.webp 1738w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Define your first WiFi network if this is a new configuration of UniFi network.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"567\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-06-1024x567.webp\" alt=\"\" class=\"wp-image-144490\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-06-1024x567.webp 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-06-300x166.webp 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-06-768x425.webp 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-06-696x385.webp 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-06-1068x591.webp 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-06-759x420.webp 759w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-06.webp 1514w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>When done review your configurations to complete the installation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"661\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-07-1024x661.webp\" alt=\"\" class=\"wp-image-144491\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-07-1024x661.webp 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-07-300x194.webp 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-07-768x496.webp 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-07-696x449.webp 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-07-1068x689.webp 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-07-651x420.webp 651w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-07.webp 1246w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Installation should finalize in few seconds.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"616\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-08-1024x616.webp\" alt=\"\" class=\"wp-image-144492\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-08-1024x616.webp 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-08-300x180.webp 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-08-768x462.webp 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-08-1536x924.webp 1536w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-08-696x419.webp 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-08-1068x642.webp 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-08-698x420.webp 698w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-08.webp 1696w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You&#8217;ll be presented with an intuitive interface where most actions can be performed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"212\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-09-1024x212.webp\" alt=\"\" class=\"wp-image-144493\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-09-1024x212.webp 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-09-300x62.webp 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-09-768x159.webp 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-09-1536x318.webp 1536w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-09-696x144.webp 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-09-1068x221.webp 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-09-2029x420.webp 2029w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/configure-unifi-application-09.webp 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Pointing UniFi Devices to existing UniFi Controller<\/h3>\n\n\n\n<p>If you new installation is intended to replace an old Controller, login to UniFi devices and set inform address to the new server address and port. See example below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set-inform http:\/\/<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">172.20.30.20<\/mark>:<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">8080<\/mark>\/inform<\/code><\/pre>\n\n\n\n<p>Give it sometime and status should reflect the recent update we populated.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>US-16-150W-US.6.2.14# <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">info<\/mark>\n\nModel:       US-16-150W\nVersion:     6.2.14.13855\nMAC Address: 98:8a:20:fd:ea:94\nIP Address:  192.168.1.116\nHostname:    US-16-150W\nUptime:      992330 seconds\n\nStatus:      Connected (<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">http:\/\/172.20.30.20:8080\/inform<\/mark>)<\/code><\/pre>\n\n\n\n<p>Visit <a href=\"https:\/\/help.ui.com\/hc\/en-us\/categories\/6583256751383-UniFi\" data-type=\"link\" data-id=\"https:\/\/help.ui.com\/hc\/en-us\/categories\/6583256751383-UniFi\" target=\"_blank\" rel=\"noreferrer noopener\">UniFi documentation pages<\/a> to learn more about using the software to manage your network devices. In future we&#8217;ll do more articles that cover Ubiquiti UniFi devices.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In today&#8217;s article we discuss on the installation and configuration of UniFi Controller on Ubuntu 20.04 (Focal Fossa) Linux system. The UniFi Controller software is commonly referred to as UniFi Network Server in UniFi terminologies. As a Network Engineer with an experience in systems management, self-hosting a UniFi Network Server can be ideal way of &#8230; <a title=\"Install UniFi Controller (Network Application) on Ubuntu 20.04\" class=\"read-more\" href=\"https:\/\/computingforgeeks.com\/install-unifi-controller-network-application-on-ubuntu\/\" aria-label=\"Read more about Install UniFi Controller (Network Application) on Ubuntu 20.04\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":144492,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[299,50,55,832,81],"tags":[37821],"class_list":["post-144476","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-linux-tutorials","category-networking","category-tech","category-ubuntu","tag-unifi-controller"],"_links":{"self":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/144476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/comments?post=144476"}],"version-history":[{"count":1,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/144476\/revisions"}],"predecessor-version":[{"id":160781,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/144476\/revisions\/160781"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media\/144492"}],"wp:attachment":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media?parent=144476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/categories?post=144476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/tags?post=144476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}