{"id":713,"date":"2020-05-13T20:13:17","date_gmt":"2020-05-13T20:13:17","guid":{"rendered":"http:\/\/jonescarvalho.com\/Blog\/?p=713"},"modified":"2020-05-13T20:16:14","modified_gmt":"2020-05-13T20:16:14","slug":"713","status":"publish","type":"post","link":"https:\/\/jonescarvalho.com\/Blog\/?p=713","title":{"rendered":"Configurar Internet Wifi na raspberry"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>By:\u00a0<a href=\"https:\/\/astroprint.zendesk.com\/hc\/en-us\/articles\/207866186-Can-I-configure-the-Raspberry-Pi-network-myself-\" target=\"_blank\">https:\/\/astroprint.zendesk.com\/hc\/en-us\/articles\/207866186-Can-I-configure-the-Raspberry-Pi-network-myself-<\/a><\/p>\n<p>However, this is pretty advanced and you should know what you&#8217;re doing. If you&#8217;re good with Linux and have done it before, go ahead and connect your Raspberry Pi to you network using whatever methods you&#8217;re familiar with.<\/p>\n<p>Once done, you need one more change to the AstroBox settings to let the software<a tabindex=\"-1\" href=\"https:\/\/astroprint.zendesk.com\/hc\/en-us\/articles\/207866186-Can-I-configure-the-Raspberry-Pi-network-myself-\" target=\"_blank\" rel=\"noopener\">astroprint.zendesk.com\/\u2026\/207866186-Can-I-configure-the-Raspberry-Pi-network-myself-<\/a> know that you have manually connected the box to the internet. You can do this by adding the following lines to\u00a0<em>\/etc\/astrobox\/config.yaml<\/em>\u00a0<em>\u00a0<\/em>(Note the indentation, exactly 2 spaces before\u00a0<em>manager<\/em>)<em>:<\/em><\/p>\n<pre>network:\r\n   manager: manual\r\n<\/pre>\n<p>then restart your astrobox and that should be it!<\/p>\n<pre>$ sudo service astrobox restart<\/pre>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>For those wanting to config your own wifi connection, login to your pi using ssh or keyboard and monitor. Edit the network interfaces files by typing:<\/p>\n<pre>$\u00a0sudo nano \/etc\/network\/interfaces<\/pre>\n<p>Edit the file by adding: (Leave the &#8220;&#8221; around the ssid and password)<\/p>\n<pre><span class=\"pln\">allow<\/span><span class=\"pun\">-<\/span><span class=\"pln\">hotplug wlan0<\/span>\r\n<span class=\"kwd\">auto<\/span><span class=\"pln\"> wlan0<\/span>\r\n<span class=\"pln\">\u00a0<\/span>\r\n<span class=\"pln\">iface wlan0 inet dhcp<\/span>\r\n<span class=\"pln\">        wpa<\/span><span class=\"pun\">-<\/span><span class=\"pln\">ssid <\/span><span class=\"str\">\"YOUR-WIFI-NAME\"<\/span>\r\n<span class=\"pln\">        wpa<\/span><span class=\"pun\">-<\/span><span class=\"pln\">psk <\/span><span class=\"str\">\"PASSWORD-TO-WIFI\"<\/span><\/pre>\n<p>Save the file<\/p>\n<ul>\n<li>Hit\u00a0<strong>Ctrl + X<\/strong>\u00a0(to exit)<\/li>\n<li>It will ask if you want to save Hit\u00a0<strong>Y<\/strong><\/li>\n<li>Then hit\u00a0<strong>ENTER<\/strong><\/li>\n<\/ul>\n<p>Reboot the pi<\/p>\n<pre>$ sudo reboot<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; By:\u00a0https:\/\/astroprint.zendesk.com\/hc\/en-us\/articles\/207866186-Can-I-configure-the-Raspberry-Pi-network-myself- However, this is pretty advanced and you should know what you&#8217;re [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[76,74,75],"class_list":["post-713","post","type-post","status-publish","format-standard","hentry","category-dicas","tag-linux","tag-raspberry","tag-wifi"],"_links":{"self":[{"href":"https:\/\/jonescarvalho.com\/Blog\/index.php?rest_route=\/wp\/v2\/posts\/713"}],"collection":[{"href":"https:\/\/jonescarvalho.com\/Blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jonescarvalho.com\/Blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jonescarvalho.com\/Blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jonescarvalho.com\/Blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=713"}],"version-history":[{"count":7,"href":"https:\/\/jonescarvalho.com\/Blog\/index.php?rest_route=\/wp\/v2\/posts\/713\/revisions"}],"predecessor-version":[{"id":719,"href":"https:\/\/jonescarvalho.com\/Blog\/index.php?rest_route=\/wp\/v2\/posts\/713\/revisions\/719"}],"wp:attachment":[{"href":"https:\/\/jonescarvalho.com\/Blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jonescarvalho.com\/Blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jonescarvalho.com\/Blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}