How to get WiFi to work after installing Ubuntu or Lubuntu on Macbook? - eviltoast

This one has bitten me every time I have installed either Ubuntu or Lubuntu on a Mac. This post is now the one I refer to each time should I forget the three steps it takes to resolve this problem. Depending on your situation, you may only need two terminal commands and a reboot.