Setting up wireless on a Raspberry Pi is very easy, although while googling the topic you get a huge range of results. Here are the two steps I took to setup my wireless.
Edit interfaces config file.
1 |
pi@raspberrypi:~ $ sudo vim /etc/network/interfaces |
Under the wlan0 section, ensure it configured to dhcp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d auto lo iface lo inet loopback iface eth0 inet manual allow-hotplug wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf |
Edit the WPA supplicant file and enter your SSID and WPA password.
1 |
pi@raspberrypi:~ $ sudo vim /etc/wpa_supplicant/wpa_supplicant.conf |
Your spa_supplicant file should look like this.
1 2 3 4 5 6 7 |
country=AU ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="mynetworkname" psk="mypa55word" } |