RinCat / RTL88x2BU-Linux-Driver

Realtek RTL88x2BU WiFi USB Driver for Linux
GNU General Public License v2.0
1.19k stars 189 forks source link

Installation of RTL88x2BU-Linux-Driver with Secure Boot enabled #188

Open eurbah opened 1 year ago

eurbah commented 1 year ago

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.

RinCat commented 1 year ago

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

eurbah commented 1 year ago

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

nilsonsfj commented 1 year ago

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

eurbah commented 1 year ago

I have attached a new version which :