Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


install_unifi_on_ubuntu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
install_unifi_on_ubuntu [2018/07/15 09:03] juckinsinstall_unifi_on_ubuntu [2018/07/15 09:07] juckins
Line 14: Line 14:
 $ mkdir downloads $ mkdir downloads
 </code> </code>
-Download the latest controller software from [[https://www.ubnt.com/download/unifi/|ubnt.com]].  It will be named something like "unifi_sysvinit_all.deb".+Download the latest controller software from [[https://www.ubnt.com/download/unifi/|ubnt.com]].  It will be named something like "unifi_sysvinit_all.deb":
 <code> <code>
 apt-get install ./unifi_sysvinit_all.deb apt-get install ./unifi_sysvinit_all.deb
 </code> </code>
  
-Fix /usr/bin/mongod noted in [[https://community.ubnt.com/t5/UniFi-Wireless/Unifi-controller-on-Ubuntu-18-04/td-p/2331657|community.ubnt.com]]+Fix /usr/bin/mongod noted in [[https://community.ubnt.com/t5/UniFi-Wireless/Unifi-controller-on-Ubuntu-18-04/td-p/2331657|community.ubnt.com]]
 +<code> 
 +$ cd /usr/bin 
 +$ sudo -s 
 +$ mv mongod mongod.bin 
 +</code> 
 +Replace mongod with the following: 
 +<code> 
 +#!/bin/bash 
 +cleaned_args=$(echo $* | sed -e 's/--nohttpinterface//'
 +exec /usr/bin/mongod.bin ${cleaned_args} 
 +</code> 
 +Fix permissions: 
 +<code> 
 +$ chmod +x mongod 
 +</code> 
 +Restart services: 
 +<code> 
 +$ systemctl restart unifi 
 +$ systemctl status unifi 
 +</code> 
 +If desired, cat /var/log/unifi/server.log and mongod.log to ensure no errors are reported. 
 + 
 +Now you may use the VM or another machine to access the webpage on the virtual machine's IP (https://VM_IP_ADDRESS:8443/login)
  
install_unifi_on_ubuntu.txt · Last modified: 2023/01/09 21:17 by juckins