Skip to content

Instantly share code, notes, and snippets.

@vallettea
Last active July 10, 2017 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vallettea/656a729efbdf8af162a35f2430bfbf9c to your computer and use it in GitHub Desktop.
Save vallettea/656a729efbdf8af162a35f2430bfbf9c to your computer and use it in GitHub Desktop.
setup wifi on rpi3

in /etc/network/interfaces:

source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

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

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

in /etc/wpa_supplicant/wpa_supplicant.conf:

country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="WeAreAnts"
    psk="..."
}

then set dns by adding the line

prepend domain-name-servers 8.8.8.8;

in /etc/dhcp/dhclient.conf

then systemctl daemon-reload and systemctl restart networking.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment