Realtek
Getting Realtek 8192CU Chipsets Working On Ubuntu 14.04
Written by Eoin O'Dowd | 29th May, 2015
So, You may notice that your new wifi dongle dosen't work right out of the box in ubuntu, it may connect but be slow and unreliable. The problem here is the driver, Luckily for us pvaret has ported the driver to linux. Installing the driver
First plug in your wifi dongle and check if you have the right chipset for the driver were going to install: lsusb
[source: imgur.com]
Next we need to install the necessary prerequisites: sudo apt-get install git linux-headers-generic build-essential dkms
Clone this repository: git clone https://github.com/pvaret/rtl8192cu-fixes.git
Set it up as a DKMS module: sudo dkms add ./rtl8192cu-fixes
Build and install it: sudo dkms install 8192cu/1.10
Refresh the module list: sudo depmod -a
Ensure the native (and broken) kernel driver is blacklisted: sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/
Ensure you reboot and everything should work as normal.
Thanks to Sudo Zen.