Before build this driver make sure make, gcc, linux-header and git have been installed.
Step 1: Clone brektrou repository
mkdir -p ~/build cd ~/build git clone https://github.com/brektrou/rtl8821CU.git
Step 2: Build and install
cd ~/build/rtl8821CU make sudo make install
Step 3: Check installed driver
If you successfully install the driver, the driver is installed on /lib/modules//kernel/drivers/net/wireless/realtek/rtl8821cu. Check the driver with the ls command:
ls /lib/modules/$(uname -r)/kernel/drivers/net/wireless/realtek/rtl8821cu
Make sure 8821cu.ko file present on that directory.