Plug your USB-wifi-adapter into your PC If wifi can be detected, congratulations. If not, maybe you need to switch your device usb mode by the following steps in terminal:
find your usb-wifi-adapter device ID, like "0bda:1a2b", by type: lsusb
switch the mode by type: (the device ID must be yours.) sudo usb_modeswitch -KW -v 0bda -p 1a2b It should work.
Realtek RTL8811CU/RTL8821CU USB wifi adapter driver version 5.4.1 for Linux 4.4.x up to 5.1.x
Before build this driver make sure make, gcc, linux-header and git have been installed.
First, clone this repositorymkdir -p ~/buildcd ~/buildgit clone https://github.com/brektrou/rtl8821CU.gitBuild and install with DKMS
DKMS is a system which will automatically recompile and install a kernel module when a new kernel gets installed or updated. To make use of DKMS, install the dkms package.
To make use of the DKMS feature with this project, just run:
./dkms-install.sh
If you later on want to remove it, run:
./dkms-remove.shBuild and install without DKMS
Use following commands:
cd ~/build/rtl8821CUmakesudo make install
If you later on want to remove it, do the following:
cd ~/build/rtl8821CUsudo make uninstallChecking 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