Install the tools:
$ sudo apt install wireless-tools && sudo apt install wpasupplicant
Install nessasary packages:
$ sudo apt install git dkms build-essential
Clone the driver:
$ git clone https://github.com/aircrack-ng/rtl8812au.git
Change into the driver directory:
$ cd rtl8812au
Now let's use make
to run the install:
$ sudo make dkms_install
Now open .yaml
file in netplan for editing:
$ sudo vi /etc/netplan/50-cloud-init.yaml
Replace wlan0
with the name of your adapter, do ifconfig
to find it.
Neplan file should look similar to this:
network:
version: 2
renderer: networkd
ethernets:
eno1:
addresses: []
dhcp4: true
optional: true
wifis:
wlan0:
addresses: []
dhcp4: true
dhcp6: true
access-points:
"my_essid":
password: "my_password"
Now generate and debug:
$ sudo netplan --debug generate
Apply the configuration:
$ sudo netplan apply
Now remove ethernet wire and reboot:
$ sudo reboot
This setup worked with Linksys WUSB6300 and DLink DWA-182 .
Notes:
-From fresh install
-Get's connection and ip after netplan generate
-Does not persist reboot
-After 2nd reboot seems something registered and now persist every reboot
Edits:
-Added optional: true
to eno1
persists reboots