How to make a d-link dwa-123 wireless n 150 work on ubuntu 13.10 (saucy)

I recently installed saucy as part of a dualboot setup. My laptop's internal network adaptor is shot and so I have to use an external D-Link DWA-123. I have the installation disc and everything and it works perfectly on windows. However, I cannot get it to work on Ubuntu. How can I go about doing so?

My lsusb output:

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 003: ID 0cf3:311d Atheros Communications, Inc.
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0c45:6458 Microdia
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 002: ID 0955:7100 NVidia Corp. Notion Ink Adam
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 2001:3310 D-Link Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Solution 1:

Type the following code in the console:

sudo apt-get install git build-essential
git clone https://github.com/lwfinger/rtl8188eu.git
cd rtl8188eu
make all
sudo make install

Then remove previously manual installed modules: eg:- sudo modprobe -r rtl8192cu

sudo modprobe 8188eu

Unplug , re-plug you should get going.

Tested on Dlink DWA-123 rev D1
Speedtest results : http://www.speedtest.net/my-result/3477686124