Install DWA-131 WiFi dongle driver under Ubuntu 14.04.4
Solution 1:
Please open a terminal and, with a temporary working internet connection, do:
sudo apt-get install git
git clone https://github.com/Mange/rtl8192eu-linux-driver.git
cd rtl8192eu-linux-driver
make
sudo make install
sudo modprobe 8192eu
Your wireless should now be working.
You will have installed the driver for your current kernel version only. After Update Manager installs a later kernel version, also known as linux-image, after the requested reboot, you must recompile:
cd rtl8192eu-linux-driver
make clean
make
sudo make install
sudo modprobe 8192eu
Please retain the file and these instructions for that time.
Solution 2:
I added this driver to my ppa. It builds for kernels 4.2.
If you install it from the PPA, then you will not have to re-install it after kernel updates.
The driver can be installed by running
sudo add-apt-repository ppa:hanipouspilot/rtlwifi
sudo apt-get update
sudo apt-get install rtl8192eu-dkms
If you installed a driver from github, you need to uninstall it first.