{"id":257,"date":"2025-01-12T00:14:02","date_gmt":"2025-01-11T23:14:02","guid":{"rendered":"https:\/\/www.it-4ever.de\/blog\/?p=257"},"modified":"2025-01-12T00:14:02","modified_gmt":"2025-01-11T23:14:02","slug":"unifi-controller-installation-on-linux","status":"publish","type":"post","link":"https:\/\/it-4ever.de\/blog\/unifi-controller-installation-on-linux\/","title":{"rendered":"Unifi-Controller installation on Linux"},"content":{"rendered":"\n<p>My goal was to change a Unfi-Controller from a Windows-Server to a Linux-VM installed on Proxmox. So in general it should be easy but there were some problems coming up during the installation.<\/p>\n\n\n\n<p>But first i have searched for a tutorial how to install it on Linux. There are some old tutorials that showed how to install the controller with MongoDB 3.6. The last version supports MongoDB 8 so there is a big difference.<\/p>\n\n\n\n<h2>Install MongoDB<\/h2>\n<p>After all it&#8217;s simple to install it you have only to add the repository for MondoDB to you Ubuntu installation. A tutorial is found <a href=\"https:\/\/www.mongodb.com\/docs\/manual\/tutorial\/install-mongodb-on-ubuntu\/\">here.<\/a><\/p>\n<p>In general you can use the following commands.<\/p>\n<p><code><\/code><\/p>\n<div>\n<pre><code>sudo apt-get install gnupg curl<\/code><br \/><br \/><code>curl -fsSL https:\/\/www.mongodb.org\/static\/pgp\/server-8.0.asc | \\<\/code><br \/><code>sudogpg-o\/usr\/share\/keyrings\/mongodb-server-8.0.gpg\\<\/code><br \/><code>--dearmor<\/code><br \/><br \/><code>echo \"deb [ arch=amd64,arm64 signed-by=\/usr\/share\/keyrings\/mongodb-server-8.0.gpg ] https:\/\/repo.mongodb.org\/apt\/ubuntu noble\/mongodb-org\/8.0 multiverse\" | sudo tee \/etc\/apt\/sources.list.d\/mongodb-org-8.0.list<\/code><\/pre>\n<\/div>\n<p>Thats in that case enough for the dependency that is used in the DEB file from Ubiquiti.<\/p>\n<h2>Install Unifi-Controller<\/h2>\n<p>Now you can go to the <a href=\"https:\/\/ui.com\/download\">Unifi-Website<\/a> and download the controller for Linux. This should give a DEB-File for Debian. Or you use the repository then you get updates over the package manager.<\/p>\n<div>\n<pre><code>sudo apt-get update &amp;&amp; sudo apt-get install ca-certificates apt-transport-https<\/code><br \/><br \/><code>echo 'deb [ arch=amd64,arm64 ] https:\/\/www.ui.com\/downloads\/unifi\/debian stable ubiquiti' | sudo tee \/etc\/apt\/sources.list.d\/100-ubnt-unifi.list<\/code><br \/><br \/><code>sudo apt-get update &amp;&amp; sudo apt-get install unifi -y<\/code><\/pre>\n<\/div>\n\n\n\n<p>The installation should go through and the controller is installed and working. After that you can open it with: <strong>https:\/\/[your-server-ip]:8080<\/strong><\/p>\n<h2>Problems with installation<\/h2>\n<p>I had the problem, thats why i wrote this post, that the installation hang during the &#8222;configuration&#8220; part of the apt install. After some investigation i found an error in the &#8222;\/var\/log\/syslog&#8220; that MondoDB is crashing and that is preventing the completion.<\/p>\n<p>After some longer research it&#8217;s because MongoDB can&#8217;t read the CPU from the VM. This is because the CPU was not set to &#8222;host&#8220; in the Proxmox CPU configuration.<\/p>\n<p><a href=\"https:\/\/www.it-4ever.de\/blog\/wp-content\/uploads\/2025\/01\/2025-01-12_00-10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-264\" src=\"https:\/\/www.it-4ever.de\/blog\/wp-content\/uploads\/2025\/01\/2025-01-12_00-10-300x214.png\" alt=\"\" width=\"300\" height=\"214\" srcset=\"https:\/\/it-4ever.de\/blog\/wp-content\/uploads\/2025\/01\/2025-01-12_00-10-300x214.png 300w, https:\/\/it-4ever.de\/blog\/wp-content\/uploads\/2025\/01\/2025-01-12_00-10.png 705w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>After setting to &#8222;host&#8220; the installation finished and the controller was working.<\/p>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>My goal was to change a Unfi-Controller from a Windows-Server to a Linux-VM installed on Proxmox. So in general it should be easy but there were some problems coming up during the installation. But first i have searched for a tutorial how to install it on Linux. There are some old tutorials that showed how &hellip; <a href=\"https:\/\/it-4ever.de\/blog\/unifi-controller-installation-on-linux\/\" class=\"more-link\"><span class=\"screen-reader-text\">Unifi-Controller installation on Linux<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-257","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/it-4ever.de\/blog\/wp-json\/wp\/v2\/posts\/257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it-4ever.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it-4ever.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it-4ever.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/it-4ever.de\/blog\/wp-json\/wp\/v2\/comments?post=257"}],"version-history":[{"count":7,"href":"https:\/\/it-4ever.de\/blog\/wp-json\/wp\/v2\/posts\/257\/revisions"}],"predecessor-version":[{"id":265,"href":"https:\/\/it-4ever.de\/blog\/wp-json\/wp\/v2\/posts\/257\/revisions\/265"}],"wp:attachment":[{"href":"https:\/\/it-4ever.de\/blog\/wp-json\/wp\/v2\/media?parent=257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it-4ever.de\/blog\/wp-json\/wp\/v2\/categories?post=257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it-4ever.de\/blog\/wp-json\/wp\/v2\/tags?post=257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}