{"id":113,"date":"2013-12-11T00:57:55","date_gmt":"2013-12-11T00:57:55","guid":{"rendered":"http:\/\/nofl.biz\/blog\/?p=113"},"modified":"2013-12-11T00:57:55","modified_gmt":"2013-12-11T00:57:55","slug":"113","status":"publish","type":"post","link":"https:\/\/beneford.com\/Blog\/index.php\/2013\/12\/11\/113\/","title":{"rendered":"Raspberry Pi WiFi Automatic Connection"},"content":{"rendered":"<p>By default, RPi doesn&#8217;t connect to the WiFi automatically, which is annoying, especially when you don&#8217;t have keyboard\/mouse\/screen connected.<\/p>\n<p>You can fix this by:<\/p>\n<p>First connect to the WiFi using the WiFi app. This will include the following lines in \/etc\/network\/interfaces:<\/p>\n<pre>allow-hotplug wlan0\niface wlan0 inet manual\nwpa-roam \/etc\/wpa_supplicant\/wpa_supplicant.conf\niface default inet dhcp<\/pre>\n<p>Then edit \/etc\/wpa_supplicant\/wpa_supplicant.conf<\/p>\n<pre>ctrl_interface=DIR=\/var\/run\/wpa_supplicant GROUP=netdev\n<span style=\"color: #222222; font-family: 'Courier 10 Pitch', Courier, monospace; line-height: 21px;\">update_config=1\n<\/span><span style=\"color: #222222; font-family: 'Courier 10 Pitch', Courier, monospace; line-height: 21px;\">network={\n\u00a0 \u00a0 \u00a0 \u00a0 ssid=\"SSID\"\n\u00a0 \u00a0 \u00a0 \u00a0 psk=\"pre-shared-key\"\n\u00a0 \u00a0 \u00a0 \u00a0 proto=RSN\n\u00a0 \u00a0 \u00a0 \u00a0 key_mgmt=WPA-PSK\n\u00a0 \u00a0 \u00a0 \u00a0 pairwise=TKIP\n        auth_alg=OPEN\n}\u00a0<\/span><\/pre>\n<p>You can repeat the network block for other networks you&#8217;d like to automatically connect to.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, RPi doesn&#8217;t connect to the WiFi automatically, which is annoying, especially when you don&#8217;t have keyboard\/mouse\/screen connected. You can fix this by: First connect to the WiFi using the WiFi app. This will include the following lines in \/etc\/network\/interfaces: allow-hotplug wlan0 iface wlan0 inet manual wpa-roam \/etc\/wpa_supplicant\/wpa_supplicant.conf iface default inet dhcp Then edit [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4],"tags":[],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-linux","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/beneford.com\/Blog\/index.php\/wp-json\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/beneford.com\/Blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/beneford.com\/Blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/beneford.com\/Blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/beneford.com\/Blog\/index.php\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":0,"href":"https:\/\/beneford.com\/Blog\/index.php\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"wp:attachment":[{"href":"https:\/\/beneford.com\/Blog\/index.php\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beneford.com\/Blog\/index.php\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beneford.com\/Blog\/index.php\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}