Skip to content

Instantly share code, notes, and snippets.

@kkyucon
Last active February 20, 2022 14:01
Show Gist options
  • Save kkyucon/128fa52cf715c2dbd31e36e9b5876cad to your computer and use it in GitHub Desktop.
Save kkyucon/128fa52cf715c2dbd31e36e9b5876cad to your computer and use it in GitHub Desktop.
Ubuntu Server 18.04 Wireless USB Adaptor Setup rtl8812au

Ubuntu Server 18.04 and 20.04 Wireless USB Device Setup

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment