sudo apt full-upgrade
When prompted type in the following to continue the upgrade
Yes, do as I say!
You may need to remove libsnmp-base if you have package issues.
sudo apt-get remove libsnmp-base
sudo apt full-upgrade
When prompted type in the following to continue the upgrade
Yes, do as I say!
You may need to remove libsnmp-base if you have package issues.
sudo apt-get remove libsnmp-base
Connect to Router over SSH
ssh admin@192.168.88.1
Check and install latest version of RouterOS. Will reboot the router. Need to hit Y to confirm upgrade.
system package update install
Upgrade routerboard firmware. Need to hit Y to confirm.
system routerboard upgrade
system reboot
Had an issue trying to recover from a failed upgrade. Apt would complain about dependencies, suggested running apt-get install -f.
Running apt-get install -f would still fail. It showed a conflict with the systemd1.service, ended up renaming the file with the following command
sudo mv /usr/share/dbus-1/system-service/org.freedesktop.systemd1.service{,bak}
and reran
sudo apt-get install -f
after that I was able to rerun the upgrade and finish
sudo apt-get upgrade
Easiest way is to use the Network Manager nmtui tool
nmtui
It gives you a “command line GUI” to search and select your preferred WiFi network.
Alternate way is to use the iw tools.
Scan for available WiFi networks
iwlist scan
Connect with iwconfig, replace WiFiName with your WiFi name. Note this only works with open networks.
iwconfig wlan0 essid WiFiName
You’ll need to get an address now, so run
dhclient
Check if your DNS is working. If not, as a “hack” manually add it to /etc/resolv.conf and restart the networking service.
sudo echo "nameserver 8.8.8.8" >> /etc/resolv.conf sudo service networking restart
Your not supposed to manually put the nameservers in resolv.conf. But it works in a pinch.
Upgrading the firmware via the command line is super easy. Basic steps are
ubntbox fwupdate.real -m fwupdate.bin
There are a couple of ways to get the firmware uploaded to the radio
ssh into the radio. Change username and ip address as needed.
ssh ubnt@192.168.1.20
cd to the /tmp directory
cd /tmp
Find the firmware file on Ubiquiti’s website, accept the terms, copy the link and paste the link in the terminal after wget. Replace the below link with the appropriate firmware link.
wget https://dl.ubnt.com/firmwares/XC-fw/v8.4.2/WA.v8.4.2.35930.171017.1722.bin
If you run into issues with wget, try using curl.
curl -k -o fwupdate.bin -L https://ui.com/downloads/firmwares/XC-fw/v8.7.13/WA.v8.7.13.47729.240606.1144.bin
Here is what the options mean:
-k mean insecure, which allows us to download via https. There is a certificate error if not used.
-o fwupdate.bin, saves the output file as fwupdate.bin
-L means follow redirects
Rename firmware
mv *.bin fwupdate.bin
Start the upgrade
ubntbox fwupdate.real -m fwupdate.bin
The radio will now upgrade and reboot
Another way to upgrade a radios firmware from the command line is to use the UBNTMOD tool. More info on the UBNTMOD script is available here.
Make sure you have the firmware downloaded to your computer and run ubntmod.sh with the “-U” upgrade option.
Example,
bob@localhost:~$ ./ubntmod.sh -i 192.168.1.20 -U WA.v8.4.2.35930.171017.1722.bin