<<<<<<< Updated upstream raspberry-pi ======= raspberry-pi >>>>>>> Stashed changes

raspberry-pi

Table of Contents

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 upstream

1. Operating system

=======

1. Operating system

>>>>>>> Stashed changes

Raspberry 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).

<<<<<<< Updated upstream

1.1. Headless Operation

=======

1.1. Headless Operation

>>>>>>> Stashed changes <<<<<<< Updated upstream

1.1.1. Enable SSH

=======

1.1.1. Enable SSH

>>>>>>> Stashed changes
mount /dev/mmcblk1p1 /mnt/
touch /mnt/ssh
<<<<<<< Updated upstream

1.1.2. Set hostname

=======

1.1.2. Set hostname

>>>>>>> Stashed changes
mount /dev/mmcblk1p2 /mnt
vim /mnt/etc/hostname
vim /mnt/etc/hosts
<<<<<<< Updated upstream

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

<<<<<<< Updated upstream

1.2. basic setup after first boot

=======

1.2. basic setup after first boot

>>>>>>> Stashed changes
sudo 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
    
<<<<<<< Updated upstream

1.3. Hardware Configuration

=======

1.3. Hardware Configuration

>>>>>>> Stashed changes

Konfiguration 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

<<<<<<< Updated upstream

1.4. LCD display/Touchscreen

=======

1.4. LCD display/Touchscreen

>>>>>>> Stashed changes
<<<<<<< Updated upstream

1.5. Monitoring with Home Assistant

=======

1.5. Monitoring with Home Assistant

>>>>>>> Stashed changes

https://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon

should work with grafana dashboard aswell

<<<<<<< Updated upstream

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
<<<<<<< Updated upstream

Author: fschl

Created: 2023-01-29 Sun 22:13

=======

Created: 2023-04-19 Wed 13:47

>>>>>>> Stashed changes

Validate