rocnet:headless-cam-de
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | rocnet:headless-cam-de [2022/06/18 00:03] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Headless-Konfiguration====== | ||
+ | [[: | ||
+ | [[: | ||
+ | * **[[: | ||
+ | |||
+ | |< >| | ||
+ | ^ [[https:// | ||
+ | \\ | ||
+ | \\ | ||
+ | =====SD-Card mit Pi OS Lite (32bit)===== | ||
+ | Download des Raspberry Pi Imager: | ||
+ | Siehe | ||
+ | * __**[[https:// | ||
+ | {{: | ||
+ | |||
+ | Eine SD-Card einsetzen.\\ | ||
+ | Das " | ||
+ | |||
+ | Auswählen: | ||
+ | - CHOOSE OS | ||
+ | - Pi OS Other | ||
+ | - Pi OS Lite (32bit) | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Konfigurieren der Boot-Partition===== | ||
+ | Die SD-Card erneut einsetzen, nachdem das Erzeugen des Image auf der SD-Card beendet ist.\\ | ||
+ | Die SD-Card muss im Datei-Explorer als '' | ||
+ | \\ | ||
+ | Um den Zero in die Lage zu versetzen sich mit dem WiFi zu verbinden, muss er einige Einstellungen erhalten, um das zu tun.\\ | ||
+ | Der einfachste Weg ist das Erstellen einer lokalen Text-Datei namens '' | ||
+ | < | ||
+ | country=DE | ||
+ | ctrl_interface=DIR=/ | ||
+ | update_config=1 | ||
+ | network={ | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | network={ | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | Die "< | ||
+ | |||
+ | * **Hinweis: | ||
+ | |||
+ | Eine leere Datei namens " | ||
+ | {{: | ||
+ | |||
+ | - Unmounten und Auswerfen der SD-Card. | ||
+ | - Einsetzen der SD-Card in den Slot des Raspberry Pi. | ||
+ | - Raspberry Pi einschalten. | ||
+ | - Ein paare Minuten warten, um dem Raspbian Zeit für die Größenanpassung des Datei-Systems zu geben. (Mit einem an dem Mini-HDMI angeschlossenen Monitor kann der Fortschritt beobachtet werden.) | ||
+ | \\ | ||
+ | =====Raspbian SSH-Verbindung===== | ||
+ | < | ||
+ | ssh pi@raspberrypi | ||
+ | </ | ||
+ | Das Standard-Passwort ist '' | ||
+ | \\ | ||
+ | =====Raspbian-Update===== | ||
+ | < | ||
+ | sudo apt update | ||
+ | sudo apt upgrade | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | =====Raspi-Konfiguration===== | ||
+ | < | ||
+ | ssh pi@raspberrypi | ||
+ | sudo raspi-config | ||
+ | </ | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | |||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Python-Script===== | ||
+ | Die {{: | ||
+ | < | ||
+ | scp cam.py pi@raspberrypi:/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====PiCamera installieren===== | ||
+ | < | ||
+ | ssh pi@raspberrypi | ||
+ | sudo apt install python3-picamera | ||
+ | </ | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Script starten===== | ||
+ | < | ||
+ | ssh pi@raspberrypi | ||
+ | nano startcam.sh | ||
+ | </ | ||
+ | Das Script "/ | ||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | cd /home/pi | ||
+ | python3 cam.py | ||
+ | </ | ||
+ | Das Script ausführbar machen: | ||
+ | < | ||
+ | chmod +x startcam.sh | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | =====Crontab===== | ||
+ | Die Zeile " | ||
+ | < | ||
+ | ssh pi@raspberrypi | ||
+ | crontab -e | ||
+ | |||
+ | no crontab for pi - using an empty one | ||
+ | |||
+ | Select an editor. | ||
+ | 1. / | ||
+ | 2. / | ||
+ | 3. /bin/ed | ||
+ | |||
+ | Choose 1-3 [1]: | ||
+ | </ | ||
+ | Den nano editor mit ctrl+x nach Editieren schliessen, um die Änderungen zu speichern.\\ | ||
+ | |||
+ | Prüfen, ob die Änderungen gespeichert sind: | ||
+ | < | ||
+ | crontab -l | ||
+ | # Edit this file to introduce tasks to be run by cron. | ||
+ | # | ||
+ | # Each task to run has to be defined through a single line | ||
+ | # indicating with different fields when the task will be run | ||
+ | # and what command to run for the task | ||
+ | # | ||
+ | # To define the time you can provide concrete values for | ||
+ | # minute (m), hour (h), day of month (dom), month (mon), | ||
+ | # and day of week (dow) or use ' | ||
+ | # | ||
+ | # Notice that tasks will be started based on the cron's system | ||
+ | # daemon' | ||
+ | # | ||
+ | # Output of the crontab jobs (including errors) is sent through | ||
+ | # email to the user the crontab file belongs to (unless redirected). | ||
+ | # | ||
+ | # For example, you can run a backup of all your user accounts | ||
+ | # at 5 a.m every week with: | ||
+ | # 0 5 * * 1 tar -zcf / | ||
+ | # | ||
+ | # For more information see the manual pages of crontab(5) and cron(8) | ||
+ | # | ||
+ | # m h dom mon dow | ||
+ | @reboot / | ||
+ | </ | ||
+ | |||
+ | Reboot des Raspberry Pi: | ||
+ | < | ||
+ | sudo reboot | ||
+ | </ | ||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Boot Geschwindigkeit===== | ||
+ | Dienste prüfen, die für den " | ||
+ | < | ||
+ | systemd-analyze blame | ||
+ | </ | ||
+ | Nach " | ||
+ | |||
+ | |||
+ | |||
+ | \\ | ||
+ | =====Energieverbrauch===== | ||
+ | ====HDMI==== | ||
+ | Wenn ein " | ||
+ | In ''/ | ||
+ | < | ||
+ | ('' | ||
+ | Ergibt ca. 25mA Reduzierung.\\ | ||
+ | |||
+ | \\ | ||
+ | =====Spezielle Boot-Optionen===== | ||
+ | Um Stift 27 und 28 als normale I/O zu verwenden, eine zusätzliche Zeile in der ''/ | ||
+ | < | ||
+ | force_eeprom_read=0 | ||
+ | </ | ||
+ | |||
+ | * https:// | ||
+ | \\ | ||
+ | |||
+ | |||
+ | =====Hinweise===== | ||
+ | ====SFTP Datei-Übertragung==== | ||
+ | WinSCP und FileZilla können für die Übertragung von Dateien zu und vom Raspberry Pi verwendet werden.\\ | ||
+ | Für mehr Informationen siehe: | ||
+ | * https:// | ||
+ | |||
+ | |||
+ | ====SSH==== | ||
+ | * Die Terminal/ | ||
+ | * Wenn " | ||
+ | ====Beim Boot auf Netzwerk warten==== | ||
+ | Unter bestimmten Netzwerkbedingungen muss die folgende Systemoption (sudo raspi-conf) aktiviert werden, wenn WIOpi oder CAM beim Booten nicht gestartet werden: | ||
+ | * **1** System-Optionen | ||
+ | * **S6** Netzwerk beim Boot **((Warten auf Netzwerkverbindung beim Booten auswählen))** | ||
+ | \\ | ||
+ | ====Bildschirmschoner deaktivieren==== | ||
+ | Im Fall eines angeschlossenen Displays, kein Headless, ohne Benutzerinteraktion.\\ | ||
+ | |||
+ | Die '' | ||
+ | < | ||
+ | Diesen Abschnitt finden und die Extra-Optionen hinzufügen: | ||
+ | < | ||
+ | [Seat:*] | ||
+ | xserver-command=X -s 0 -dpms | ||
+ | </ |
rocnet/headless-cam-de.txt · Last modified: 2022/06/18 00:03 by 127.0.0.1