Connect your Alfa device to the USB port
curl -o PKGBUILD https://paste.rs/R0f && curl -o dkms.conf https://paste.rs/5xj && makepkg -si
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, which on Debian (based) systems is done like this:
Open a terminal and execute the following command:
sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo lsusb && sudo apt install lshw dkms realtek-rtl88xxau-dkms -y
Reboot your machine
modinfo iwlwifi && lspci && ifconfig && sudo lshw -C network && lsusb && lspci -vnn | grep -i net
sudo apt-get install bc raspberrypi-kernel-headers
Then run this step to change platform in Makefile, For RPI 2/3:
$ sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
$ sed -i 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/g' Makefile
But for RPI 3 B+ you will need to run those below which builds the ARM64 arch driver:
$ sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/g' Makefile
$ sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/g' Makefile
In order to remove the driver from your system open a terminal in the directory with the source code and execute the following command:
sudo /usr/share/rtl8812au/.dkms-remove.sh
CONFIG_LED_ENABLE = n
value can be y or n
options 88XXau rtw_led_enable=0
value can be 0 or 1
$ echo "0" > /proc/net/rtl8812au/$(your interface name)/led_enable
value can be 0 or 1
$ cat /proc/net/rtl8812au/$(your interface name)/led_enable
Newer versions of NetworkManager switches to random MAC address. Some users would prefer to use a fixed address. Simply add these lines below
[device]
wifi.scan-rand-mac-address=no
at the end of file /etc/NetworkManager/NetworkManager.conf and restart NetworkManager with the command:
sudo service NetworkManager restart