Skip to content

Instantly share code, notes, and snippets.

View Bouni's full-sized avatar
🦥

bouni Bouni

🦥
View GitHub Profile
@Bouni
Bouni / LinuxCNC-Ethercat.md
Last active January 17, 2026 03:46
Linux CNC + EtherCat + RPi 4 Setup

The folowing is a writup from Hakans forum post!

RPi Setup

  1. Download & Write image to SD card: www.linuxcnc.org/iso/linuxcnc-2.8.1-pi4.zip
  2. Configure Wifi via wpa_supplicant.conf
  3. Put SD card into RPi and verify that RT-PREEMT Kernel is running: uname -a
  4. Update everything and reboot: sudo apt update && sudo apt upgrade && sudo reboot
@Bouni
Bouni / wallboard-setup.sh
Last active June 19, 2025 11:25
A script to setup a minimal wallboard that displays a webpage in a fullscreen chromium with a RaspberryPi
#!/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
@Bouni
Bouni / FE2-backup.ps1
Last active June 5, 2025 11:20
Erstellen eines Backups der FE2 Config & Datenbank
$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"
@Bouni
Bouni / FE2-restore.sh
Last active June 5, 2025 11:19
FE2 Backup wiederherstellen
#!/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 \"alamos-lizenz@feuerwehr-musterstadt.de\" \"s8QZ060q5QvyfJ1qtW3Dx@LBn8^3lHR*\" \"alamos.feuerwehr-musterstadt.de\"
exit 1
fi
# Check if any argument is empty
@Bouni
Bouni / notes.txt
Created June 3, 2025 09:55
RPi Kiosk
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
@Bouni
Bouni / dump.py
Created May 28, 2025 13:03
RPi levelDB
import plyvel
db = plyvel.DB('./Default/Local Storage/leveldb', create_if_missing=False)
for key, value in db:
print(key, value)
db.close()
@Bouni
Bouni / config.env
Created May 22, 2025 07:35
Env file for Alamos FE2
# Lizenz-E-Mail Adresse
FE2_EMAIL=alamos@feuerwehr-musterstadt.de
# 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.
@Bouni
Bouni / Caddyfile
Created May 22, 2025 07:29
Caddyfile for Alamos FE2
{
admin off
log {
format console
}
}
alamos.feuerwehr-musterstadt.de {
reverse_proxy alamos-fe2-server:83
}
@Bouni
Bouni / docker-compose.yaml
Created May 22, 2025 07:25
Docker Compose file for Alamos FE2 + Caddy
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
@Bouni
Bouni / cloud-init.yml
Last active May 21, 2025 13:42
Cloud init for Hetzner Alamos instance
#cloud-config
locale: de_DE.UTF-8
keyboard:
layout: de
variant: ""
model: pc105
write_files: