{"id":12623,"date":"2023-12-22T17:01:06","date_gmt":"2023-12-22T16:01:06","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=12623"},"modified":"2023-12-22T17:01:07","modified_gmt":"2023-12-22T16:01:07","slug":"raspberry-os-raspbian-auf-dem-raspberry-pi-installieren","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/12\/22\/raspberry-os-raspbian-auf-dem-raspberry-pi-installieren\/","title":{"rendered":"Raspberry OS (Raspbian) auf dem Raspberry Pi installieren"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In diesem Beitrag, der Linux Bibel werden wir lernen, wie Raspberry OS (<em>Raspbian<\/em>) auf dem Raspberry Pi installiert wird. Es gibt viele Betriebssysteme f\u00fcr den Raspberry Pi &#8211; einige der Bekanntesten finden Sie unter Pi &#8211; Betriebssysteme, doch ich selbst empfehle Raspbian (<em>der alte Name<\/em>), inzwischen gibt es dieses System auch in 64 Bit und kann so den Pi vollst\u00e4ndig ausreizen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sie finden Raspbian unter <a href=\"https:\/\/www.raspberrypi.com\/software\/operating-systems\/\" target=\"_blank\" rel=\"noreferrer noopener\">Raspberry OS<\/a> in allen Varianten zum Download, einfacher f\u00e4llt die Installation via Raspberry Pi Imager &#8211; hier lassen sich auch gleich die passenden Einstellungen vornehmen:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-1-scaled.jpeg\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-1-1024x640.jpeg\" alt=\"\" class=\"wp-image-12624\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-1-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-1-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-1-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-1-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-1-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-1-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Raspbian (<em>ich wei\u00df, das System nennt sich nicht mehr so, aber der Name ist k\u00fcrzer<\/em>) wird mit dem Imager auf eine microSD-Karte kopiert, diese wird in den Pi gesteckt und anschlie\u00dfend davon gestartet. Sie k\u00f6nnen den Pi nat\u00fcrlich per HDMI an einen Monitor anschlie\u00dfen, dazu eine Maus und eine Tastatur &#8211; wir sind jedoch Profis und erledigen die Installation via <a href=\"https:\/\/linux-bibel.at\/index.php\/2023\/09\/10\/ssh-secure-shell-unter-linux-am-terminal-und-auf-der-grafischen-oberflaeche\/\" data-type=\"post\" data-id=\"2501\">SSH<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Die Installation auf der grafischen Oberfl\u00e4che ist eigentlich schon so gut wie fertig, die am Terminal nat\u00fcrlich auch &#8211; man kann jedoch optimieren. Wir holen uns unter Linux via Terminal (<em>unter auf Debian basierenden Linux-Distributionen installieren Sie am einfachsten \u00fcber die Paket-Verwaltung das Paket &#8222;<strong>arp-scan<\/strong>&#8222;<\/em>) &#8211; als root:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>arp-scan -l<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-2-scaled.jpeg\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-2-1024x640.jpeg\" alt=\"\" class=\"wp-image-12625\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-2-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-2-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-2-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-2-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-2-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-2-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Perfekt wird die Geschichte nat\u00fcrlich mittels statischer IP-Adressen \u00fcber den Router, wir loggen uns via SSH mit der n\u00f6tigen IP-Adresse am Pi ein:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh robertg@192.168.178.46<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-3-scaled.jpeg\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-3-1024x640.jpeg\" alt=\"\" class=\"wp-image-12626\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-3-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-3-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-3-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-3-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-3-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-3-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Wir best\u00e4tigen die Nachfrage mit der Eingabe von:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yes<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">und werden aufgefordert das Passwort einzugeben, schon befinden wir uns via SSH auf dem Pi und k\u00f6nnen damit arbeiten. Mit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo -i<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">k\u00f6nnen wir administrative Befehle ausf\u00fchren, mit <code>Strg+d <\/code>werden wir wieder zum normalen Benutzer. Zu Beginn wollen wir das System nat\u00fcrlich aktualisieren &#8211; als root:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update\napt full-upgrade<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-4-scaled.jpeg\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-4-1024x640.jpeg\" alt=\"\" class=\"wp-image-12627\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-4-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-4-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-4-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-4-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-4-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-4-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Wollen Sie das Image etwa via Befehl <code>dd<\/code> auf die SD-Karte kopieren, m\u00fcssen Sie manuell arbeiten &#8211; haben Sie das Image kopiert, erstellen Sie via Rechtsklick im Verzeichnis &#8222;<em>\/boot<\/em>&#8220; eine leere Textdatei mit dem Namen &#8222;<strong>ssh<\/strong>&#8220; ohne Dateiendung und starten dann den Pi. Sie loggen sich mit dem Nutzer <strong>pi<\/strong> und dem Passwort <strong>raspberry<\/strong> an &#8211; dann \u00e4ndern Sie schnellstens das Passwort:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>passwd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt l\u00e4sst sich auch ein neuer Benutzer erstellen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>adduser robert<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">beispielsweise. Ganz ehrlich &#8211; ich hasse <code>sudo<\/code>, um an administrative Rechte zu kommen und meistens ist dieser Befehl auch eine unfreundliche Sicherheitsl\u00fccke, darum erstelle ich als Erstes einen richtigen root-Account mit administrativen Rechten:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>passwd root<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Anschlie\u00dfend logge ich mich mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>su<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">als root ein und l\u00f6sche dieses Mistding:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt purge sudo<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>raspi-config<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">l\u00e4sst sich jetzt der Pi konfigurieren:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-5-scaled.jpeg\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-5-1024x640.jpeg\" alt=\"\" class=\"wp-image-12628\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-5-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-5-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-5-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-5-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-5-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-5-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Wie \u00fcblich auf dem Terminal nutzen Sie die <kbd>Pfeiltasten<\/kbd> zur Navigation, best\u00e4tigen mit <kbd>Eingabe<\/kbd> und wechseln mit <kbd>Tab<\/kbd> auf die Schalter unten. Wichtig vor allem &#8211; expandieren Sie das Dateisystem auf die komplette SD-Karte, dies gelingt \u00fcber die Software via &#8222;<em>Advanced Options \u2192 Expand Filesystem<\/em>&#8222;, anschlie\u00dfend starten Sie den Rechner neu, wie die Software vorschl\u00e4gt.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ich habe hier keinen Monitor an den Pi angeschlossen, kann nat\u00fcrlich trotzdem grafisch auf die Anwendungen am Pi zugreifen, wenn dies gew\u00fcnscht ist &#8211; hierzu starte ich die SSH-Verbindung via:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh -X robertg@192.168.178.46<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt wird das LXDE-Panel mit dem befehl:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">lxpanel<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">gestartet und kann so auf das Men\u00fc und die Fenster zugreifen:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-6-scaled.jpeg\" rel=\"lightbox-5\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-6-1024x640.jpeg\" alt=\"\" class=\"wp-image-12630\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-6-1024x640.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-6-1536x960.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-6-2048x1280.jpeg 2048w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-6-150x94.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-6-300x188.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/pi-6-768x480.jpeg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"12623\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"12623\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>In diesem Beitrag, der Linux Bibel werden wir lernen, wie Raspberry OS (Raspbian) auf dem Raspberry Pi installiert wird. Es gibt viele Betriebssysteme f\u00fcr den Raspberry Pi &#8211; einige der Bekanntesten finden Sie unter Pi &#8211; Betriebssysteme, doch ich selbst empfehle Raspbian (der alte Name), inzwischen gibt es dieses System auch in 64 Bit und [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":12628,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[768],"tags":[769],"class_list":["post-12623","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi","tag-raspberry"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/12623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=12623"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/12623\/revisions"}],"predecessor-version":[{"id":12631,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/12623\/revisions\/12631"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/12628"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=12623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=12623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=12623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}