{"id":745,"date":"2017-08-22T22:19:39","date_gmt":"2017-08-22T20:19:39","guid":{"rendered":"https:\/\/www.yelloworb.com\/orbblog\/?p=745"},"modified":"2017-08-22T22:20:50","modified_gmt":"2017-08-22T20:20:50","slug":"configure-wlan-on-raspberry-pi-z-w","status":"publish","type":"post","link":"https:\/\/www.yelloworb.com\/orbblog\/configure-wlan-on-raspberry-pi-z-w\/","title":{"rendered":"Configure WLAN on Raspberry Pi Z W"},"content":{"rendered":"<p>To setup my Raspberry Pi Z W I have combined two different guides since editing the files on the SD did not work, nor did I had the energy to setup Vagrant.<\/p>\n<p>Start by flashing a micro SD card as described <a href=\"https:\/\/www.raspberrypi.org\/documentation\/installation\/installing-images\/README.md\">here<\/a> using Etcher.<\/p>\n<p>Insert the card into a Mac or PC and add <code class=\"\" data-line=\"\">enable_uart=1<\/code> to the end of <code class=\"\" data-line=\"\">config.txt<\/code> as described <a href=\"https:\/\/learn.adafruit.com\/adafruits-raspberry-pi-lesson-5-using-a-console-cable\/enabling-serial-console\">here<\/a>.<\/p>\n<p>Insert the SD card in the Raspberry Pi and boot it as described <a href=\"https:\/\/learn.adafruit.com\/raspberry-pi-zero-creation\/give-it-life#booting-with-a-console-cable\">here<\/a> using a USB serial cable. Then in a terminal window run <code class=\"\" data-line=\"\">screen \/dev\/tty.usbserial-A7005Gpd 115200<\/code> (change to your device tty) to connect to the serial terminal on the Raspberry Pi.<\/p>\n<p>Now you can follow <a href=\"https:\/\/slippytrumpet.io\/posts\/raspberry-pi-zero-w-setup\/\">this guide<\/a> from step 3. Though I did not configure mine for two networks and here are how my configuration files look like:<\/p>\n<p><code class=\"\" data-line=\"\">sudo nano \/etc\/wpa_supplicant\/wpa_supplicant.conf<\/code><\/p>\n<p><code class=\"\" data-line=\"\"><br \/>\ncountry=SE<br \/>\nctrl_interface=DIR=\/var\/run\/wpa_supplicant GROUP=netdev<br \/>\nupdate_config=1<\/p>\n<p>network={<br \/>\n    ssid=&quot;SSID_OF_NETWORK_1&quot;<br \/>\n    psk=&quot;password&quot;<br \/>\n    id_str=&quot;home&quot;<br \/>\n}<br \/>\n<\/code><\/p>\n<p><code class=\"\" data-line=\"\">sudo nano \/etc\/network\/interfaces<\/code><\/p>\n<p><code class=\"\" data-line=\"\"><br \/>\nsource-directory \/etc\/network\/interfaces.d<\/p>\n<p>auto lo<br \/>\niface lo inet loopback<\/p>\n<p>iface eth0 inet manual<\/p>\n<p>allow-hotplug wlan0<br \/>\niface wlan0 inet manual<br \/>\n    wpa-roam \/etc\/wpa_supplicant\/wpa_supplicant.conf<\/p>\n<p>iface home inet dhcp<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To setup my Raspberry Pi Z W I have combined two different guides since editing the files on the SD did not work, nor did I had the energy to setup Vagrant. Start by flashing a micro SD card as described here using Etcher. Insert the card into a Mac or PC and add enable_uart=1 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[32,29,76],"tags":[],"class_list":["post-745","post","type-post","status-publish","format-standard","hentry","category-hacking","category-hardware-projects","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/posts\/745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/comments?post=745"}],"version-history":[{"count":1,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/posts\/745\/revisions"}],"predecessor-version":[{"id":746,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/posts\/745\/revisions\/746"}],"wp:attachment":[{"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/media?parent=745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/categories?post=745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/tags?post=745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}