{"id":2161,"date":"2017-11-23T14:52:46","date_gmt":"2017-11-23T13:52:46","guid":{"rendered":"https:\/\/bob-team.de\/wordpress\/?p=2161"},"modified":"2018-06-16T16:49:46","modified_gmt":"2018-06-16T14:49:46","slug":"raspberry-pi-installation","status":"publish","type":"post","link":"https:\/\/bob-team.de\/wordpress\/2017\/11\/23\/raspberry-pi-installation\/","title":{"rendered":"Raspberry Pi Installation"},"content":{"rendered":"<p>&ndash; download Raspbian Stretch Lite (2017-09-07-raspbian-stretch-lite.zip) from https:\/\/www.raspberrypi.org\/downloads\/raspbian\/<br \/>\n&ndash; download Win32 Disk Imager (win32diskimager-1.0.0-install.exe) from https:\/\/sourceforge.net\/projects\/win32diskimager\/files\/Archive\/<\/p>\n<pre lang=\"bash\">CertUtil -hashfile 2017-09-07-raspbian-stretch-lite.zip SHA256\r\nSHA256-Hash der Datei 2017-09-07-raspbian-stretch-lite.zip:\r\nbd 2c 04 b9 41 54 c9 80 4c c1 f3 06 9d 15 e9 84 c9 27 b7 50 05 6d d8 6b 9d 86 a0 ad 4b e9 7f 12\r\nCertUtil -hashfile win32diskimager-1.0.0-install.exe MD5\r\nMD5-Hash der Datei win32diskimager-1.0.0-install.exe:\r\nbe 92 e7 6b aa bc 97 b3 f0 93 ff 73 4d d3 f7 5b<\/pre>\n<p>&ndash; start Win32 Disk Imager&#8230;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/bob-team.de\/wordpress\/wp-content\/uploads\/2017\/11\/win32diskimager.jpg\" alt=\"\" width=\"420\" height=\"254\" class=\"size-full wp-image-2164\" srcset=\"https:\/\/bob-team.de\/wordpress\/wp-content\/uploads\/2017\/11\/win32diskimager.jpg 420w, https:\/\/bob-team.de\/wordpress\/wp-content\/uploads\/2017\/11\/win32diskimager-300x181.jpg 300w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/p>\n<p>&ndash; release and reconnect the MicroSD card (it comes a partition &#8222;boot&#8220;)<br \/>\n&ndash; in partition &#8222;boot&#8220; create a file with name <a href=\"https:\/\/www.raspberrypi.org\/documentation\/remote-access\/ssh\/\">&#8222;ssh&#8220;<\/a> (content does not matter)<br \/>\n&ndash; also in partition &#8222;boot&#8220; create a file with name <a href=\"https:\/\/www.raspberrypi.org\/documentation\/configuration\/wireless\/wireless-cli.md\">&#8222;wpa_supplicant.conf&#8220;<\/a> (use program <a href=\"https:\/\/notepad-plus-plus.org\">Notepad++<\/a> for correctly format)&#8230;<\/p>\n<pre lang=\"bash\">ctrl_interface=DIR=\/var\/run\/wpa_supplicant GROUP=netdev\r\nupdate_config=1\r\ncountry=DE\r\n\r\nnetwork={\r\n  ssid=\"...\"\r\n  psk=\"...\"\r\n}<\/pre>\n<p>&ndash; the files &#8222;ssh&#8220; and &#8222;wpa_supplicant.conf&#8220; will always deleted during boot<br \/>\n&ndash; in our case we configure the DHCP by mac address (she starts with <a href=\"http:\/\/macaddress.webwat.ch\/hwaddr\/B8:27:EB\">B8:27:EB<\/a>)<br \/>\n&ndash; put the card into the Raspberry Pi and connect the power supply<br \/>\n&ndash; after 30 seconds join the computer with <a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/\">Putty<\/a> (username &#8222;pi&#8220;, password &#8222;raspberry&#8220;)<\/p>\n<p>we are working work in Putty from now on<\/p>\n<p>&ndash; <code>sudo passwd root<\/code><br \/>\n&ndash; <code>sudo passwd pi<\/code><br \/>\n&ndash; <code>sudo vi \/etc\/network\/interfaces<\/code><\/p>\n<pre lang=\"bash\">...\r\nauto wlan0\r\n        iface wlan0 inet dhcp\r\n        wpa-conf \/etc\/wpa_supplicant\/wpa_supplicant.conf\r\n        wireless-power off<\/pre>\n<p>&ndash; <code>sudo vi \/etc\/rc.local<\/code><\/p>\n<pre lang=\"bash\">...\r\n\/usr\/bin\/tvservice -o\r\nexit 0<\/pre>\n<p>&ndash; <code>sudo vi \/boot\/config.txt<\/code><\/p>\n<pre lang=\"bash\">...\r\ndtparam=act_led_trigger=none\r\ndtparam=act_led_activelow=on<\/pre>\n<p>&ndash; use <code>sudo vi \/etc\/ssh\/sshd_config<\/code> and configure Port, X11Forwarding and AllowUsers<br \/>\n&ndash; <code>sudo systemctl restart ssh<\/code><\/p>\n<p>see also: <a href=\"https:\/\/nodered.org\/docs\/hardware\/raspberrypi\">Running on Raspberry Pi<\/a> + <a href=\"https:\/\/www.raspberrypi.org\/documentation\/\">Raspberry Pi Documentation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&ndash; download Raspbian Stretch Lite (2017-09-07-raspbian-stretch-lite.zip) from https:\/\/www.raspberrypi.org\/downloads\/raspbian\/ &ndash; download Win32 Disk Imager (win32diskimager-1.0.0-install.exe) from https:\/\/sourceforge.net\/projects\/win32diskimager\/files\/Archive\/ CertUtil -hashfile 2017-09-07-raspbian-stretch-lite.zip SHA256 SHA256-Hash der Datei 2017-09-07-raspbian-stretch-lite.zip: bd 2c 04 b9 41 54 c9 80 4c c1 f3 06 9d 15 e9 84 c9 27 b7 50 05 6d d8 6b 9d 86 a0 ad 4b e9 7f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[104],"tags":[163],"class_list":["post-2161","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi","tag-certutil","entry"],"_links":{"self":[{"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/posts\/2161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/comments?post=2161"}],"version-history":[{"count":14,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/posts\/2161\/revisions"}],"predecessor-version":[{"id":2348,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/posts\/2161\/revisions\/2348"}],"wp:attachment":[{"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/media?parent=2161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/categories?post=2161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/tags?post=2161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}