{"id":40,"date":"2015-12-27T21:50:54","date_gmt":"2015-12-27T21:50:54","guid":{"rendered":"http:\/\/bytewyse.org\/?page_id=40"},"modified":"2016-04-24T21:35:05","modified_gmt":"2016-04-24T21:35:05","slug":"initial-configuration-and-setup","status":"publish","type":"page","link":"https:\/\/bytewyse.org\/?page_id=40","title":{"rendered":"Initial Configuration and Setup"},"content":{"rendered":"<p class=\"p1\"><span class=\"s1\">All plugged in and the Pi boots to the Raspbian GUI in a shade under 30 seconds.<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">Two immediate tasks are:<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">Set up the network connection and turn off the default boot to GUI.<\/span><\/p>\n<h3 class=\"p1\"><strong>Network Setup<\/strong><\/h3>\n<p class=\"p1\">Both of my WiFi access points were detected without problems and connecting was a simple matter of selecting the desired AP and entering the password. Network connection established.<\/p>\n<p class=\"p1\"><span class=\"s1\">The networking defaults to a DHCP connection which is irritating because I expected to be given the option to select either static or dynamic addressing, especially as, like me, most people will probably run this as a headless device accessed via SSH. \u00a0I&#8217;ll fix this later.<\/span><\/p>\n<p class=\"p1\">With the network up and connection to the Internet established next task is to get the latest updates. \u00a0For this I had now moved to the laptop and was accessing the Pi via SSH:<\/p>\n<pre class=\"p1\">pi@&lt;IP_address&gt;<\/pre>\n<pre class=\"p1\">password:raspberry<\/pre>\n<pre class=\"p1\">apt-get dist-upgrade<\/pre>\n<p class=\"p1\">My temporary and lazy fix to the DHCP issue is to simply reserve an IP address in the DHCP pool on the router based on MAC address of the Pi. \u00a0To find the MAC address of the configured interfaces:<\/p>\n<pre class=\"p1\">root@raspberrypi:~# ifconfig<\/pre>\n<p>and looking for the eth0 (wired) and wlan0 (WiFi)<\/p>\n<pre class=\"p1\">eth0 Link encap:Ethernet <strong>HWaddr b8:27:eb:xx:xx:xx<\/strong>\r\n inet6 addr: fe80::6a71:875f:7fb:ee39\/64 Scope:Link\r\n UP BROADCAST MULTICAST MTU:1500 Metric:1\r\n RX packets:0 errors:0 dropped:0 overruns:0 frame:0\r\n TX packets:0 errors:0 dropped:0 overruns:0 carrier:0\r\n collisions:0 txqueuelen:1000\r\n RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)<\/pre>\n<pre>lo Link encap:Local Loopback\r\n inet addr:127.0.0.1 Mask:255.0.0.0\r\n inet6 addr: ::1\/128 Scope:Host\r\n UP LOOPBACK RUNNING MTU:65536 Metric:1\r\n RX packets:136 errors:0 dropped:0 overruns:0 frame:0\r\n TX packets:136 errors:0 dropped:0 overruns:0 carrier:0\r\n collisions:0 txqueuelen:0\r\n RX bytes:11856 (11.5 KiB) TX bytes:11856 (11.5 KiB)<\/pre>\n<pre>wlan0 Link encap:Ethernet <strong>HWaddr 00:0f:60:xx:xx:xx<\/strong>\r\n inet addr:192.168.4.108 Bcast:192.168.4.255 Mask:255.255.255.0\r\n inet6 addr: fe80::6d5e:729d:2040:936e\/64 Scope:Link\r\n UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1\r\n RX packets:168069 errors:0 dropped:0 overruns:0 frame:0\r\n TX packets:80380 errors:0 dropped:0 overruns:0 carrier:0\r\n collisions:0 txqueuelen:1000\r\n RX bytes:211061737 (201.2 MiB) TX bytes:7564478 (7.2 MiB)<\/pre>\n<h3><strong>Boot to CLI<\/strong><\/h3>\n<p>Raspbian provides a convenient setting in the Pi Preferences to &#8220;Boot to Prompt&#8221; or &#8220;Boot to GUI&#8221;. Select the former and reboot as prompted.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>All plugged in and the Pi boots to the Raspbian GUI in a shade under 30 seconds. Two immediate tasks are: Set up the network connection and turn off the default boot to GUI. Network Setup Both of my WiFi access points were detected without problems and connecting was a simple matter of selecting the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":36,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-40","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/bytewyse.org\/index.php?rest_route=\/wp\/v2\/pages\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bytewyse.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bytewyse.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bytewyse.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bytewyse.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":7,"href":"https:\/\/bytewyse.org\/index.php?rest_route=\/wp\/v2\/pages\/40\/revisions"}],"predecessor-version":[{"id":60,"href":"https:\/\/bytewyse.org\/index.php?rest_route=\/wp\/v2\/pages\/40\/revisions\/60"}],"up":[{"embeddable":true,"href":"https:\/\/bytewyse.org\/index.php?rest_route=\/wp\/v2\/pages\/36"}],"wp:attachment":[{"href":"https:\/\/bytewyse.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}