Tricky Tips Debian: Installing Realtek RTL8811CU/RTL8821CU (Other possibility)
Installing Realtek RTL8811CU/RTL8821CU USB wifi adapter driver version 5.4.1 for Linux 4.4.x up to 5.x
I got also this link for another wifi hitspot installation.
First, clone this repository
mkdir -p ~/build
cd ~/build
git clone https://github.com/brektrou/rtl8821CU.git Build and install with DKMS
Debian/Ubuntu:sudo apt-get install dkmsPlug 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.)
Need install usb_modeswitch (Archlinux: sudo pacman -S usb_modeswitch)
sudo usb_modeswitch -KW -v 0bda -p 1a2b
systemctl start bluetooth.service - starting Bluetooth service if it's in inactive state
Make it permanent
If steps above worked fine and in order to avoid periodically having to make usb_modeswitch you can make it permanent (Working in Ubuntu 18.04 LTS):
-
Edit
usb_modeswitchrules:sudo nano /lib/udev/rules.d/40-usb_modeswitch.rules -
Append before the end line
LABEL="modeswitch_rules_end"the following:# Realtek 8211CU Wifi AC USB ATTR{idVendor}=="0bda", ATTR{idProduct}=="1a2b", RUN+="/usr/sbin/usb_modeswitch -K -v 0bda -p 1a2b"Make sure to set your
ATTR{idVendor}and the-vargument to the left portion of the output of lsusb device ID, and yourATTR{idProduct}and-pargument to the right portion of the lsusb device ID. For example (for the Cudy AC600 usb wifi adapter) the output fromlsusbcommand looks like this:Bus 001 Device 016: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NICthen your configuration in
/lib/udev/rules.d/40-usb_modeswitch.rulesshould be# Realtek 8211CU Wifi AC USB ATTR{idVendor}=="0bda", ATTR{idProduct}=="c811", RUN+="/usr/sbin/usb_modeswitch -K -v 0bda -p c811"Checking installed driverIf you successfully install the driver, the driver is installed on
/lib/modules/<linux version>/kernel/drivers/net/wireless/realtek/rtl8821cu. Check the driver with thelscommand:ls /lib/modules/$(uname -r)/kernel/drivers/net/wireless/realtek/rtl8821cuMake sure
8821cu.kofile present on that directoryCheck with DKMS (if installing via DKMS):
sudo dkms statusMonitor mode
Use the tool 'iw', please don't use other tools like 'airmon-ng'
Check the OSuname -rSources: https://github.com/brektrou/rtl8821CUG.Cerbero @2024
Come On and PI! https://minepi.com/Judgedreed1975satoshi App
Binance App

Commentaires
Enregistrer un commentaire