{"id":61,"date":"2017-03-12T21:19:45","date_gmt":"2017-03-12T21:19:45","guid":{"rendered":"http:\/\/www.albertosarullo.com\/blog\/?p=61"},"modified":"2017-05-30T05:47:35","modified_gmt":"2017-05-30T05:47:35","slug":"raspberry-pi-zero-w-headless-wifi-ssh-configuration-10-minutes","status":"publish","type":"post","link":"https:\/\/www.albertosarullo.com\/blog\/raspberry-pi-zero-w-headless-wifi-ssh-configuration-10-minutes","title":{"rendered":"Raspberry Pi Zero W: fast headless Wifi configuration with SSH"},"content":{"rendered":"<p>Yesterday\u00c2\u00a0I received\u00c2\u00a0a <strong>Raspberry Zero W<\/strong>, that for approximately $10 include\u00c2\u00a0Wifi and Bluetooth (byebye dongles) but no Ethernet port.<\/p>\n<p>This post contains the instructions for configuring the Raspberry Pi Zero W so that he connects to the wifi network at the first startup of Linux, without wasting time (after that, you can log on via SSH).<\/p>\n<ol>\n<li>Download Jessie Lite image from the <a href=\"https:\/\/www.raspberrypi.org\/downloads\/raspbian\/\">official repository<\/a>\u00c2\u00a0(5 min)<\/li>\n<li>Download <a href=\"https:\/\/etcher.io\/\">Etcher<\/a>\u00c2\u00a0and burn the image on SD card (5 min)<\/li>\n<li>Insert the SD card in your notebook and open the\u00c2\u00a0<strong>boot<\/strong> folder of the SD Card<\/li>\n<li>Create an (empty) file called <strong>ssh<\/strong> (this enable SSH on startup)<\/li>\n<li>Create a <strong>wpa_supplicant.conf<\/strong> file with the following content<\/li>\n<\/ol>\n<pre><code>network={\r\n    ssid=\"YOUR_WIFI_SSID\"\r\n    psk=\"YOUR_WIFI_PASSWORD\"\r\n    key_mgmt=WPA-PSK\r\n}<\/code><\/pre>\n<p>Insert the SD in your Raspberry Pi Zero W, attach the power USB, connect your computer to the wifi, scan the network to find the raspberry IP address (i use <a href=\"https:\/\/www.iwaxx.com\/lanscan\/\">lanscan<\/a> on OSX) and you can connect via <strong>SSH<\/strong> (the default password is raspberry)<\/p>\n<pre>ssh pi@raspberrypi<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-63\" src=\"http:\/\/www.albertosarullo.com\/blog\/wp-content\/uploads\/2017\/03\/IMG_20170312_213708-1024x656.jpg\" alt=\"\" width=\"640\" height=\"410\" srcset=\"https:\/\/www.albertosarullo.com\/blog\/wp-content\/uploads\/2017\/03\/IMG_20170312_213708-1024x656.jpg 1024w, https:\/\/www.albertosarullo.com\/blog\/wp-content\/uploads\/2017\/03\/IMG_20170312_213708-300x192.jpg 300w, https:\/\/www.albertosarullo.com\/blog\/wp-content\/uploads\/2017\/03\/IMG_20170312_213708-768x492.jpg 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday\u00c2\u00a0I received\u00c2\u00a0a Raspberry Zero W, that for approximately $10 include\u00c2\u00a0Wifi and Bluetooth (byebye dongles) but no Ethernet port. This post contains the instructions for configuring the Raspberry Pi Zero W so that he connects to the wifi network at the first startup of Linux, without wasting time (after that, you can log on via SSH). &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.albertosarullo.com\/blog\/raspberry-pi-zero-w-headless-wifi-ssh-configuration-10-minutes\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Raspberry Pi Zero W: fast headless Wifi configuration with SSH&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56,1],"tags":[72,73,69,68,70,71],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-raspberry","category-uncategorized","tag-configuration","tag-jessie-lite","tag-pi-zero-w","tag-raspberry","tag-ssh","tag-wifi"],"_links":{"self":[{"href":"https:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/comments?post=61"}],"version-history":[{"count":0,"href":"https:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/posts\/61\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/media?parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/categories?post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertosarullo.com\/blog\/wp-json\/wp\/v2\/tags?post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}