{"id":293,"date":"2025-06-10T15:49:25","date_gmt":"2025-06-10T22:49:25","guid":{"rendered":"https:\/\/www.cmsws.com\/blog\/?p=293"},"modified":"2025-06-10T15:51:20","modified_gmt":"2025-06-10T22:51:20","slug":"debian-based-self-hosted-unifi-network-server","status":"publish","type":"post","link":"https:\/\/www.cmsws.com\/blog\/debian-based-self-hosted-unifi-network-server\/","title":{"rendered":"Debian based Self-Hosted UniFi Network Server"},"content":{"rendered":"\n<p>Install and setup base Debian server.  I&#8217;m using Debian 12 for this install.<\/p>\n\n\n\n<p>Install required packages before you begin with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update &amp;&amp; sudo apt-get install ca-certificates apt-transport-https<\/code><\/pre>\n\n\n\n<p>Use the following command to add a new source list:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo 'deb &#91; arch=amd64,arm64 ] https:\/\/www.ui.com\/downloads\/unifi\/debian stable ubiquiti' | sudo tee \/etc\/apt\/sources.list.d\/100-ubnt-unifi.list<\/code><\/pre>\n\n\n\n<p>Add the GPG Keys.<\/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>Install libssl1.1 (required by mongodb)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget http:\/\/ftp.debian.org\/debian\/pool\/main\/o\/openssl\/libssl1.1_1.1.1w-0+deb11u1_amd64.deb<br>sudo dpkg -i libssl1.1_1.1.1w-0+deb11u1_amd64.deb<\/code><\/pre>\n\n\n\n<p>Install the correct version of MongoDB.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"deb &#91;trusted=yes] https:\/\/repo.mongodb.org\/apt\/ubuntu bionic\/mongodb-org\/3.6 multiverse\" | sudo tee \/etc\/apt\/sources.list.d\/mongodb-org-3.6.list<br>sudo apt-get update<\/code><\/pre>\n\n\n\n<p>Install and upgrade the UniFi Network application with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update &amp;&amp; sudo apt-get install unifi -y<\/code><\/pre>\n\n\n\n<p>The UniFi Network application should now be accessible at the computer&#8217;s configured local or public IP address, by typing that IP address in a browser&#8217;s navigation bar (Chrome is recommended). If it is not launching, use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service unifi start<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Install and setup base Debian server. I&#8217;m using Debian 12 for this install. Install required packages before you begin with the following command: Use the following command to add a new source list: Add the GPG Keys. Install libssl1.1 (required by mongodb) Install the correct version of MongoDB. Install and upgrade the UniFi Network application with the following command: The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,44],"tags":[],"class_list":["post-293","post","type-post","status-publish","format-standard","hentry","category-linux","category-network-services"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/posts\/293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/comments?post=293"}],"version-history":[{"count":2,"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/posts\/293\/revisions"}],"predecessor-version":[{"id":295,"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/posts\/293\/revisions\/295"}],"wp:attachment":[{"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/media?parent=293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/categories?post=293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/tags?post=293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}