Skip to content

Instantly share code, notes, and snippets.

@TechnologistAU
Last active January 12, 2023 09:57
Show Gist options
  • Save TechnologistAU/ecce6a01ea6a5d6ac4161e20dd47089d to your computer and use it in GitHub Desktop.
Save TechnologistAU/ecce6a01ea6a5d6ac4161e20dd47089d to your computer and use it in GitHub Desktop.
mFi Installation Script for Raspberry Pi
#!/bin/bash
################################################################################
#
# This script automates the installation of the mFi controller software on the
# Raspberry Pi.
#
# http://www.technologist.site/ubnt
#
################################################################################
apt-get update && apt-get -y upgrade
apt-get -y install oracle-java7-jdk jsvc mongodb
systemctl stop mongodb
systemctl disable mongodb
wget http://dl.ubnt.com/mfi/2.1.11/mFi.unix.zip
unzip mFi.unix.zip -d /usr/lib
wget https://gist.github.com/TechnologistAU/22b0493478c899cc403f6056903422ba/raw -O /usr/lib/mFi/bin/mfi.init
chmod +x /usr/lib/mFi/bin/mfi.init
ln -fs /usr/lib/mFi/bin/mfi.init /etc/init.d/mfi
sudo update-rc.d mfi defaults
@arnold-maderthaner
Copy link

tried the script on rPI 3 but cannot access the web gui in the browser as the HTTPS connection times out - any idea what could be wrong ?

@arnold-maderthaner
Copy link

never mind - a reboot fixed it :)

@EduardoLLMM
Copy link

O mFi para de coletar dados depois de 5 dias.

O Java utiliza 100% da CPU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment