{"id":352,"date":"2021-03-16T15:53:34","date_gmt":"2021-03-16T15:53:34","guid":{"rendered":"http:\/\/www.peakproductions.at\/sides\/peakproductions\/?p=352"},"modified":"2021-04-09T18:44:31","modified_gmt":"2021-04-09T18:44:31","slug":"raspberry-pi-betriebsystem-installieren-mit-dem-wlan-verbinden-und-ssh-aktivieren-ohne-tastatur-und-maus","status":"publish","type":"post","link":"https:\/\/www.peakproductions.at\/sides\/peakproductions\/index.php\/2021\/03\/16\/raspberry-pi-betriebsystem-installieren-mit-dem-wlan-verbinden-und-ssh-aktivieren-ohne-tastatur-und-maus\/","title":{"rendered":"Raspberry Pi &#8211; Betriebsystem installieren, mit dem WLAN verbinden und ssh aktivieren (Ohne Tastatur und Maus)"},"content":{"rendered":"\n<p>Willkommen bie meinem ersten Beitrag \u00fcber Raspberry Pi. Der Raspberry Pi ist ein vielf\u00e4ltiger Einplatinencomputer, welcher zus\u00e4tzlich zu einem vollwertigen Linux-Betriebsystem, einen General Input Output Header (GPIO) hat. Der GPIO besitzt mehrere frei programmierbare Ein\/Ausg\u00e4nge, eine serielle Schnittstelle, i2c und vieles mehr. Dazu komme ich noch in sp\u00e4teren Beitr\u00e4gen. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ben\u00f6tigte Hardware<\/h2>\n\n\n\n<p>In diesem Beitrag geht es um die erste Konfiguration. Beim Raspberry Pi gibt es mittlerweile die verschiedensten Bauformen und Modelle. F\u00fcr dieses Tutorial verwende ich den Raspberry Pi 3B, auch wenn es schon den 4er gibt, bevorzuge ich oft noch den 3B, da dieser noch einen direkten HDMI-Ausgang hat. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"719\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/IMG_0730-2-1024x719.jpeg\" alt=\"\" class=\"wp-image-354\" srcset=\"https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/IMG_0730-2-1024x719.jpeg 1024w, https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/IMG_0730-2-300x211.jpeg 300w, https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/IMG_0730-2-768x539.jpeg 768w, https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/IMG_0730-2-1536x1078.jpeg 1536w, https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/IMG_0730-2-2048x1437.jpeg 2048w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>Raspberry Pi 3B<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>F\u00fcr dieses Tutorial verwendete Komponenten:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Raspberry Pi 3B<\/li><li>Original Raspberry Pi Netzteil mit 5,1V und 2,5A<\/li><li>SanDisk Ultra SD-Karte class10<\/li><li>3D-gedrucktes Geh\u00e4use<\/li><\/ul>\n\n\n\n<p>Noch kurz zu den Komponenten. An sich kann jedes USB-Netzteil mit einem passenden Micro-USB-Stecker verwendet werden. Es muss nur beachtet werden, dass es mindestens 2 Ampere, besser aber 2,5 Ampere hat. Das Kabel sollte nicht allzu d\u00fcnn sein, denn je geringer der Leiterschnitt, desto h\u00f6her der Widerstand und dann kommen nicht gen\u00fcgend Ampere an, obwohl das Netzteil ausreichend liefert. Die SD-Karte sollte mindestens class 10 sein, da sonst die Lese\/Schreibgeschwindigkeit zu gering ist und es zu Abst\u00fcrzen kommen kann.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1016\" height=\"1024\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/IMG_0731-2-1016x1024.jpeg\" alt=\"\" class=\"wp-image-355\" srcset=\"https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/IMG_0731-2-1016x1024.jpeg 1016w, https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/IMG_0731-2-298x300.jpeg 298w, https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/IMG_0731-2-150x150.jpeg 150w, https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/IMG_0731-2-768x774.jpeg 768w, https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/IMG_0731-2-1525x1536.jpeg 1525w, https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/IMG_0731-2.jpeg 1873w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>Raspberry Pi mit SD Karte und Adapter<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Zur Installation<\/h2>\n\n\n\n<p>Es gibt mehrere Wege das Betriebsystem zu installieren. F\u00fcr den Anfang verwende ich den Raspberry Pi Imager, der direkt auf der Webseite <strong><a href=\"http:\/\/www.raspberrypi.org\" target=\"_blank\" rel=\"noreferrer noopener\">www.raspberrypi.org<\/a><\/strong> heruntergeladen werden kann.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"816\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-13.55.02-1024x816.png\" alt=\"\" class=\"wp-image-356\" srcset=\"https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-13.55.02-1024x816.png 1024w, https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-13.55.02-300x239.png 300w, https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-13.55.02-768x612.png 768w, https:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-13.55.02.png 1393w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>Unter Software sind die ben\u00f6tigten Tools und Images<\/figcaption><\/figure>\n\n\n\n<p>Hier muss ein Betriebsystem ausgew\u00e4hlt werden. Ich habe mich f\u00fcr das Raspberry Pi OS entschieden.<\/p>\n\n\n\n<div id=\"wp-block-themeisle-blocks-slider-0760afb9\" class=\"wp-block-themeisle-blocks-slider glide\" data-per-view=\"1\" data-gap=\"0\" data-peek=\"0\" data-autoplay=\"true\" data-height=\"400px\" data-hide-arrows=\"false\"><div class=\"glide__track\" data-glide-el=\"track\"><div class=\"glide__slides\"><div class=\"wp-block-themeisle-blocks-slider-item-wrapper glide__slide\" tabindex=\"0\"><figure><img decoding=\"async\" class=\"wp-block-themeisle-blocks-slider-item\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-13.55.24-1024x649.png\" alt=\"\" title=\"\" data-id=\"357\"\/><\/figure><\/div><div class=\"wp-block-themeisle-blocks-slider-item-wrapper glide__slide\" tabindex=\"0\"><figure><img decoding=\"async\" class=\"wp-block-themeisle-blocks-slider-item\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-13.56.16.png\" alt=\"\" title=\"\" data-id=\"358\"\/><\/figure><\/div><div class=\"wp-block-themeisle-blocks-slider-item-wrapper glide__slide\" tabindex=\"0\"><figure><img decoding=\"async\" class=\"wp-block-themeisle-blocks-slider-item\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-13.56.25.png\" alt=\"\" title=\"\" data-id=\"359\"\/><\/figure><\/div><div class=\"wp-block-themeisle-blocks-slider-item-wrapper glide__slide\" tabindex=\"0\"><figure><img decoding=\"async\" class=\"wp-block-themeisle-blocks-slider-item\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-13.56.36.png\" alt=\"\" title=\"\" data-id=\"360\"\/><\/figure><\/div><\/div><div class=\"glide__bullets\" data-glide-el=\"controls[nav]\"><button class=\"glide__bullet\" data-glide-dir=\"=0\"><\/button><button class=\"glide__bullet\" data-glide-dir=\"=1\"><\/button><button class=\"glide__bullet\" data-glide-dir=\"=2\"><\/button><button class=\"glide__bullet\" data-glide-dir=\"=3\"><\/button><\/div><\/div><\/div>\n\n\n\n<p>Ebenfalls muss die SD-Karte als Ziel gew\u00e4hlt werden und schon kann es losgehen \ud83d\ude42<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Feinschliff<\/h2>\n\n\n\n<p>Nach erfolgreichem kopieren der Daten auf die SD-Karte k\u00f6nnte der Raspberry theoretisch bereits verwendet werden. Da bei fast jedem Projekt eine Verbindung mit dem WLAN n\u00fctzlich ist und ssh fast immer verwendet wird, konfigurieren wir das noch schnell. Dazu muss eine Datei ohne Endung unter der SD-Karte &#8211; welche jetzt boot hei\u00dft &#8211; angelegt werden. Ebenfalls wird eine Datei mit der Bezeichnung wpa_supplicant.conf ben\u00f6tigt. Die ssh-Datei muss nicht bearbeitet werden. In der wpa_supplicant.conf muss noch folgender Text eingef\u00fcgt werden und der Netzwerkname f\u00fcr das WLAN sowie das Kennwort erg\u00e4nzt werden. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Mac OSx<\/h3>\n\n\n\n<p>Um die Textdateien beim Mac anzulegen wird ein Terminal ben\u00f6tigt. Das l\u00e4sst sich ganz einfach mit &#8222;CMD + Leertaste&#8220; \u00f6ffnen. <\/p>\n\n\n\n<p>touch \/Volumes\/boot\/ssh<\/p>\n\n\n\n<p>touch \/Volumes\/boot\/wpa_supplicant.conf<\/p>\n\n\n\n<div id=\"wp-block-themeisle-blocks-slider-c1292f07\" class=\"wp-block-themeisle-blocks-slider glide\" data-per-view=\"1\" data-gap=\"0\" data-peek=\"0\" data-autoplay=\"true\" data-height=\"400px\" data-hide-arrows=\"false\"><div class=\"glide__track\" data-glide-el=\"track\"><div class=\"glide__slides\"><div class=\"wp-block-themeisle-blocks-slider-item-wrapper glide__slide\" tabindex=\"0\"><figure><img decoding=\"async\" class=\"wp-block-themeisle-blocks-slider-item\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-15.57.28.png\" alt=\"\" title=\"\" data-id=\"361\"\/><\/figure><\/div><div class=\"wp-block-themeisle-blocks-slider-item-wrapper glide__slide\" tabindex=\"0\"><figure><img decoding=\"async\" class=\"wp-block-themeisle-blocks-slider-item\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-15.57.56.png\" alt=\"\" title=\"\" data-id=\"362\"\/><\/figure><\/div><div class=\"wp-block-themeisle-blocks-slider-item-wrapper glide__slide\" tabindex=\"0\"><figure><img decoding=\"async\" class=\"wp-block-themeisle-blocks-slider-item\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-15.59.54.png\" alt=\"\" title=\"\" data-id=\"363\"\/><\/figure><\/div><div class=\"wp-block-themeisle-blocks-slider-item-wrapper glide__slide\" tabindex=\"0\"><figure><img decoding=\"async\" class=\"wp-block-themeisle-blocks-slider-item\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-16.05.19.png\" alt=\"\" title=\"\" data-id=\"364\"\/><\/figure><\/div><\/div><div class=\"glide__bullets\" data-glide-el=\"controls[nav]\"><button class=\"glide__bullet\" data-glide-dir=\"=0\"><\/button><button class=\"glide__bullet\" data-glide-dir=\"=1\"><\/button><button class=\"glide__bullet\" data-glide-dir=\"=2\"><\/button><button class=\"glide__bullet\" data-glide-dir=\"=3\"><\/button><\/div><\/div><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>ctrl_interface=DIR=\/var\/run\/wpa_supplicant GROUP=netdev\nupdate_config=1\ncountry=AT\n\nnetwork={\n ssid=\"Netzwerkname\"\n psk=\"Passwort\"\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Windows<\/h3>\n\n\n\n<p>Bei Windows kann einfach die SD-Karte im Explorer ge\u00f6ffnet werden und mit der rechten Maustaste  k\u00f6nnen die Dateien als Textdateien angelegt werden. Die Endungen nach dem &#8222;.&#8220; m\u00fcssen aber entfernt werden.<\/p>\n\n\n\n<div id=\"wp-block-themeisle-blocks-slider-578be175\" class=\"wp-block-themeisle-blocks-slider glide\" data-per-view=\"1\" data-gap=\"0\" data-peek=\"0\" data-autoplay=\"true\" data-height=\"400px\" data-hide-arrows=\"false\"><div class=\"glide__track\" data-glide-el=\"track\"><div class=\"glide__slides\"><div class=\"wp-block-themeisle-blocks-slider-item-wrapper glide__slide\" tabindex=\"0\"><figure><img decoding=\"async\" class=\"wp-block-themeisle-blocks-slider-item\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-15.50.15.png\" alt=\"\" title=\"\" data-id=\"365\"\/><\/figure><\/div><div class=\"wp-block-themeisle-blocks-slider-item-wrapper glide__slide\" tabindex=\"0\"><figure><img decoding=\"async\" class=\"wp-block-themeisle-blocks-slider-item\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-15.52.57.png\" alt=\"\" title=\"\" data-id=\"366\"\/><\/figure><\/div><div class=\"wp-block-themeisle-blocks-slider-item-wrapper glide__slide\" tabindex=\"0\"><figure><img decoding=\"async\" class=\"wp-block-themeisle-blocks-slider-item\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-15.54.24.png\" alt=\"\" title=\"\" data-id=\"367\"\/><\/figure><\/div><div class=\"wp-block-themeisle-blocks-slider-item-wrapper glide__slide\" tabindex=\"0\"><figure><img decoding=\"async\" class=\"wp-block-themeisle-blocks-slider-item\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-15.55.11.png\" alt=\"\" title=\"\" data-id=\"368\"\/><\/figure><\/div><div class=\"wp-block-themeisle-blocks-slider-item-wrapper glide__slide\" tabindex=\"0\"><figure><img decoding=\"async\" class=\"wp-block-themeisle-blocks-slider-item\" src=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/wp-content\/uploads\/2021\/03\/Screenshot-2021-03-16-at-15.55.59.png\" alt=\"\" title=\"\" data-id=\"369\"\/><\/figure><\/div><\/div><div class=\"glide__bullets\" data-glide-el=\"controls[nav]\"><button class=\"glide__bullet\" data-glide-dir=\"=0\"><\/button><button class=\"glide__bullet\" data-glide-dir=\"=1\"><\/button><button class=\"glide__bullet\" data-glide-dir=\"=2\"><\/button><button class=\"glide__bullet\" data-glide-dir=\"=3\"><\/button><button class=\"glide__bullet\" data-glide-dir=\"=4\"><\/button><\/div><\/div><\/div>\n\n\n\n<p>Das war&#8217;s. Viel Spa\u00df mit dem Raspberry Pi :-). Weitere Tutorials dazu folgen \ud83d\ude09<\/p>\n\n\n\n<p><strong><a href=\"http:\/\/www.peakproductions.at\/sides\/peakproductions\/index.php\/2021\/04\/09\/raspberry-pi-led-zum-blinken-bringen-mit-gpio-befehlen-und-python\/\" data-type=\"post\" data-id=\"497\">Weiter geht&#8217;s zum n\u00e4chsten Beitrag<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Willkommen bie meinem ersten Beitrag \u00fcber Raspberry Pi. Der Raspberry Pi ist ein vielf\u00e4ltiger Einplatinencomputer, welcher zus\u00e4tzlich zu einem vollwertigen Linux-Betriebsystem, einen General Input Output Header (GPIO) hat. Der GPIO besitzt mehrere frei programmierbare Ein\/Ausg\u00e4nge, eine serielle Schnittstelle, i2c und vieles mehr. Dazu komme ich noch in sp\u00e4teren Beitr\u00e4gen. Ben\u00f6tigte Hardware In diesem Beitrag geht &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.peakproductions.at\/sides\/peakproductions\/index.php\/2021\/03\/16\/raspberry-pi-betriebsystem-installieren-mit-dem-wlan-verbinden-und-ssh-aktivieren-ohne-tastatur-und-maus\/\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eRaspberry Pi &#8211; Betriebsystem installieren, mit dem WLAN verbinden und ssh aktivieren (Ohne Tastatur und Maus)\u201c<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":355,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-352","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/www.peakproductions.at\/sides\/peakproductions\/index.php\/wp-json\/wp\/v2\/posts\/352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.peakproductions.at\/sides\/peakproductions\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.peakproductions.at\/sides\/peakproductions\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.peakproductions.at\/sides\/peakproductions\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.peakproductions.at\/sides\/peakproductions\/index.php\/wp-json\/wp\/v2\/comments?post=352"}],"version-history":[{"count":6,"href":"https:\/\/www.peakproductions.at\/sides\/peakproductions\/index.php\/wp-json\/wp\/v2\/posts\/352\/revisions"}],"predecessor-version":[{"id":515,"href":"https:\/\/www.peakproductions.at\/sides\/peakproductions\/index.php\/wp-json\/wp\/v2\/posts\/352\/revisions\/515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.peakproductions.at\/sides\/peakproductions\/index.php\/wp-json\/wp\/v2\/media\/355"}],"wp:attachment":[{"href":"https:\/\/www.peakproductions.at\/sides\/peakproductions\/index.php\/wp-json\/wp\/v2\/media?parent=352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.peakproductions.at\/sides\/peakproductions\/index.php\/wp-json\/wp\/v2\/categories?post=352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.peakproductions.at\/sides\/peakproductions\/index.php\/wp-json\/wp\/v2\/tags?post=352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}