wiki:raspberrypi
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
wiki:raspberrypi [2023/11/04 19:48] – [WLAN SSH on first Boot] pulsar | wiki:raspberrypi [2024/03/31 19:08] (aktuell) – [12 Bookworm] pulsar | ||
---|---|---|---|
Zeile 151: | Zeile 151: | ||
bzw. falls es als xz komprimiert wurde: | bzw. falls es als xz komprimiert wurde: | ||
+ | |||
+ | xzcat 2023-12-05-raspios-bookworm-arm64.img.xz | dd of=/dev/sdb status=progress | ||
+ | |||
+ | mit folgenden ging es mit raspios-bookworm-arm64.img.xz nicht(Boot-Partition zeigte nur komische Zeichen als Dateinamen): | ||
xzcat openSUSE-ARM-LXQT-raspberrypi4.aarch64.raw.xz | dd bs=4M of=/dev/sdX iflag=fullblock oflag=direct status=progress | xzcat openSUSE-ARM-LXQT-raspberrypi4.aarch64.raw.xz | dd bs=4M of=/dev/sdX iflag=fullblock oflag=direct status=progress | ||
Zeile 550: | Zeile 554: | ||
Trotz zwei Wochen mit diesen harten Experimenten, | Trotz zwei Wochen mit diesen harten Experimenten, | ||
- | ===== Raspbian | + | ===== Raspberry Pi OS ===== |
Nach der Installation ist es sinnvoll '' | Nach der Installation ist es sinnvoll '' | ||
+ | |||
+ | |||
+ | ==== 12 Bookworm ==== | ||
+ | |||
+ | Ab dieser Version hat sich die Ersteinrichtung für den Headless Betrieb geändert. Hierfür nutze ich das Lite Image. Auf der SD-Karte müss auf der Boot-Partition einige Dateien angelegt werden diese wären: | ||
+ | |||
+ | - SSH Aktivierung, | ||
+ | - Benutzer, eine Datei mit dem Namen '' | ||
+ | - WLAN, eine Datei im Pfad ''/ | ||
+ | |||
+ | < | ||
+ | [connection] | ||
+ | id=WLAN-Name | ||
+ | uuid=# random UUID in the format 11111111-1111-1111-1111-111111111111 | ||
+ | type=wifi | ||
+ | autoconnect=true | ||
+ | interface-name=wlan0 | ||
+ | |||
+ | [wifi] | ||
+ | mode=infrastructure | ||
+ | ssid=WLAN-Name | ||
+ | |||
+ | [wifi-security] | ||
+ | auth-alg=open | ||
+ | key-mgmt=wpa-psk | ||
+ | psk=WLAN-Passwort | ||
+ | |||
+ | [ipv4] | ||
+ | method=auto | ||
+ | |||
+ | [ipv6] | ||
+ | addr-gen-mode=default | ||
+ | method=auto | ||
+ | </ | ||
+ | |||
+ | sudo chmod -R 600 < | ||
+ | sudo chown -R root:root < | ||
+ | |||
+ | Hier soll es eine einzige Datei geben, mit der man alle Punkte ab arbeiten kann: | ||
+ | |||
+ | With Raspberry Pi OS bookworm you can configure WiFi via a '' | ||
+ | |||
+ | Note that this feature is experimental and will be replaced by cloud-init in the future. | ||
+ | |||
+ | An example gist and blog explains some of the options: | ||
+ | |||
+ | I am copying the example from the aforementioned gist (not affiliated): | ||
+ | |||
+ | < | ||
+ | # Required: | ||
+ | config_version = 1 | ||
+ | |||
+ | [system] | ||
+ | hostname = " | ||
+ | |||
+ | [user] | ||
+ | # If present, the default " | ||
+ | name = " | ||
+ | # The password can be encrypted or plain. To encrypt, we can use " | ||
+ | password = " | ||
+ | password_encrypted = true | ||
+ | |||
+ | [ssh] | ||
+ | # ssh_import_id = " | ||
+ | enabled = true | ||
+ | password_authentication = false | ||
+ | # We can also seed the ssh public keys configured for the default user: | ||
+ | # authorized_keys = [ " | ||
+ | |||
+ | [wlan] | ||
+ | ssid = " | ||
+ | password = " | ||
+ | password_encrypted = true | ||
+ | hidden = false | ||
+ | # The country is written to / | ||
+ | # Reference: https:// | ||
+ | country = " | ||
+ | |||
+ | [locale] | ||
+ | keymap = " | ||
+ | timezone = " | ||
+ | </ | ||
+ | |||
+ | You could dig more into the firstboot or init_config scripts (the latter is what loads the config). | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Entscheident ist dieses Verzeichnis auf der Wurzel-Partition wo die Einstellungen konfiguriert werden. | ||
+ | |||
+ | < | ||
+ | root@raspberrypi: | ||
+ | total 44 | ||
+ | drwxr-xr-x | ||
+ | drwxr-xr-x 63 root root 4096 Mar 15 15:02 .. | ||
+ | -rwxr-xr-x | ||
+ | -rwxr-xr-x | ||
+ | -rwxr-xr-x | ||
+ | -rwxr-xr-x | ||
+ | -rwxr-xr-x | ||
+ | -rwxr-xr-x | ||
+ | -rwxr-xr-x | ||
+ | </ | ||
wiki/raspberrypi.1699123693.txt.gz · Zuletzt geändert: 2023/11/04 19:48 von pulsar