Debian драйвера wifi realtek



Как установить драйвер Realtek RTL8821CE

Обычно, когда мы устанавливаем дистрибутив Linux на ноутбук, то зачастую поддержка Wi-Fi присутствует полностью или частично для большинства моделей. Драйверы интегрированы в ядро Linux и в результате всё «просто работает» из коробки. Но проблемы начинаются если драйвер для вашего Wi-Fi отсутствует. Вам нужно его найти и установить вручную.

С такой проблемой могут столкнуться, например, владельце ноутбуков HP CM-0078AU.

Если у вас Wi-Fi адаптер на основе чипсета Realtek RTL8821CE, то в Linux по умолчанию отсутствует драйвер для него. В результате ОС не видит устройство, и в панели рядом с часами вовсе отсутствует значок Wi-Fi.

Для исправления данной проблемы достаточно установить необходимый драйвер.

Этот драйвер работает на ядре Linux > 4.14 (все современные дистрибутивы удовлетворяют этому требованию). Этот драйвер тестировался на Debian, Ubuntu, Linux Mint, Arch Linux, Gentoo и должен работать на всех производных дистрибутивах.

Этот драйвер может быть установлен с использованием DKMS. Эта система, которая автоматически перекомпилирует и устанавливает модули ядра когда в результате обновления устанавливается новое ядро. Для использования DKMS, установите пакет dkms.

Чтобы проверить, какой именно у вас интегрированный Wi-Fi адаптер, выполните команду:

Если у вас вывод содержит строку RTL8821CE, значит эта инструкция вам поможет:

Офлайн установка Realtek RTL8821CE

Если на компьютере, на который вы хотите установить драйвер, отсутствует Интернет-подключение, то вы можете скачать установочный файл из репозиториев Ubuntu, перенести его на флешке на компьютер без Интернета и попробовать установить его вручную. Этот способ может не сработать по той причине, что для установки драйвера требуются зависимости (например, заголовки ядра), которые смогли бы установиться будь у компьютера Интернет-подключение, но если компьютер офлайн, то приходится надеяться, что все нужные файлы присутствуют по умолчанию.

Скачайте установочный файл драйвера:

Если ссылка на драйвер перестала работать, то для поиска актуальной ссылки перейдите на страницу: https://pkgs.org/search/?q=rtl8821ce-dkms

Перенесите скаченный файл на компьютер, где его нужно установить, перейдите в директорию с драйвером и запустите установку следующей командой:

Установка драйвера Realtek RTL8821CE в Ubuntu 21.04 и более поздние

Драйвер помещён в стандартный репозиторий, поэтому достаточно выполнить команду:

Установка драйвера Realtek RTL8821CE в Ubuntu 20.04

Начиная с Ubuntu 20.04, этот драйвер имеется в Дополнительном ПО (Additional Drivers (Software & Updates)). Откройте настройки дополнительного ПО и поставьте галочку “Using DKMS source for the Realtek 8821C …” (использовать DKMS источник для Realtek 8821C) и затем перезагрузитесь. После перезагрузки всё будет работать.

Как установить драйвер Realtek RTL8821CE в Debian, Ubuntu, Kali Linux, Linux Mint и их производные

Выполните следующие команды:

Затем перезагрузите компьютер — всё должно работать.

Как установить драйвер Realtek RTL8821CE в Arch Linux, BlackArch и их производные

Установите pikaur, как это показано в статье «Автоматическая установка и обновление пакетов AUR», а затем просто выполните команду:

Как установить драйвер Realtek RTL8821CE в Gentoo

Выполните с правами root команды:

Удаление драйвера

Откройте терминал и используйте git clone для клонирования репозитория на локальный диск:

Затем выполните скрипт для деинсталяции:

Обновление драйвера

Убедитесь, что у вас последняя версия репозитория на диске:

Удалите все несвежие бинарные файлы:

Возможные проблемы

Secure Boot

Если ваша система использует безопасную загрузку, отключите её в настройках BIOS, иначе ядро не будет принимать пользовательские модули.

PCIe Activate State Power Management

Ваш дистрибутив может поставляться с включённым по умолчанию управлением питанием активного состояния PCIe (PCIe Activate State Power Management). Это может конфликтовать с этим драйвером. Чтобы отключить:

Добавьте pci=noaer в конец GRUB_CMDLINE_LINUX_DEFAULT. Строка должна выглядеть примерно так:

Затем обновите вашу конфигурацию GRUB:

Ноутбуки Lenovo Yoga

Некоторые новые ноутбуки Yoga (например, Yoga 530) поставляются с rtl8821ce в качестве чипа Wi-Fi/Bluetooth. Но модуль ideapad-laptop, который может входить в ваш дистрибутив, может конфликтовать с этим драйвером. Чтобы отключить его:

Источник

brektrou/rtl8821CU

Use Git or checkout with SVN using the web URL.

Work fast with our official CLI. Learn more.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Realtek RTL8811CU/RTL8821CU USB wifi adapter driver version 5.4.1 for Linux 4.4.x up to 5.x

Before build this driver make sure make , gcc , linux-header / kernel-devel , bc and git have been installed.

First, clone this repository

Check the name of the interface

Check the interface name of your wifi adapter using ifconfig . Usually, it will be wlan0 by default, but it may vary depends on the kernel and your device. On Ubuntu, for example, it may be named as wlx + MAC address. (https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/)

If this is the case, you can either disable the feature following the link above, or replace the name used in the driver by

Build 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:

If you later on want to remove it, run:

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:

  1. find your usb-wifi-adapter device ID, like «0bda:1a2b», by type:
  1. switch the mode by type: (the device ID must be yours.)

Need install usb_modeswitch (Archlinux: sudo pacman -S usb_modeswitch )

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_modeswitch rules:

Append before the end line LABEL=»modeswitch_rules_end» the following:

Make sure to set your ATTR and the -v argument to the left portion of the output of lsusb device ID, and your ATTR and -p argument to the right portion of the lsusb device ID. For example (for the Cudy AC600 usb wifi adapter) the output from lsusb command looks like this:

then your configuration in /lib/udev/rules.d/40-usb_modeswitch.rules should be

Build and install without DKMS

Use following commands:

If you later on want to remove it, do the following:

Checking 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:

Make sure 8821cu.ko file present on that directory

Check with DKMS (if installing via DKMS):

sudo dkms status

Use the tool ‘iw’, please don’t use other tools like ‘airmon-ng’

About

Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux

Источник

tomaspinho/rtl8821ce

Use Git or checkout with SVN using the web URL.

Work fast with our official CLI. Learn more.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Realtek RTL8821CE Driver

This repository hosts the code for the Arch Linux AUR Package. It’s targeting Linux > 4.14 and is being developed for Arch Linux and Ubuntu 18.10. No support will be provided for other Linux distributions or Linux Kernel versions outside of that range.

The maintainers of this repository are not Realtek employees and are maintaining this repository for their own usage. Further feature development (such as proper power saving, etc.) will not be pursued here, but will be gladly integrated if newer driver sources are provided by Realtek. Use at your own risk.

This driver can be installed using DKMS. This 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.

Installation of Driver

Make sure you have a proper build environment and dkms installed.

The following steps are required prior to building the driver on Ubuntu/Debian:

Ubuntu users may also install the prebuilt rtl8821ce-dkms package, an older version of the driver maintained by the Ubuntu MOTU Developers group for bionic, eoan and focal. It has been known to work in cases where the newer driver available here does not. Bugs and issues with that package should be reported at Launchpad rather than here.

Make sure you have the base-devel package group installed before you proceed for the necessary compilation tools.

Installing from AUR

Dependencies for manual installation on Arch Linux

If you are running a non-vanilla kernel then install the headers to match the kernel package. Proceed to the section below.

An unofficial Gentoo package is available, using this repository as upstream. It is available from the trolltoo overlay. Gentoo does not use or require dkms for packaged drivers.

Manual installation of driver

In order to install the driver open a terminal in the directory with the source code and execute the following command:

Removal of Driver

Open a terminal window and git clone the repository to your local disk

Then run the removal script:

Remove the driver:

Make sure you have your local copy of this repository fully updated:

Clean any stale binaries:

When reporting issues, please make sure that debugging is enabled. To enable debugging either set MAKEFLAGS=»CONFIG_RTW_DEBUG = y» before compilation or edit Makefile:

This will enable verbose debug logging, helpful to developers.

PCIe Activate State Power Management

Your distribution may come with PCIe Active State Power Management enabled by default. That may conflict with this driver. To disable:

Add pci=noaer at the end of GRUB_CMDLINE_LINUX_DEFAULT. Line should look like this:

Then update your GRUB configuration:

Lenovo Yoga laptops

Some new Yoga laptops (like the Yoga 530) come with rtl8821ce as the Wi-Fi/Bluetooth chip. But the ideapad-laptop module, which may come included in your distribution, may conflict with this driver. To disable:

BlueTooth is not working

This may be due to the Kernel loading up the wrong firmware file for this card. Please take a look at @wahsot’s tutorial at #19 (comment) to see if that helps you out.

If your system uses Secure Boot, the kernel will not accept user-supplied modules. There are two ways to solve this issue:

  1. Disable Secure Boot via BIOS/UEFI settings.
  2. Create or use an existing MOK (Machine Owner Key) to sign the compiled .ko linux kernel object produced by DKMS.

Unstable connection — slowdowns or dropouts

The problem may be due to the periodic scanning of access points by the network applet.

This fix worked helpful on Pop! _OS/Ubuntu 20.10 and Fedora 33. Both with GNOME and NetworkManager. #179

Set the BSSID from your network applet. In GNOME this can be done in WiFi Settings > Your profile > Identity > BSSID .

We are going to disable the Connectivity Check option in NetworkManager. This by editing the file in /var/lib/NetworkManager/NetworkManager-intern.conf and adding the following instructions at the end:

Then, just reboot or restart the NetworkManager unit to fix the problem.

Wi-Fi not working for kernel >= 5.9

The Linux Kernel 5.9 version comes with a broken rtw88 module developed by Realtek that has poor compatibility with most revisions of the 8821ce chip.

You must disable it by adding the following to your module blacklists ( /etc/modprobe.d/blacklist.conf ):

Then, make sure you have the rtl8821ce module correctly installed.

Turn off your computer, wait a few seconds (to force firmware reload) and then turn it on again.

Wi-Fi and Bluetooth don’t work after suspend

This is a bug that won’t be fixed until/if Realtek implements proper power management themselves. Given they are now only working in rtw88 , this driver will most likely never be fixed in this regard. Please avoid opening issues about this.

Monitor (promiscuous) mode doesn’t work

This driver doesn’t support it and never will. Please avoid opening issues about this.

Источник

Realtek 802.11ac USB Wi-Fi Linux Driver Installation

Target Devices

Note: Kali currently uses a separate driver for RTL8814AU.

Driver Information

Developed internally by Realtek, and then patched by open community members.

This drivers is not mainlined (might never will be, from the look of it), so you’ll be loading a self-compiled out-of-tree kernel module. If you are running on a system using UEFI Secure Boot, you may need to either disable Secure Boot or sign the kernel module before you can load it. (We won’t cover that here.)

To check the status of Secure Boot, run

Output will be one of the following:

  • SecureBoot enabled — using UEFI, Secure Boot enabled
  • SecureBoot disabled — using UEFI, Secure Boot disabled
  • EFI variables are not supported on this system — not using UEFI, Secure Boot disabled

Driver Installation

Kali Linux

For those who are running Kali Linux ARM Image on Raspberry Pi, the driver should be installed already.

For x86 users, install package realtek-rtl88xxau-dkms .

Parrot OS

Security edition has package realtek-rtl88xxau-dkms installed by default. If this is not the case, follow the same instructions above for Kali Linux.

Debian and Its Derivatives (on x86, x86_64 Platforms)

Debian, Ubuntu, Linux Mint, Pop!_OS, elementary OS, etc.

APT is able to install local deb file since version 1.1 — we can use that to install realtek-rtl88xxau-dkms from Kali.

Find the latest deb packages from Kali’s repository. realtek-rtl88xxau-dkms depends on realtek-rtl8814au-dkms since 25th of May 2021, so we’ll get deb files of these two.

At the time of writing/updating, the latest ones are:

Although not tested, some distros should be able to perform the whole process in GUI — download deb files through browser and double-click to install. (Install realtek-rtl8814au-dkms first, then realtek-rtl88xxau-dkms .)

Fedora

Note that because the kernel module is built with DKMS you should ensure you have installed and rebooted to latest kernel update before installing.

CentOS

Note that because the kernel module is built with DKMS you should ensure you have installed and rebooted to latest kernel update before installing.

Arch Linux

These instructions are expansions of

If you’re not using the default kernel, package linux-headers should be changed respectively. Say you’re using LTS kernel, the command would then be

Note that because the kernel module is built with DKMS you should ensure you have installed and rebooted to latest kernel update before installing.

Appendices

Getting package URI

In case that repository URL changes in the future, spin up a Kali VM or even a Docker container, and run

Monitor, Injection Support

Your miles may vary on distros other than Kali, which is specifically tweaked for pentesting.

VID/PID

References

22 Comments

on pi with kernel I got, any suggestions?

$ sudo apt install ./realtek-rtl88xxau-dkms_5.3.4

20200115-0kali1_all.deb
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘realtek-rtl88xxau-dkms’ instead of ‘./realtek-rtl88xxau-dkms_5.3.4

20200115-0kali1_all.deb’
realtek-rtl88xxau-dkms is already the newest version (5.3.4

20200115-0kali1).
0 upgraded, 0 newly installed, 0 to remove and 86 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up realtek-rtl88xxau-dkms (5.3.4

20200115-0kali1) …
Removing old realtek-rtl88xxau-5.3.4

20200115 DKMS files…

——————————
Deleting module version: 5.3.4

20200115
completely from the DKMS tree.
——————————
Done.
Loading new realtek-rtl88xxau-5.3.4

20200115 DKMS files…
It is likely that 4.19.75+ belongs to a chroot’s host
Building for 4.19.75+, 4.19.75-v7+, 4.19.75-v7l+ and 4.19.75-v8+
Building initial module for 4.19.75+
Error! Bad return status for module build on kernel: 4.19.75+ (armv6l)
Consult /var/lib/dkms/realtek-rtl88xxau/5.3.4

20200115/build/make.log for more information.
dpkg: error processing package realtek-rtl88xxau-dkms (–configure):
installed realtek-rtl88xxau-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
realtek-rtl88xxau-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

Raspberry Pi has a different architecture (ARM, not x86 or x86_64). The easiest way is to use Kali Linux ARM Image, which has the driver built-in. Otherwise, you may have to follow compile instructions for Raspberry Pi and manually compile the driver from source.

Hi, I installed the drivers on Ubuntu/Debian based distros but the USB wifi adapter does not automatically connect to Wifi on reboot. I also have to reconnect to my network but it saves as a new connection each time. Any suggestions?

This is most likely not driver related but connection or interface name manager setting related. Connection profile usually includes some properties that specify the name or MAC address of interface it matches to, and also whether it is going to automatically connect. Thus I’m guessing either interface name manager somehow didn’t name that interface the same across reboot (did you plug the adapter to a different physical port?), or the connection profile wasn’t written properly.

Thank you, it works on Ubuntu 20.04!

Hello,
I’m using COMFAST CF-913AC on Linux Mint 20 and it’s work perfectly with this command :

git20200916-0kali1_all.deb
# sudo apt update
# sudo apt install ./realtek-rtl88xxau-dkms_5.6.4.2

Congrats! Thanks for letting us know.

Thanks for this!

I bought 2 BrosTrend AC1200s. One I never could get to work in Mint 20, the other I was able to, but the way I went about it wouldn’t survive reboot and it was directly compiled and installed via modpro

I used your method to pull from the Kali distro and installed through Apt and voila! Works perfectly with the latest src from the aircrack guys.

For those wondering, BrosTrend seems to have 3 versions of their AC1200. I didn’t notice, but half my problem was this version issue.

One unit was V1 and contained the rtl8812au chip, the other one was V2 and contained the rtl8822au chip (can’t find a way to get that chip working on Linux so it’s relegated to a Windows machine for now until I can play around with NDISWrapper) and it seems they now sell a V3 that’s explicitly marketed towards working in Linux. Probably uses a chipset with built-in kernel support.

BrosTrend seems to have RTL8812AU, RTL8812BU and RTL8811CU in their products.

None of these chipsets got built-in kernel support. One will find lots of different versions of driver from various sources out there.

Aircrack-ng community offers a relatively mature driver for RTL8812AU, as described in this article, that includes monitor mode and frame injection support.

For those who don’t have pentesting demands, BrosTrend offers driver deb package here for each of the three chipsets.

Many thanks!
I have EDUP USB WiFi Adapter Wireless and finally, it worked on my Linux Deepin 20.1

git20200916-0kali1_all.deb
# sudo apt update
# sudo apt install ./realtek-rtl88xxau-dkms_5.6.4.2

* More accurate I just copied the link and downloaded it using google chrome then I clicked on the downloaded file to install it. DONE!

I will write the product name I bought from amazon so other people can easily find the solution:
USB WiFi Adapter Wireless Network Adapters AC 600Mbps Dual Band 2.4G/5.8Ghz Wi-Fi Dongle with External Antenna for Laptop Desktop PC Compatible with Windows 10/8.1/8/7/XP/Vista /Mac OS X 10.6

so how i can install drivers on network card if i cannot use internet to download drivers and deps.?

THANK YOU! You sir deserve a medal. I had so much trouble installing Archer T4u V3 drivers in Kali Linux version 5.10.0-kali3-amd64 and I spent at least 4-5 hours going through tons of different pages and in the end I found out that realtek drivers is all you really need. In most of the instructions I found, you had to change the source code and do all sorts of complex stuff…

I can also say that the documentation and files from TP-Link (https://www.tp-link.com/us/support/download/archer-t4u/#Driver) were complete bullshit and resulted in a waste of time . How can they fail so bad in creating the documentation?

Now I can finally use USB WiFi adapter in virtualbox and when I type ip a it is shown as wlan0. Again, thank you so much!

This just short Tutorial for NEWBIE (like me!) using and installing driver USB Wifi driver for Linux Debian and it’s derivatives (Debian, Ubuntu, Linux Mint, Pop! OS, Elementary OS, etc.)

When suddenly your switching OS distro or updating OS or accidently delete some part of software sometimes your Wifi driver are no support and got blank your mind…, Yeah thats right!

First STEP :
1. You only need your smartphones or your moms/dads/girlfriends/neigborhoods phones and make sure also they have “Internet Mobile Data”.
2. You need to open “Developer Options” on your smartphone to do that first before.
3. Open your phone “Settings” and find “About Phone” and select “Version Number” and then clik 7x (Seven times).
4. Inside “Developer Options” find or scroll to the “Network” and select “Select USB Configuration” and then select again to the “USB Ethernet (RNDIS)”.
5. After this all you need is USB cable connected to your PC or Laptop and it’s done … now you ready online!

Second STEP :
1. Installing GDebi (I’m using Geary on POP_OS that are same software). You can find GDebi in Ubuntu Software Center. Just search for it and install it from there.
2. Installing the latest “realtek-rtl88xxau-dkms” deb package from Kali’s repository.
3. After this just type in your linux terminal “Sudo Reboot” to reboot your PC or Laptop.
4. It’s done , just try to check it out !

I’m trying many times using this method when i switch to OS distros or update Linux Kernel. It’s really saving my times and work to do! Thanks for your time to read this and Mega thanks to Blog.abysm.org for complete tutorials !

Thank you so much! This was exactly the help I needed!

Thank you so much! Your know-how is excellent and you described the tasks needed in a nutshell that works. You have no idea how many other “instructions” to install the driver I checked before.

I am working on artificial intelligence, maybe we can exchange a few ideas if you like. What I am doing is completely different from what Google thinks AI is. I am always happy to talk to people with a bright mind.

You’re welcome, in both senses. 🙂

Are there any way to get it on solus os?

Solus doesn’t seem to have DKMS package, it will require human intervention after each kernel update to keep it working. Technically it is possible, but I wouldn’t recommend it, you’re on your own.

I m working on putting this driver to my aosp. Would it possible to be a loadable module .ko without rebuilding the kernel?

Not an expert on this, but you can probably search RTL8812AU here
https://stats.nethunter.com/nethunter-kernels.html
and see how it’s done in NetHunter.

Thank you a lot! Your knowledge is exceptional, and you concisely outlined the tasks required. You have no clue how many different “instructions” I looked up to install the driver.

Great share! Thanks for the information. Keep going!

Источник

You may also like...