Revised instructions using a generic driver downloaded from Github. These instructions were needed for the same wireless adapter but under Xubuntu 16.04 the kernel used was a newer version meaning the manufacturer drivers wouldn’t work.
Firstly install the build headers etc
sudo apt-get install linux-headers-generic build-essential
Next thing is to download a generic package from the internet Github site:
https://github.com/gnab/rtl8812au/archive/master.zip
Unzip the file (choose “Extract here” in Archive Manager) and you will get a folder called rtl8812au-master
cd rtl8812au-master
Then build the driver
make
sudo make install
sudo modprobe 8812au
Then copy the module file to the modules folder
cp 8812au.ko /lib/modules/`uname -r
This is coming up as expected. The main problem I am having is the system seems to spend all its time trying to detect a network on the ethernet adapter and consequently seems to run into problems with getting the wireless up or else it tries to access the internet through the non existent ethernet. I am still working to debug this at the time of writing. With a router connected supplying a DHCP address on the ethernet adapter the wireless came up and worked properly.
Original instructions using the manufacturer supplied driver (for matching kernel version 15/6/16
If you have a device driver and it comes with files to build a Linux driver, you may have to do some work to get it to load the driver when Linux starts up. I had this experience recently on testing a new wireless adapter for a desktop computer. The instructions supplied with the device were basically incomplete insofar as they only got you to the command needed to load the driver for the current session. The sequence needed to get the driver to load automatically on subsequent sessions was absent.
Then we need to ensure build-essential is installed:
In testing the system it was able to hotplug this USB wireless adapter with no issues (as it should be able to with a USB) so that is a good result.