This instruction should work for other Pi with built-in WiFi.
Step 1: Change default DNS
Edit /etc/systemd/resolved.conf
|
|
Step 2: Connect to Wi-Fi temporarily
Generate a WPA PSK from an ASCII passphrase for your WiFi
|
|
You should see the file /etc/wpa_supplicant/wpa_supplicant.conf
generated with content
like following. It is highly recommended to delete the plain text password in the comment.
|
|
Start WPA supplicant (Raspberry Pi’s built-in WiFi should have network interface name wlan0
,
if not, change following accordingly)
|
|
Obtain IP through DHCP (assuming DHCP is enabled on your router)
|
|
Now if you use ifconfig you should see internal IP allocated to wlan0
and you should be able to access internet.
Step 3: Connect to Wi-Fi persistently
There are many ways, but I prefer to manage it manually with ifup and /etc/network/interfaces
.
Edit /etc/network/interfaces
. Feel free to use DHCP instead of static IP.
|
|
Then install ifupdown
and use it to bring up wlan0
|
|
That’s it.