Drivers for the rtl8821cu chipset for wireless adapters (D-Link DWA-171 rev C1)
* kernel header
> cd driver
> make
> sudo insmod 8821cu.ko
> sudo make install
1. install usb-modeswitch usb-modeswitch-data
> sudo apt install usb-modeswitch usb-modeswitch-data
2. install udev
> sudo apt install udev
> cd usbswitch
> sudo make install
if insmod the module it shows error of "Required key not available", you are using a kernel which is signed Only signed module can be use in this condition.
- Create signing keys
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Descriptive name/"
- Sign the module
sudo /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der /path/to/module
- Register the keys to Secure Boot
sudo mokutil --import MOK.der
Supply a password for later use after reboot
- Reboot and follow instructions to Enroll MOK (Machine Owner Key). Here's a sample with pictures. The system will reboot one more time.
- Confirm the key is enrolled
mokutil --test-key MOK.der