mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 12:34:38 +00:00
- Add generate_debug_report() to secubox-kiosk-launcher - Capture system info, virtualization, graphics hardware - Log DRM/KMS devices, kernel modules, Xorg status - Enhanced error reporting with dmesg and VT status - Debug reports saved to /tmp/kiosk-debug-*.log - Add v1.6.7.2 overlay installer scripts - Add emoji font fixes for navbar icons - Add screenshots for v1.6.7.1 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
67 lines
1.6 KiB
Bash
Executable File
67 lines
1.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# SecuBox-Deb :: capture-module-screenshots.sh
|
|
# CyberMind — Gérald Kerma
|
|
# Interactive screenshot capture for SecuBox modules
|
|
set -euo pipefail
|
|
|
|
readonly MODULE="capture-screenshots"
|
|
readonly VERSION="1.0.0"
|
|
|
|
SCREENSHOT_DIR="${1:-$(dirname "$0")/../docs/screenshots}"
|
|
MONITOR_SOCKET="/tmp/qemu-secubox-monitor.sock"
|
|
|
|
mkdir -p "$SCREENSHOT_DIR"
|
|
|
|
# List of modules to capture
|
|
MODULES=(
|
|
"login"
|
|
"dashboard"
|
|
"crowdsec"
|
|
"netdata"
|
|
"wireguard"
|
|
"dpi"
|
|
"netmodes"
|
|
"qos"
|
|
"mediaflow"
|
|
"vhost"
|
|
"system"
|
|
)
|
|
|
|
snap() {
|
|
local name="$1"
|
|
local output="$SCREENSHOT_DIR/${name}.ppm"
|
|
|
|
if [[ ! -S "$MONITOR_SOCKET" ]]; then
|
|
echo "ERROR: QEMU not running. Start with: ./qemu-screenshot.sh"
|
|
exit 1
|
|
fi
|
|
|
|
echo "screendump $output" | socat - UNIX-CONNECT:"$MONITOR_SOCKET"
|
|
|
|
# Convert to PNG
|
|
if command -v convert &>/dev/null; then
|
|
convert "$output" "${output%.ppm}.png"
|
|
rm "$output"
|
|
echo "✓ Captured: ${name}.png"
|
|
else
|
|
echo "✓ Captured: ${name}.ppm"
|
|
fi
|
|
}
|
|
|
|
echo "=== SecuBox Module Screenshot Capture ==="
|
|
echo ""
|
|
echo "Prerequisites:"
|
|
echo " 1. Start QEMU: ./qemu-screenshot.sh"
|
|
echo " 2. Login to SecuBox (root/secubox)"
|
|
echo " 3. Navigate to each module, then press Enter here"
|
|
echo ""
|
|
|
|
for module in "${MODULES[@]}"; do
|
|
read -rp "Navigate to $module, then press Enter to capture... "
|
|
snap "secubox-$module"
|
|
done
|
|
|
|
echo ""
|
|
echo "=== All screenshots captured ==="
|
|
ls -la "$SCREENSHOT_DIR"/secubox-*.png 2>/dev/null || ls -la "$SCREENSHOT_DIR"/secubox-*.ppm
|