{"id":588,"date":"2019-06-06T19:47:56","date_gmt":"2019-06-06T18:47:56","guid":{"rendered":"https:\/\/notiz.comanet.xyz\/?p=588"},"modified":"2019-06-06T19:47:56","modified_gmt":"2019-06-06T18:47:56","slug":"linux-raspberry-pi-wifi-without-a-keyboard-or-monitor-or-ethernet","status":"publish","type":"post","link":"https:\/\/notiz.comanet.xyz\/?p=588","title":{"rendered":"Linux &#8211; Raspberry Pi  &#8211; WiFi without a keyboard or monitor (or ethernet)"},"content":{"rendered":"<section class=\"step\">1<\/p>\n<h2 id=\"put-the-raspbian-sd-card-into-your-computer\"><a class=\"permalink\" href=\"https:\/\/howchoo.com\/g\/ndy1zte2yjn\/how-to-set-up-wifi-on-your-raspberry-pi-without-ethernet#put-the-raspbian-sd-card-into-your-computer\">Put the Raspbian SD card into your computer<\/a><\/h2>\n<div>\n<div>\n<p>If you don&#8217;t have Raspbian installed, <a class=\"guide-link\" href=\"https:\/\/howchoo.com\/g\/ndg2mtbmnmn\/how-to-install-raspbian-stretch-on-the-raspberry-pi\" target=\"_blank\" rel=\"noopener noreferrer\" data-callout=\"guide\" data-guid=\"ndg2mtbmnmn\">go ahead and install it<\/a>. Make sure the SD card with Raspbian is in your computer.<\/p>\n<\/div>\n<\/div>\n<aside>\n<div class=\"note callout\">\n<div class=\"note__heading\">Mentioned here:<\/div>\n<ul class=\"loop\">\n<li>\n<h4><a href=\"https:\/\/howchoo.com\/g\/ndg2mtbmnmn\/how-to-install-raspbian-stretch-on-the-raspberry-pi\" target=\"_blank\" rel=\"noopener noreferrer\">How to install Raspbian Stretch on the Raspberry Pi<\/a><\/h4>\n<\/li>\n<\/ul>\n<\/div>\n<\/aside>\n<\/section>\n<div id=\"ad_placeholder_1\"><\/div>\n<section class=\"step\">2<\/p>\n<h2 id=\"navigate-to-the-boot-directory\"><a class=\"permalink\" href=\"https:\/\/howchoo.com\/g\/ndy1zte2yjn\/how-to-set-up-wifi-on-your-raspberry-pi-without-ethernet#navigate-to-the-boot-directory\">Navigate to the boot directory<\/a><\/h2>\n<div>\n<div>\n<p>You&#8217;ll have to locate the boot directory, on my Mac it&#8217;s in \/Volumes\/boot.<\/p>\n<pre class=\" language-bash\"><code class=\" language-bash\"><span class=\"token function\">cd<\/span> \/Volumes\/boot<\/code><\/pre>\n<\/div>\n<\/div>\n<\/section>\n<div id=\"ad_placeholder_2\"><\/div>\n<section class=\"step\">3<\/p>\n<h2 id=\"add-your-wpa_supplicantconf-file\"><a class=\"permalink\" href=\"https:\/\/howchoo.com\/g\/ndy1zte2yjn\/how-to-set-up-wifi-on-your-raspberry-pi-without-ethernet#add-your-wpa_supplicantconf-file\">Add your wpa_supplicant.conf file<\/a><\/h2>\n<div>\n<div>\n<p>Create a file in this directory called <strong>wpa_supplicant.conf<\/strong>. The file should contain the following details:<\/p>\n<h3>For <a href=\"https:\/\/howchoo.com\/g\/zthlmgy2yzn\/how-to-install-raspbian-jessie-on-the-raspberry-pi\" target=\"_blank\" rel=\"noopener noreferrer\">Raspbian Jessie<\/a>:<\/h3>\n<pre class=\" language-bash\"><code class=\" language-bash\">network<span class=\"token operator\">=<\/span><span class=\"token punctuation\">{<\/span>\r\n    ssid<span class=\"token operator\">=<\/span><span class=\"token string\">\"YOUR_NETWORK_NAME\"<\/span>\r\n    psk<span class=\"token operator\">=<\/span><span class=\"token string\">\"YOUR_PASSWORD\"<\/span>\r\n    key_mgmt<span class=\"token operator\">=<\/span>WPA-PSK\r\n<span class=\"token punctuation\">}<\/span><\/code><\/pre>\n<h3>For <a href=\"https:\/\/howchoo.com\/g\/ndg2mtbmnmn\/how-to-install-raspbian-stretch-on-the-raspberry-pi\" target=\"_blank\" rel=\"noopener noreferrer\">Raspbian Stretch<\/a>:<\/h3>\n<pre class=\" language-bash\"><code class=\" language-bash\">ctrl_interface<span class=\"token operator\">=<\/span>DIR<span class=\"token operator\">=<\/span>\/var\/run\/wpa_supplicant GROUP<span class=\"token operator\">=<\/span>netdev\r\nnetwork<span class=\"token operator\">=<\/span><span class=\"token punctuation\">{<\/span>\r\n    ssid<span class=\"token operator\">=<\/span><span class=\"token string\">\"YOUR_NETWORK_NAME\"<\/span>\r\n    psk<span class=\"token operator\">=<\/span><span class=\"token string\">\"YOUR_PASSWORD\"<\/span>\r\n    key_mgmt<span class=\"token operator\">=<\/span>WPA-PSK\r\n<span class=\"token punctuation\">}<\/span><\/code><\/pre>\n<h3>Connecting to unsecured networks<\/h3>\n<p>For wireless networks with no password, use the following:<\/p>\n<pre class=\" language-bash\"><code class=\" language-bash\">ctrl_interface<span class=\"token operator\">=<\/span>DIR<span class=\"token operator\">=<\/span>\/var\/run\/wpa_supplicant GROUP<span class=\"token operator\">=<\/span>netdev <span class=\"token comment\"># Include this line for Stretch<\/span>\r\nnetwork<span class=\"token operator\">=<\/span><span class=\"token punctuation\">{<\/span>\r\n    ssid<span class=\"token operator\">=<\/span><span class=\"token string\">\"YOUR_NETWORK_NAME\"<\/span>\r\n    key_mgmt<span class=\"token operator\">=<\/span>NONE\r\n<span class=\"token punctuation\">}<\/span><\/code><\/pre>\n<p>With this file in place, Raspbian will move it in <strong>\/etc\/wpa_supplicant\/<\/strong> when the system is booted.<\/p>\n<p>The next step is to boot the Pi and test, but while the SD card is still in your computer I&#8217;ll mention this now. If you&#8217;re going to try to <a class=\"guide-link\" href=\"https:\/\/howchoo.com\/g\/ote0ywmzywj\/how-to-enable-ssh-on-raspbian-without-a-screen\" target=\"_blank\" rel=\"noopener noreferrer\" data-callout=\"guide\" data-guid=\"ote0ywmzywj\">connect via SSH, you may need to enable it first<\/a>. The process is similar to this one.<\/p>\n<\/div>\n<\/div>\n<aside>\n<div class=\"note callout\">\n<div class=\"note__heading\">Mentioned here:<\/div>\n<ul class=\"loop\">\n<li>\n<h4><a href=\"https:\/\/howchoo.com\/g\/ote0ywmzywj\/how-to-enable-ssh-on-raspbian-without-a-screen\" target=\"_blank\" rel=\"noopener noreferrer\">How to enable SSH on Raspberry Pi without a screen<\/a><\/h4>\n<\/li>\n<\/ul>\n<\/div>\n<\/aside>\n<\/section>\n<div id=\"ad_placeholder_3\"><\/div>\n<section class=\"step\">4<\/p>\n<h2 id=\"put-your-sd-card-in-the-raspberry-pi-boot-and-connect\"><a class=\"permalink\" href=\"https:\/\/howchoo.com\/g\/ndy1zte2yjn\/how-to-set-up-wifi-on-your-raspberry-pi-without-ethernet#put-your-sd-card-in-the-raspberry-pi-boot-and-connect\">Put your SD card in the Raspberry Pi, boot, and connect<\/a><\/h2>\n<div>\n<div>\n<p>The next step is to put the micro SD card into the <a class=\"product-link\" href=\"https:\/\/howchoo.com\/resource\/tool\/zjc3ngm3nze\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" data-callout=\"product\" data-guid=\"zjc3ngm3nze\">Pi<\/a>, boot, and then try to connect via WiFi.<\/p>\n<\/div>\n<\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>1 Put the Raspbian SD card into your computer If you don&#8217;t have Raspbian installed, go ahead and install it. Make sure the SD card with Raspbian is in your computer. Mentioned here: How to install Raspbian Stretch on the Raspberry Pi 2 Navigate to the boot directory You&#8217;ll have to locate the boot directory,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":589,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6],"tags":[],"class_list":["post-588","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to-s","category-linux"],"_links":{"self":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=588"}],"version-history":[{"count":2,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions"}],"predecessor-version":[{"id":591,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/posts\/588\/revisions\/591"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=\/wp\/v2\/media\/589"}],"wp:attachment":[{"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notiz.comanet.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}