raspberry-pi
Table of Contents
-
<<<<<<< Updated upstream
- 1. Operating system
- 1.1. Headless Operation
- 1.2. basic setup after first boot
- 1.3. Hardware Configuration
- 1.4. LCD display/Touchscreen
- 1.5. Monitoring with Home Assistant
- 1.5.1. TODO see if glances is a worthy replacement for node-exporter =======
- 1. Operating system
Small single Board computer with a range of IO ports suitable for prototyping or self-hosting. Has a stadardized form factor. As a result a very wide range of accessoires is available. It used to be cheap to buy, it still is cheap to run.
https://en.wikipedia.org/wiki/Raspberry_Pi
<<<<<<< Updated upstream1. Operating system
=======1. Operating system
>>>>>>> Stashed changesRaspberry Pi OS is based on a recent version of Debian GNU/Linux for ARM or ARM64. Download. Official image is available with pre-installed LXDE desktop or as lite image (contains only basic OS, no desktop).
1.1. Headless Operation
=======1.1. Headless Operation
>>>>>>> Stashed changes- https://www.raspberrypi.com/documentation/computers/configuration.html
- https://www.raspberrypi.com/documentation/computers/remote-access.html
flash the SD card
dd status=progress bs=1M if=<path/to/.img> of=</dev/mmc device>
1.1.1. Enable SSH
=======1.1.1. Enable SSH
>>>>>>> Stashed changesmount /dev/mmcblk1p1 /mnt/ touch /mnt/ssh
create a login user (the old default user pi:raspberry was removed in 2022)
# hash passphrase with openssl passwd -6 # /mnt/boot/userconf.txt username:<hashed passphrase>
1.1.2. Set hostname
=======1.1.2. Set hostname
>>>>>>> Stashed changesmount /dev/mmcblk1p2 /mnt vim /mnt/etc/hostname vim /mnt/etc/hosts
1.1.3. Enable WiFi before first boot
=======1.1.3. Enable WiFi before first boot
>>>>>>> Stashed changes# /etc/wpa_supplicant/wpa_supplicant.conf country=DE ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev ap_scan=1 update_config=1 network={ ssid="My SSID" key_mgmt=WPA-PSK psk="-----------------" }
Pi Zero W: Wifi not found issue: https://forums.raspberrypi.com/viewtopic.php?t=310780
1.2. basic setup after first boot
=======1.2. basic setup after first boot
>>>>>>> Stashed changessudo apt update && sudo apt upgrade sudo apt install git vim # ca-certificates and curl should be installed with the OS git clone https://git.fschl-co.de/fschl/dotfiles cd dotfiles && ./scripts/install.sh server
Docker on Raspi works easiest with the official install script
curl -fsSL https://get.docker.com -o get-docker.sh chmod +x get-docker.sh && ./get-docker.sh
1.3. Hardware Configuration
=======1.3. Hardware Configuration
>>>>>>> Stashed changesKonfiguration für Overclocking, UART/GPIO, Optimierung für Displays, WLAN/BLE u.a.
https://www.raspberrypi.com/documentation/computers/config_txt.html#what-is-config-txt
1.4. LCD display/Touchscreen
=======1.4. LCD display/Touchscreen
>>>>>>> Stashed changesuse https://github.com/goodtft/LCD-show to get it working.
calibrate with apt install xinput-calibrator
(source: https://www.jeffgeerling.com/blog/2016/review-elecrow-hdmi-5-800x480-tft-display-xpt2046-touch-controller)
1.5. Monitoring with Home Assistant
=======1.5. Monitoring with Home Assistant
>>>>>>> Stashed changeshttps://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon
should work with grafana dashboard aswell
1.5.1. TODO see if glances is a worthy replacement for node-exporter
=======1.5.1. TODO see if glances is a worthy replacement for node-exporter
>>>>>>> Stashed changes- glances: https://github.com/nicolargo/glances
- alternative to top/htop, can export JSON
- https://github.com/prometheus/node_exporter/releases
Created: 2023-01-29 Sun 22:13
=======Created: 2023-04-19 Wed 13:47
>>>>>>> Stashed changes