Installing Cucumber on Ubiquiti UniFi AC
This guide covers installing Cucumber on compatible UniFi APs including:
- Ubiquiti UniFi AC Lite / Ubiquiti UniFi AC Long Range
- Ubiquiti UniFi AC Pro
Note: The UniFi ACs have no TFTP upgrade possible yet. This means you will need to use SSH.
If you don't know how to use this, we would advise not installing.
You will need the following:
- A computer with ethernet ports
- A compatible UniFi AC access point
- 2 x Ethernet cables
- Access to the terminal on your PC
- A download of the Cucumber firmware (Follow this guide to download the firmware)
To start off, SCP the firmware to the /tmp/ with the following command, making sure to replace firmware.bin with the name of the firmware you downloaded from your CT dashboard :
scp firmware.bin firstname.lastname@example.org:/tmp/
Now SSH into your AP by running the following, replacing ubnt and 192.168.1.20 with the username and IP address of your AP. The default username and password are ubnt and ubnt. If the credetials don't work, have a look here
As the UAP AC has two partitions, we need to make sure it will always boot from the first one.
mtd erase /dev/mtd4
after which you need to type
echo -n -e '\x00\x00\x00\x00\xa3\x4d\xe8\x2b' > /dev/mtd4
The previous two commands should look something similar to this
Next, run the following command, making sure to replace firmware.bin with the name of the firmware:
mtd -r write /tmp/FIRMWARE-IMAGE.bin kernel0
Your terminal should look similar to the above.