--- title: Setting up Raspberry Pi Wi-Fi tags: Raspberry Pi --- # Setting up External Wi-Fi Dongle on Raspberry Pi OS ## Disable Bulid-In Wi-Fi in `/boot/config.txt` ```bash= dtoverlay=disable-wifi ``` ## Configure WPA Supplicant in `/etc/wpa_supplicant/wpa_supplicant.conf` ```bash= network={ ssid="wifi-ssid" psk="password" key_mgmt=WPA-PSK } ``` ## DHCP in `/etc/network/interfaces` ```bash= allow-hotplug wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf ``` ## Static IP in `/etc/network/interfaces` ```bash= allow-hotplug wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf ``` in `/etc/dhcpcd.conf` ```bash= interface eth0 static ip_address=192.168.0.4/24 static routers=192.168.0.1 static domain_name_servers=192.168.0.1 ```