DEV Community

Łukasz Wolnik
Łukasz Wolnik

Posted on • Updated on

Install rtl88x2bu WiFi adapter drivers on Ubuntu 20.10

Ubuntu 20.10 based distros do not support the rtl88x2bu Wifi USB adapter out of the box.

Internet connection via Bluetooth

There's a catch 22 when installing a rtl88x2bu WiFi adapter driver. First you need to download it from the Internet but your Linux is not ready to connect to a WiFi.

Instead of using another PC to download a driver and copy to a USB flash drive simply use Bluetooth tethering on your mobile:

  • buy a Bluetooth dongle for your desktop PC
  • enable Bluetooth tethering and turn on a hotspot on your mobile
  • pair and connect to your mobile phone from your PC

Installing rtl88x2bu drivers

If you are looking for rtl88x2bu drivers for Linux you have probably already seen the github.com/cilynx/rtl88x2bu repo. Unfortunately its build process did not work for me on my Ubuntu 20.10-based system. The source files simply did not compile (both 5.3.1 and 5.8.1).

Error! Bad return status for module build on kernel
Consult /var/lib/dkms/rtl88x2bu/5.3.1/build/make.log for more information.

./rtl88x2bu-5.3.1/include/rtw_security.h:252:8: error: redefinition of ‘struct sha256_state’
  252 | struct sha256_state {
Enter fullscreen mode Exit fullscreen mode

I have found another solution in the following repo instead: github.com/morrownr/88x2bu.

Below are instructions for Ubuntu taken from that repo's README:

sudo apt-get update
git clone https://github.com/morrownr/88x2bu.git
cd 88x2bu
sudo ./install-driver.sh
sudo reboot
Enter fullscreen mode Exit fullscreen mode

Top comments (7)

Collapse
 
peter279k profile image
peter279k

To be consistency, it should be rtl88x2bu. Not rtl88x2ub.

Collapse
 
limal profile image
Łukasz Wolnik

You're right! Fixed the text today. Thanks!

Collapse
 
paniaton profile image
paniaton

lov u

Collapse
 
mccurcio profile image
Matt Curcio

Interesting what kind of speeds can one normally get?
What have you seen?

Collapse
 
limal profile image
Łukasz Wolnik

My average was about 110-120 Mbit/s for download and 25 Mbit/s for upload. My mobile phone connected to the same WiFi can download at 250 Mbit/s. I couldn't make the morrownr/88x2bu's driver to work in a USB3 mode so I'm stuck at USB2.

Still 120 Mbit/s is good enough until I buy a WiFi dongle that will be instantly recognised by a freshly installed Linux distro.

Collapse
 
mccurcio profile image
Matt Curcio

Were there any gotcha's when you installing the driver(s)?
I'll try this one. ;)

Thread Thread
 
limal profile image
Łukasz Wolnik

None. That's why I thought that I'll post that sudo ./install-driver.sh on dev.to. Primarily for myself but hoping that others might find it useful too.