Skip to content

Instantly share code, notes, and snippets.

@kimjayney
Last active May 28, 2020 12:20
Show Gist options
  • Save kimjayney/5d8793f1f611f66b84a0af7157550a25 to your computer and use it in GitHub Desktop.
Save kimjayney/5d8793f1f611f66b84a0af7157550a25 to your computer and use it in GitHub Desktop.
RPi Wifi Auto Connect
  • /etc/network/interfaces
# 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 manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

  • /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
	ssid="12121412ap"
	psk="123123456"
	proto=RSN
	key_mgmt=WPA-PSK
	pairwise=CCMP
	auth_alg=OPEN
}

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