12.04 & 14.04+: you can view these instructions or just do as I say.
(use these instructions when your wireless USB device [rtl8192cu] is not automatically recognized by Ubuntu)
sudo modprobe rtl8192cu
echo "2001 330D" | sudo tee /sys/bus/usb/drivers/rtl8192cu/new_id
echo "rtl8192cu" | sudo tee -a /etc/modules
Then, edit /etc/rc.local by opening the file with your favorite text editor like in this example:
sudo gedit /etc/rc.local
make sure it says . . .
echo "2001 330D" | tee /sys/bus/usb/drivers/rtl8192cu/new_id
You can use the wireless now or, alternatively, you can make sure you have all of your work saved before you type:
Your wireless driver should start up automatically.
To compile and install the proprietary Realtek 8192cu driver, run the following commands in an open terminal:
sudo apt-get update && sudo apt-get install git build-essential linux-headers-generic dkms
git clone https://github.com/dz0ny/rt8192cu.git --depth 1
sudo make dkms
For hard installation use:
sudo make install
sudo make dkms .
To enable this driver, use the command:
sudo modprobe 8192cu
Finally, update /etc/modules with this command before you reboot:
echo '8192cu' | sudo tee -a /etc/modules
Souce #1: bernaerts.dyndns.org
Source #2: github.com/dz0ny