{"id":2,"date":"2014-03-18T11:46:13","date_gmt":"2014-03-18T11:46:13","guid":{"rendered":"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/?p=2"},"modified":"2021-03-15T14:34:11","modified_gmt":"2021-03-15T14:34:11","slug":"the-starting-point","status":"publish","type":"post","link":"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/2014\/03\/18\/the-starting-point\/","title":{"rendered":"The Starting Point: Raspberry Pi Type A with WiPi"},"content":{"rendered":"<p>My first Raspberry Pi&#8230;<\/p>\n<div id=\"attachment_5\" style=\"width: 295px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/files\/2014\/03\/my_first_raspberry_pi_type_a.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5\" class=\"size-medium wp-image-5\" src=\"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/files\/2014\/03\/my_first_raspberry_pi_type_a-285x300.jpg\" alt=\"Raspberry Pi Type A with WiPi\" width=\"285\" height=\"300\" srcset=\"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/files\/2014\/03\/my_first_raspberry_pi_type_a-285x300.jpg 285w, https:\/\/blogs.ncl.ac.uk\/francisfranklin\/files\/2014\/03\/my_first_raspberry_pi_type_a-24x24.jpg 24w, https:\/\/blogs.ncl.ac.uk\/francisfranklin\/files\/2014\/03\/my_first_raspberry_pi_type_a.jpg 690w\" sizes=\"auto, (max-width: 285px) 100vw, 285px\" \/><\/a><p id=\"caption-attachment-5\" class=\"wp-caption-text\">Raspberry Pi Type A with WiPi<\/p><\/div>\n<p>The setup:<\/p>\n<ul>\n<li>Raspberry Pi Type A (one USB slot, no ethernet) that came with an 8GB SD card with Raspbian; supplied by RS Online (785-8645).<\/li>\n<li>A Dell LCD, keyboard and mouse salvaged from a workstation purchased in&#8230; 2005, I think; has DVI and VGA inputs.<\/li>\n<li>1 powered USB hub: Belkin F5U415UK, 4 USB 2.0 ports; supplied by RS Online (480-217).<\/li>\n<li>1 power supply for the Raspberry Pi; supplied by Farnell (2254792).<\/li>\n<li>1 USB WiFi (WiPi) dongle; supplied by Farnell (2133900).<\/li>\n<li>1 HDMI-to-DVI lead: Pro Signal PSG02574; supplied by Farnell (1813133).<\/li>\n<\/ul>\n<p>The Type A has no ethernet port, so I needed to get the WiFi working. The WiFi configuration tool was able to pick up the Newcastle University WiFi network, but was unable to maintain a connection.<\/p>\n<p style=\"font-weight:bold;font-size:larger\">Update (15\/3\/21)<\/p>\n<p>I have received some official advice from the university about how to connect to the university without plain-text passwords.<\/p>\n<blockquote>\n<p style=\"font-weight:bold;text-align:center\">Connecting Raspberry Pi to Enterprise Wi-Fi<\/p>\n<p style=\"font-style:italic;text-align:center\">(newcastle-university\/eduroam)<\/p>\n<p>Connecting to enterprise standard WiFi on a raspberry pi requires some additional setup in order to be able to connect.<\/p>\n<ol>\n<li>Whoever will be using\/is responsible for it, will need to generate a password hash, otherwise they would be storing and transmitting their password in plain text over Wi-Fi. They can do this with:\n<pre>echo -n <span style=\"color:red\">USERS_PASSWORD<\/span> | iconv -t utf16le | openssl md4<\/pre>\n<\/li>\n<li>They then need to update the wpa_supplicant.conf file with the details below. To open the file, run:\n<pre>sudo nano \/etc\/wpa_supplicant\/wpa_supplicant.conf<\/pre>\n<\/li>\n<li>Update that file to match the following details:\n<pre>network={\n\tssid=\"<span style=\"color:red\">newcastle-university<\/span>\"\n\tscan_ssid=1\n\tkey_mgmt=WPA-EAP\n\tgroup=CCMP TKIP\n\teap=PEAP\n\tidentity=\"<span style=\"color:red\">USERS_NID<\/span>\"\n\tpassword=hash:<span style=\"color:red\">USERS_PASSWORD_HASH<\/span>\n\tphase1=\"peapver=0\"\n\tphase2=\"MSCHAPV2\"\n}<\/pre>\n<\/li>\n<li>Press Ctrl + O followed by Enter to save, then Ctrl + X to close the file<\/li>\n<li>Run the following command to apply and save the config:\n<pre>wpa_cli \u2013i wlan0 reconfigure<\/pre>\n<\/li>\n<li>Wait for the Pi to show as connected to the WiFi network. At this point, you may need to restart for the connection to work.<\/li>\n<\/ol>\n<\/blockquote>\n<p style=\"font-weight:bold;font-size:larger\">Original Post &#8211; Non-Secure, Non-Recommended Method<\/p>\n<p>(I think it can work if you do it right. The second Raspberry Pi that I set up picked up the settings automatically but I made the mistake of selecting MSCHAPV2 from the drop-down menu instead of PEAP, which resulted in the configuration line in the file below becoming &#8220;eap=MSCHAPV2&#8221; rather than &#8220;eap=PEAP&#8221;.)<\/p>\n<p>I edited <b>\/etc\/wpa_supplicant\/wpa_supplicant.conf<\/b> by hand afterwards to:<\/p>\n<pre style=\"margin-left: 20px;background-color: #cccccc\">ctrl_interface=DIR=\/var\/run\/wpa_supplicant GROUP=netdev\nupdate_config=1\n\nnetwork={\n\tssid=\"newcastle-university\"\n\tproto=RSN\n\tkey_mgmt=WPA-EAP\n\tpairwise=CCMP\n\tauth_alg=OPEN\n\teap=PEAP\n\tphase2=\"auth=MSCHAPV2\"\n\tidentity=\"username\"\n\tpassword=\"password\"\n}\n<\/pre>\n<p>You&#8217;ll need to use your <em>username<\/em> and <em>password<\/em> (plain text, unfortunately) there.<\/p>\n<p>On reboot, the Raspberry Pi connected automatically to the university&#8217;s network and even the web proxy was detected and configured automatically.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My first Raspberry Pi&#8230; The setup: Raspberry Pi Type A (one USB slot, no ethernet) that came with an 8GB SD card with Raspbian; supplied by RS Online (785-8645). A Dell LCD, keyboard and mouse salvaged from a workstation purchased in&#8230; 2005, I think; has DVI and VGA inputs. 1 powered USB hub: Belkin F5U415UK, <a href='https:\/\/blogs.ncl.ac.uk\/francisfranklin\/2014\/03\/18\/the-starting-point\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1692,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[7,8,6,3,4,5,9],"class_list":["post-2","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi","tag-mschapv2","tag-peap","tag-peripherals","tag-type-a","tag-wifi","tag-wipi","tag-wpa_supplicant","category-2-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/wp-json\/wp\/v2\/posts\/2","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/wp-json\/wp\/v2\/users\/1692"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/wp-json\/wp\/v2\/comments?post=2"}],"version-history":[{"count":9,"href":"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/wp-json\/wp\/v2\/posts\/2\/revisions"}],"predecessor-version":[{"id":129,"href":"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/wp-json\/wp\/v2\/posts\/2\/revisions\/129"}],"wp:attachment":[{"href":"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/wp-json\/wp\/v2\/media?parent=2"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/wp-json\/wp\/v2\/categories?post=2"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ncl.ac.uk\/francisfranklin\/wp-json\/wp\/v2\/tags?post=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}