![unifi controller on raspberry pi unifi controller on raspberry pi](https://fonsimo.com/wp-content/uploads/2020/03/INSTALAR-UNIFI-CONTROLLER-EN-UNA-RASPBERRY-PI-1024x597.png)
Type this at the command prompt: sudo nano /etc/nfĪnd then scroll to the bottom of the script and add the following lines: interface eth0 To do it, edit the file /etc/nf as follows: Now, I recommend setting your IP of your Raspberry Pi static.
UNIFI CONTROLLER ON RASPBERRY PI PASSWORD
The default username is “pi” and the password is “raspberry” Then, using Putty, enter the IP address of the Raspberry and login. No need to break out the HDMI cable, keyboard, and mouse.Īfter you connect your Raspberry Pi to your network, find the IP address of your Raspberry Pi with an IP Scanner, like Advanced IP scanner. This will allow you to SSH into your device and do a headless setup.
UNIFI CONTROLLER ON RASPBERRY PI DOWNLOAD
PuTTY – For using SSH to log in and configure your Raspberryįirst, download the Rasbian Image – I’m choosing the “LITE” version since I won’t need to login to a UI as it is solely going to be a UniFi controller.Īfter you download the image, put the image on your MicroSD card with Rufus or WinDisk32Imager:Īfter that, create a file on the root of your MicroSD card called “ssh” without any extensions.Raspbian – The Debian Distro for Raspberry Pi.Here are the tools you will need to create a UniFi Controller with a Raspberry Pi: This is a good alternative to using the UniFi cloud key, especially if you have a spare Raspberry Pi laying around. You eventually want to restart the unifi controller using service unifi restart.This guide will walk you through the steps to setup your Raspberry Pi into a UniFi Controller. Change password of existing user db.admin.update( Make sure to replace variables before executing commands. If the result is blank or you don't remember your password, there's two ways. To do so, execute the following command in the mongo cli: db.admin.find()
![unifi controller on raspberry pi unifi controller on raspberry pi](https://www.abctech.cz/raspberry-pi-3b-unifi-controller-bila_i38735.jpg)
You want to check if admins are still in the database. It is very likely that you got here because of power/data loss. It should show a list of collections, e.g. When connected to mongo, execute the following commands to switch the database and verify the installation use ace To connect to it, use the mongo cli tool. Connect to mongodbīy default unifi comes with mongodb running on port 27117. In my case it's running on a raspberry pi. SSH to the server running the unifi controller. It is Ch4ngeM3VeryQu!ck: $6$9Ter1EZ9$4RCTnLfeDJsdAQ16M5d1d5Ztg2CE1J2IDlbAPSUcqYOoxjEEcpMQag41dtCQv2cJ.n9kvlx46hNT78dngJBVt0 I have generated a dummy password for you if you want to leave this step out. Use sha512 / crypt(3) / $6$ with the any salt you like (I used 9Ter1EZ9$lSt6 in the example below, but it really doesn't matter). However I managed to write this "tutorial" for anyone to not run into the same trap. In case you thought a mongodb backup would be sufficient, you may have fucked up already, just like me. Warningĭo not uninstall unifi controller - most of the data is not stored in mongodb.
![unifi controller on raspberry pi unifi controller on raspberry pi](https://www.coded-with-love.com/blog/raspberry-pi-with-ssd/images/cover-raspi3-ssd-evo_hu891e4163ebe06567f5c64f5001301545_1946053_800x0_resize_q85_box.jpg)
When you are unable to login to the unifi controller or forgot admin password, you can restore access using SSH and manipulating mongodb directly.