Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

Unsure on how to properly find and install wifi adapter (88x2 BU) driver

Started by Otto_Van_Chotto, February 16, 2019, 03:44:22 AM

Previous topic - Next topic

Otto_Van_Chotto

Hi all,

So I finally decided to give Linux a try  (got fed up with Windows) and chose this great distro (Home Edition 5.6.2 LXQt). Before installing it on my main PC I decided to give it a try in the old family PC, and let me tell you, SparkyLinux gave new life to it. Anyways as the subject suggest I've been having problems finding and installing the driver for my wifi adapter, Realtek 8812BU to be specific. I found this driver here https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959 but I'm not sure if it'll work on SparkyLinux, and also have no clue how to install it.

Thanks.

pavroo

Hi
i am not sure too, will it be working or not.
The github's readme says that, it works on Linux kernel 4.18 & 4.19, which is used (the second one) as default on Sparky 5.6.x, so...
Follow the build instruction and good luck.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

paxmark1

Please continue to post your success or difficulties. 

I note with pleasure that he shows how to use dkms which is  Debian specific (Sparky is a Debian derivative)  and that he has been forked 8 times. 

More evidence of cliynx 's skill set is at what appears to be his blog.
https://www.wolfteck.com/

I have been down the road on this with the AU version.  I used Gordboys github
My chipset   via lsusb Bus 001 Device 003: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter

via inxi -n Card-2: Realtek RTL8812AU 802.11a/b/g/n/ac WLAN Adapter driver: rtl8812au usb-ID: 001-003
           IF: wlx24050ff6739c state: N/A mac: N/A
 

NOTE:  I am <u>not</u>  suggesting you use the Gordboy github, AU is not BU.  My and your searches yielded cilynx as the best place to start.

I really can't wait until some more Realtek crap makes it into firmware-nonfree. 

peace out.



Search forum for "More info easier via inxi"    If requested -  no inxi, no help for you by  me.

Otto_Van_Chotto

Thanks for the help guys. One quick noob question though; since switching to Linux I've learned a few commands but I'm completely inexperienced when it comes to DKMS. To install one, do I need to input each command line individually as is tradition, or all at once.

pavroo

Make sure you have dependencies pre-installed before you start building, in a terminal emulator:
sudo apt update
sudo apt install sed dkms rsync linux-headers-amd64

If you have 32 bit system installed, change 'amd64' to '686' or '686-pae'.
Then use all the commands from GitHub one after one.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

Otto_Van_Chotto

I had a feeling this was going to happen when trying to install the dependencies: user@user:~$ sudo apt update
[sudo] password for user:
Err:1 http://ftp.debian.org/debian testing InRelease
  Could not resolve 'ftp.debian.org'
Err:2 http://www.deb-multimedia.org testing InRelease
  Could not resolve 'www.deb-multimedia.org'
Err:3 http://security.debian.org testing/updates InRelease
  Could not resolve 'security.debian.org'
Err:4 https://sparkylinux.org/repo core InRelease
  Could not resolve 'sparkylinux.org'
Err:5 https://sparkylinux.org/repo testing InRelease
  Could not resolve 'sparkylinux.org'
Err:6 https://sparkylinux.org/repo unstable InRelease
  Could not resolve 'sparkylinux.org'
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://ftp.debian.org/debian/dists/testing/InRelease  Could not resolve 'ftp.debian.org'
W: Failed to fetch http://security.debian.org/dists/testing/updates/InRelease  Could not resolve 'security.debian.org'
W: Failed to fetch http://www.deb-multimedia.org/dists/testing/InRelease  Could not resolve 'www.deb-multimedia.org'
W: Failed to fetch https://sparkylinux.org/repo/dists/core/InRelease  Could not resolve 'sparkylinux.org'
W: Failed to fetch https://sparkylinux.org/repo/dists/testing/InRelease  Could not resolve 'sparkylinux.org'
W: Failed to fetch https://sparkylinux.org/repo/dists/unstable/InRelease  Could not resolve 'sparkylinux.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
user@user:~$ sudo apt install sed dkms rsync linux-headers-amd64
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package dkms
E: Unable to locate package linux-headers-amd64


I think I'm gonna end up buying an ethernet cable (which I was already planning to get for my main PC), so I can finally install this driver on the family PC.

Thanks for the help everyone!

Otto_Van_Chotto

Hello it's me again.

So the ethernet cable finally arrived and I was finally able to connect to the internet. I finally installed the dependencies: sudo apt update
sudo apt install sed dkms rsync linux-headers-amd64


But when I try to sudo build or install the driver I get the following error: Error! echo
Your kernel headers for kernel 4.20.11-sparky-amd64 cannot be found at
/lib/modules/4.20.11-sparky-amd64/build or /lib/modules/4.20.11-sparky-amd64/source.

pavroo

Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

Otto_Van_Chotto

QuoteI suggest ot build the module on Debian's kernel & headers.

How can I do that?

paxmark1

From your first post     https://github.com/cilynx/rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959

Section DKMS Installation
Quotecd rtl88x2BU_WiFi_linux_v5.3.1_27678.20180430_COEX20180427-5959
VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu

Each line is a  command to paste into a terminal ### Ctl-Shift-V   to paste into a terminal. 
Search forum for "More info easier via inxi"    If requested -  no inxi, no help for you by  me.


View the most recent posts on the forum