This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update && sudo apt upgrade -y | |
sudo apt install -y lightdm openbox chromium-browser unclutter xorg | |
sudo nano /etc/lightdm/lightdm.conf | |
[Seat:*] | |
autologin-user=pi | |
autologin-user-timeout=0 | |
user-session=openbox |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$(id -u)" -ne 0 ]; then | |
echo "Run script with sudo!" | |
echo "sudo ./wallboard-setup.sh" | |
exit 1 | |
fi | |
update_system() { | |
# System upgrade and dependency installation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import plyvel | |
db = plyvel.DB('./Default/Local Storage/leveldb', create_if_missing=False) | |
for key, value in db: | |
print(key, value) | |
db.close() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Lizenz-E-Mail Adresse | |
[email protected] | |
# Lizenz-E-Mail Password | |
FE2_PASSWORD="s7QZ060q5QvyfJ1qtW3Dx@LBn8^3lHR*" | |
# Gewünschter Aktivierungsname | |
FE2_ACTIVATION_NAME=FE2-Docker | |
# Die nachfolgenden Werte müssen in der Regel nicht angepasst werden. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
admin off | |
log { | |
format console | |
} | |
} | |
alamos.feuerwehr-musterstadt.de { | |
reverse_proxy alamos-fe2-server:83 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
caddy: | |
container_name: caddy | |
image: caddy | |
volumes: | |
- /opt/docker/caddy/Caddyfile:/etc/caddy/Caddyfile | |
- /opt/docker/caddy/data:/data | |
- /opt/docker/caddy/config:/config | |
restart: unless-stopped |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
locale: de_DE.UTF-8 | |
keyboard: | |
layout: de | |
variant: "" | |
model: pc105 | |
write_files: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -ne 3 ]; then | |
echo "Fehler: 3 Argumente erwartet, erhalten $#" | |
echo Verwendung: ./FE2-restore.sh Lizenz-E-Mail-Adresse Passwort Domain | |
echo Besipiel: ./FE2-restore.sh \"[email protected]\" \"s8QZ060q5QvyfJ1qtW3Dx@LBn8^3lHR*\" \"alamos.feuerwehr-musterstadt.de\" | |
exit 1 | |
fi | |
# Check if any argument is empty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ProgressPreference = 'SilentlyContinue' | |
Write-Host "FE2 Backup erzeugen" | |
# Temporäres Verzeichnis für die Config erstellen | |
$tempFolder = Join-Path -Path $env:TEMP -ChildPath "Alamos_Backup_$(Get-Random)" | |
New-Item -ItemType Directory -Path "$tempFolder\config", "$tempFolder\db" -Force | |
Write-Host "Datenbank Dump erzeugen" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pio run -v -j1 | |
Processing udpi (upload_flags: --tool, uart, --device, $BOARD_MCU, --uart, $UPLOAD_PORT, --clk, $UPLOAD_SPEED; upload_command: pymcuprog write --erase $UPLOAD_FLAGS --filename $SOURCE; platform: atmelmegaavr; board: ATtiny1616; framework: arduino) | |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
CONFIGURATION: https://docs.platformio.org/page/boards/atmelmegaavr/ATtiny1616.html | |
PLATFORM: Atmel megaAVR (1.9.0) > ATtiny1616 | |
HARDWARE: ATTINY1616 16MHz, 2KB RAM, 16KB Flash | |
PACKAGES: | |
- framework-arduino-megaavr-megatinycore @ 2.6.7 | |
- toolchain-atmelavr @ 3.70300.220127 (7.3.0) | |
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf |
NewerOlder