Setting up Wireless Networking on Debian Stretch

When setting up my latest Raspberry Pi recently I discovered that configuring the wireless network on Raspbian ‘Stretch’ is done slightly differently from previous versions.

First you need to edit wpa_supplicant.conf to set up your network’s SSID and password.

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

/etc/wpa_supplicant/wpa_supplicant.conf
network={
    scan_ssid=1
    ssid="<SSID>"
    psk="<Password>"
}

Then you need to configure /etc/network/interfaces to use wpa_supplicant.conf to configure the wireless network.

sudo nano /etc/network/interfaces

/etc/network/interfaces
auto lo
iface lo inet loopback
 
allow-hotplug wlan0
iface wlan0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 
allow-hotplug eth0
iface eth0 inet dhcp

If you have got it right then the next time you reboot it should connect…

This entry was posted in Networking, Raspbian and tagged , , . Bookmark the permalink.

1 Response to Setting up Wireless Networking on Debian Stretch

  1. codeinfig says:

    Let me know if you get wicd-curses working on there. there are also front-ends for wpa_supplicant, some of which probably work. Of course its also good to have a working wpa_supplicant configuration to start from, like you do here.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.