Try   HackMD

Setting up External Wi-Fi Dongle on Raspberry Pi OS

Disable Bulid-In Wi-Fi

in /boot/config.txt

dtoverlay=disable-wifi

Configure WPA Supplicant

in /etc/wpa_supplicant/wpa_supplicant.conf

network={ ssid="wifi-ssid" psk="password" key_mgmt=WPA-PSK }

DHCP

in /etc/network/interfaces

allow-hotplug wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Static IP

in /etc/network/interfaces

allow-hotplug wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

in /etc/dhcpcd.conf

interface eth0 static ip_address=192.168.0.4/24 static routers=192.168.0.1 static domain_name_servers=192.168.0.1