Install rtl8814AU driver on ubuntu 16.04

For some reason dkms built on the old kernel rather than the new one, in terminal do

sudo dkms remove 8814au/4.3.21 -k 4.13.0-37-generic
sudo dkms install 8814au/4.3.21
Reboot and it should work

To fix this for newer kernels

sudo apt-get install gksudo
gksudo gedit /usr/src/8814au-4.3.21/dkms.conf

Change the first line from MAKE="'make'" to MAKE="'make' all KVER=${kernelver}" Save and exit gedit and it should work correctly in future kernel updates