Last active
August 18, 2023 01:02
-
-
Save zerog2k/1ea5ab2223c4d92d70f8e95574b8837b to your computer and use it in GitHub Desktop.
notes for repurposing Ubiquiti CRM Point to "Cloud Key", by installing unifi controller, new method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### new procedure for CRMPoint -> Unifi Network Controller conversion | |
## install latest crmpoint fw per: | |
## https://community.ui.com/questions/Installing-airControl-on-CRM-Point/a4f1fdcd-114a-4c06-a842-e56eff486570 | |
# login via ssh | |
# change root/ubnt password | |
passwd | |
# stop and disable old services | |
for SERVICE in aircontrol postgresql infctld; do | |
systemctl stop $SERVICE | |
systemctl disable $SERVICE | |
done | |
apt update | |
apt install ca-certificates | |
cat > /etc/apt/sources.list <<EOF | |
deb [check-valid-until=no] http://deb.debian.org/debian/ jessie main contrib non-free | |
deb [check-valid-until=no] http://www.ubnt.com/downloads/unifi/debian cloudkey-stable ubiquiti | |
EOF | |
# install unifi network controller | |
apt update | |
apt install unifi # currently will get latest 6.2.x w/ dependencies | |
# fix leds | |
mkdir /etc/systemd/system/unifi.service.d | |
cat <<EOF >/etc/systemd/system/unifi.service.d/leds.conf | |
[Service] | |
ExecStartPost=/bin/sh -c '/bin/echo 0 > /sys/class/leds/white/brightness; /bin/echo 255 > /sys/class/leds/blue/brightness' | |
EOF | |
# cleanup aircontrol/postgres? | |
apt remove aircontrol postgres\* | |
reboot | |
# after device reboots, and light turns blue (a few minutes), you can setup at https://{deviceip}:8443 | |
## note that you can always restore to factory defaults of CRM Point with: | |
# ubnt-systool reset2defaults | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks @1ronlord
I was able to update my crm-cloudkey from network controller 6.2.26 to 7.2.97 (which is probably the end of the line for this old device, which is trying to hang in there ;)
I did find an issue with the led permissions. I suspect network controller changed to using
unifi
user, which doesnt have permissions to write to/sys/class/leds/{blue,white}/brightness
so I executed this:
chmod o+rw /sys/class/leds/{blue,white}/brightness
(and also added this to /etc/rc.local to persist reboots)