RinCat / RTL88x2BU-Linux-Driver

Realtek RTL88x2BU WiFi USB Driver for Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation of RTL88x2BU-Linux-Driver with Secure Boot enabled

eurbah opened this issue · comments

commented

For the installation of RTL88x2BU-Linux-Driver with Secure Boot enabled, your README.md provides nothing.

So, I have developed the attached shell script :

If the Linux builtin module rtw88_8822bu is not available, or if forced by the -f option,
then only if necessary (using explicit versions),
download, compile and install the 88x2bu Linux module (RTL88x2BU) found on the web.

This script saves the module source in ~/Downloads.
Afterwards, if there is NO internet connection, this script looks for the module source in ~/Downloads, and if found, this script uses it.

If Secure Boot is enabled, this script enforces usage of a MOK (Machine Owner Key) to sign the compiled module.

If DKMS is available, this script tries to use it.

Using the constants defined at the beginning, this script may be adapted for other devices and modules.

I have successfully tested this script on Ubuntu and Fedora.

In the hope that this script will be useful.

Wow, that's a really long script. I will take a look when I have free time. Thanks!

commented

I have attached a new version with fixed and improved logic.

Thanks for the extensive helper script. It worked for me on Ubuntu 22.04.

commented

I have attached a new version which :

  • proposes to install DKMS, which may create a useful MOK (Machine Owner Key), before searching MOKs,
  • correctly retrieves the path to the signing tool under Fedora,
  • fully uses nmcli to display information for Wifi product, Linux kernel module, Linux device and Wifi connexion,
  • is able to display also PCI devices,
  • takes into account blacklisting of the Linux builtin module rtw88_8822bu,
  • displays additional information with --infos option.
  • displays verbose information with --verbose option.
    install-88x2bu.sh.txt