mirror of
https://github.com/TimInTech/proxmox-manager.git
synced 2026-11-20 19:22:53 +03:00
feat(demo): add deterministic headless demo pipeline, vector player and CI verification
This commit is contained in:
1 parent
9788a6d02a
commit
cafaf011c2
17 files changed
+4224
-3
No files matched your search
@@ -0,0 +1,47 @@
|
||||
name: Demo Verification
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'docs/demo/**'
|
||||
- '.github/workflows/demo.yml'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'docs/demo/**'
|
||||
- '.github/workflows/demo.yml'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: demo-${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
verify-demo:
|
||||
name: Verify Demo Assets & Privacy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install verification dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y ffmpeg tesseract-ocr tesseract-ocr-eng tesseract-ocr-deu
|
||||
|
||||
- name: Run automated evidence verification
|
||||
run: python3 docs/demo/verify_demo.py
|
||||
|
||||
- name: Verify Web Vector Player build
|
||||
run: python3 docs/demo/build_player.py
|
||||
@@ -50,6 +50,7 @@ CLAUDE.md
|
||||
# Misc local artifacts
|
||||
*.bak
|
||||
*.tmp
|
||||
docs/demo/out/frame_*.png
|
||||
|
||||
# Optional maintenance Python caches and release assets
|
||||
__pycache__/
|
||||
|
||||
@@ -7,6 +7,15 @@ Bash-Skript. Die optionale Speicher- und Wartungsoberfläche verwendet Python 3
|
||||
und die Standardbibliothek; der Bash-Kern kann ohne sie installiert werden. Die
|
||||
vollständige Befehls- und Konfigurationsreferenz steht im [englischen README](README.md).
|
||||
|
||||
<p align="center">
|
||||
<img src="docs/demo/out/proxmox-manager-demo.gif" alt="Proxmox Manager Live Demo" width="820">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<em>Deterministische, lesende Konsolen-Demo: VM/CT-Übersicht, Health-Diagnose, Host-Wartung & Community PVE-Werkzeuge.</em><br>
|
||||
<small>Headless PTY-Pipeline mit In-Stream-Pseudonymisierung · <a href="docs/demo/index.html">Interaktiver Web-Vektor-Player ▶</a> · <a href="docs/demo/README.md">Pipeline-Details →</a></small>
|
||||
</p>
|
||||
|
||||
## Installation
|
||||
|
||||
Auf einem Proxmox-Host als Administrator aus einem passenden Checkout:
|
||||
|
||||
@@ -33,14 +33,22 @@ cron check — [set up alerts in 3 steps](#-quick-start-alerts-in-3-steps).
|
||||
[](https://github.com/TimInTech/proxmox-manager/actions)
|
||||
[](LICENSE)
|
||||
[](https://www.gnu.org/software/bash/)
|
||||
[](https://www.proxmox.com/)
|
||||
[](https://www.proxmox.com/)
|
||||
|
||||
<p align="center">
|
||||
<img src="docs/demo/out/proxmox-manager-demo.gif" alt="Proxmox Manager Live Demo" width="820">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<em>Deterministic read-only demo: VM/CT overview, health diagnostics, host maintenance & community PVE tools.</em><br>
|
||||
<small>Recorded via headless PTY pipeline with in-stream pseudonymization · <a href="docs/demo/index.html">Interactive Web Vector Player ▶</a> · <a href="docs/demo/README.md">Pipeline Details →</a></small>
|
||||
</p>
|
||||
|
||||

|
||||
|
||||
<a href="https://buymeacoffee.com/timintech" target="_blank" rel="noopener noreferrer">
|
||||
<img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png"
|
||||
alt="Buy Me A Coffee" height="60" width="217">
|
||||
alt="Buy Me A Coffee" height="50" width="180">
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
# Proxmox Manager GIF-Demo — Deterministische Headless-Pipeline
|
||||
|
||||
Dieses Verzeichnis enthält die vollständige, reproduzierbare Headless-Pipeline zur pixelgenauen Erstellung des Demo-GIFs und Rohvideos für **Proxmox Manager**.
|
||||
|
||||
Die Demo zeigt ausschließlich aktuell implementierte, lesende Oberflächen auf dem PVE-Host:
|
||||
1. **Startansicht**: VM-/CT-Instanztabelle mit Status, Typ und Tastenkürzeln.
|
||||
2. **Health-Übersicht (`h`)**: CPU-, MEM-, DISK-Auslastung, Uptime, OK/CRIT-Bewertung und Findings.
|
||||
3. **Hauptmenü**: Rückkehr in die Hauptansicht.
|
||||
4. **Host-Wartungsmenü (`m`)**: Curses-basierte Host-Wartungsoberfläche.
|
||||
5. **Community PVE-Werkzeuge**: Durchsicht der geprüften PVE-Helper-Skripte ohne Mutation oder Start.
|
||||
|
||||
---
|
||||
|
||||
## Architektur
|
||||
|
||||
Die Pipeline trennt Session-Steuerung, Datenanonymisierung, Rendering und Verifikation sauber voneinander:
|
||||
|
||||
```
|
||||
┌────────────────────────────────┐
|
||||
│ Xvfb Headless Display (:99) │
|
||||
│ (1280×720, 24-bit TrueColor) │
|
||||
│ │
|
||||
│ ┌──────────────────────────┐ │
|
||||
│ │ Frameless Kitty Terminal │ │
|
||||
│ │ (DejaVu Sans Mono 15.5) │ │
|
||||
│ │ │ │
|
||||
│ │ session_driver.py │ │
|
||||
│ │ ├── pexpect PTY driver │ │
|
||||
│ │ └── StreamAnonymizer │ │
|
||||
│ └──────────┬───────────────┘ │
|
||||
└──────────────┼─────────────────┘
|
||||
│
|
||||
ffmpeg x11grab (30 fps)
|
||||
│
|
||||
▼
|
||||
┌────────────────────────────────┐
|
||||
│ docs/demo/out/ │
|
||||
│ ├── proxmox-manager-demo-raw │ (1280×720, H.264, 30 fps)
|
||||
│ ├── proxmox-manager-demo.gif │ (1280×720, 12 fps, dither=none)
|
||||
│ ├── proxmox-manager-demo.cast │ (Asciinema v2 Event-Stream, 33 KB)
|
||||
│ └── pty_stream.log │ (Anonymisierter Stream-Dump)
|
||||
└────────────────┬───────────────┘
|
||||
│
|
||||
build_player.py
|
||||
└── index.html (Interaktiver Vektor-Player mit Kapiteln & Textauswahl)
|
||||
│
|
||||
verify_demo.py (Automated Validation)
|
||||
├── OCR (tesseract) @ 2s, 8s, 18s
|
||||
├── Privacy regex scanner (0 leaks in OCR, PTY, Cast)
|
||||
└── ffprobe stream & size checks
|
||||
```
|
||||
|
||||
### 1. Deterministischer Session-Treiber (`session_driver.py`)
|
||||
- Steuert die echte `pman`-Konsole über SSH (`ssh -tt pve 'TERM=xterm-256color pman'`) an.
|
||||
- Verwendet kein blindes `sleep`-Piping: Eine `pexpect`-Zustandsmaschine wartet auf konkrete Text-Buffer vor jeder Aktion (`h`, Enter, `m`, Cursor-Navigation, Esc, `q`).
|
||||
- Keine schreibenden Aktionen: Es werden keine Installationen, Services, Reboots oder mutierenden Helper gestartet.
|
||||
|
||||
### 2. In-Stream-Pseudonymisierung (`StreamAnonymizer`)
|
||||
- Ersetzt sensible Daten im Bytestrom in Echtzeit, bevor sie auf das Terminal gezeichnet werden:
|
||||
- Header-Titel: `Proxmox VM/CT Manager` → `PROXMOX MANAGER ` (längengleich).
|
||||
- Node-Name: `Node: pve` → `Node: pve-node-01` (Ausgleich der Padding-Leerzeichen; kein Verrutschen der `║`-Boxgrenze).
|
||||
- Private IP-Adressen: Reale `192.168.*`-Adressen werden durch längengleiche RFC-5737-Dokumentations-IPs (`192.0.2.*`) ersetzt.
|
||||
- FQDNs: `pve.fritz.box` wird durch `pve-node-01.lan ` ersetzt.
|
||||
- SSH-Disconnect-Banner werden im Bytestrom bereinigt.
|
||||
|
||||
### 3. Headless Rendering & Geometrie (`build_demo.py`)
|
||||
- Rendering läuft isoliert in `Xvfb :99 -screen 0 1280x720x24`.
|
||||
- Rahmenterminal (Kitty) mit `DejaVu Sans Mono` bei `15.5 pt` und `window_padding_width=24` füllt das Canvas exakt aus.
|
||||
- Keine Skalierungsunschärfe, keine Fensterrahmen, kein Desktop-Hintergrund, keine Terminal-in-Terminal-Verschachtelung.
|
||||
|
||||
### 4. Artefakt-Generierung
|
||||
- **Rohvideo**: `1280×720`, H.264, 30 fps, ca. 24–27 Sekunden Dauer.
|
||||
- **GIF**: `1280×720`, 12 fps, optimierte Palette (`palettegen=max_colors=128:stats_mode=diff`, `paletteuse=dither=none`), Dateigröße unter 1 MB (Ziel < 10 MB).
|
||||
- **Asciinema Cast**: `docs/demo/out/proxmox-manager-demo.cast` (33 KB NDJSON mit exakten Timestamps und Terminal-Events).
|
||||
|
||||
### 5. Interaktiver Web-Vektor-Player (`index.html` / `build_player.py`)
|
||||
- Standalone HTML5-Webplayer mit integriertem Asciinema-Player v3 (Canvas/WASM-Rendering).
|
||||
- Vollständige Wiedergabesteuerung: Play/Pause, Timeline-Scrubber, 1x/2x Geschwindigkeit, Vollbild.
|
||||
- Interaktive Kapitelsprungmarken: Direktes Anspringen von Startansicht, Health-Check, Wartungsmenü, Community-Tools und Exit.
|
||||
- **Freie Textauswahl**: Alle Terminalinhalte können direkt mit der Maus markiert und per Tastatur kopiert werden (`Strg+C`).
|
||||
- Offline- und Online-fähig: Lädt lokale Vendor-Assets (`vendor/`) oder eingebetteten Cast, funktioniert sowohl via `file://` als auch auf Webservern oder GitHub Pages.
|
||||
|
||||
---
|
||||
|
||||
## Pipeline ausführen
|
||||
|
||||
Die gesamte Generierung inklusive anschließender automatisierter Validierung erfolgt mit einem einzigen Befehl:
|
||||
|
||||
```bash
|
||||
bash docs/demo/build_demo.sh
|
||||
```
|
||||
|
||||
Alternativ direkt per Python:
|
||||
|
||||
```bash
|
||||
python3 docs/demo/build_demo.py
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Automatisierte Verifikation (`verify_demo.py`)
|
||||
|
||||
Das Prüfskript validiert das erzeugte Artefakt objektiv vor Abschluss:
|
||||
|
||||
```bash
|
||||
python3 docs/demo/verify_demo.py
|
||||
```
|
||||
|
||||
### Kriterien & Prüfpunkte:
|
||||
1. **ffprobe Stream-Validierung**:
|
||||
- Rohvideo: Exakt 1280×720, 30 fps, Dauer zwischen 20.0s und 28.0s.
|
||||
- GIF: 1100–1280 px Breite, 10–12 fps, Dateigröße < 10 MB.
|
||||
2. **OCR-Prüfung (`tesseract`)**:
|
||||
- Sekunde 2.0: Extrahiert Frame und verifiziert Schlüsselbegriff `"PROXMOX MANAGER"`.
|
||||
- Sekunde 8.0: Extrahiert Frame und verifiziert Schlüsselbegriff `"Health"`.
|
||||
- Sekunde 18.0: Extrahiert Frame und verifiziert Schlüsselbegriff `"Community PVE"`.
|
||||
3. **Privacy-Check (Regex)**:
|
||||
- Vollständiger Scan der OCR-Texte aller Frames und des gesamten aufgezeichneten PTY-Bytestroms (`pty_stream.log`).
|
||||
- Verifiziert 0 Treffer für reale Hostnamen (`Node: pve`, `pve.fritz.box`) und RFC1918-IPs (`192.168.*`, `10.*`, `172.16-31.*`).
|
||||
Executable
+150
@@ -0,0 +1,150 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Deterministic Headless Pipeline to build pixel-perfect GIF & raw MP4 demo for Proxmox Manager."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import signal
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
|
||||
DEMO_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
OUT_DIR = os.path.join(DEMO_DIR, "out")
|
||||
RAW_VIDEO = os.path.join(OUT_DIR, "proxmox-manager-demo-raw.mp4")
|
||||
GIF_FILE = os.path.join(OUT_DIR, "proxmox-manager-demo.gif")
|
||||
SESSION_DRIVER = os.path.join(DEMO_DIR, "session_driver.py")
|
||||
VERIFY_SCRIPT = os.path.join(DEMO_DIR, "verify_demo.py")
|
||||
BUILD_PLAYER = os.path.join(DEMO_DIR, "build_player.py")
|
||||
DISPLAY_NUM = ":99"
|
||||
|
||||
|
||||
def main() -> int:
|
||||
os.makedirs(OUT_DIR, exist_ok=True)
|
||||
print("=================================================================")
|
||||
print("PROXMOX MANAGER DEMO — DETERMINISTIC HEADLESS PIPELINE")
|
||||
print("=================================================================")
|
||||
print(f"Target Video: {RAW_VIDEO}")
|
||||
print(f"Target GIF: {GIF_FILE}")
|
||||
print("Display: Xvfb 1280x720x24 on " + DISPLAY_NUM)
|
||||
|
||||
# 1. Clean up stale Xvfb and marker
|
||||
subprocess.run(["pkill", "-f", f"Xvfb {DISPLAY_NUM}"], stderr=subprocess.DEVNULL)
|
||||
ready_marker = "/tmp/pman_demo_ready"
|
||||
if os.path.exists(ready_marker):
|
||||
os.remove(ready_marker)
|
||||
time.sleep(0.5)
|
||||
|
||||
# 2. Launch Xvfb
|
||||
print("\n[1/5] Launching isolated Xvfb server...")
|
||||
xvfb_proc = subprocess.Popen(
|
||||
["Xvfb", DISPLAY_NUM, "-screen", "0", "1280x720x24"],
|
||||
stdout=subprocess.DEVNULL,
|
||||
stderr=subprocess.DEVNULL,
|
||||
)
|
||||
time.sleep(1.2)
|
||||
if xvfb_proc.poll() is not None:
|
||||
print("[FAIL] Failed to start Xvfb.")
|
||||
return 1
|
||||
|
||||
# 3. Launch Kitty with deterministic session driver
|
||||
print("[2/5] Initializing Kitty terminal and PTY state machine...")
|
||||
kitty_cmd = [
|
||||
"kitty",
|
||||
"--override", "linux_display_server=x11",
|
||||
"--override", "hide_window_decorations=yes",
|
||||
"--override", "remember_window_size=no",
|
||||
"--override", "initial_window_width=1280",
|
||||
"--override", "initial_window_height=720",
|
||||
"--override", "window_padding_width=24",
|
||||
"--override", "font_family=DejaVu Sans Mono",
|
||||
"--override", "font_size=15.5",
|
||||
"--override", "cursor_shape=block",
|
||||
"--override", "cursor_blink_interval=0",
|
||||
"--override", "background=#0d1117",
|
||||
"--override", "foreground=#e6edf3",
|
||||
"python3", SESSION_DRIVER,
|
||||
]
|
||||
|
||||
kitty_env = os.environ.copy()
|
||||
kitty_env["DISPLAY"] = DISPLAY_NUM
|
||||
kitty_env["LIBGL_ALWAYS_SOFTWARE"] = "1"
|
||||
|
||||
kitty_proc = subprocess.Popen(kitty_cmd, env=kitty_env, stderr=subprocess.DEVNULL)
|
||||
|
||||
# Wait for session driver to signal ready
|
||||
print(" Waiting for terminal mapping and session driver ready signal...")
|
||||
t_start = time.time()
|
||||
while not os.path.exists(ready_marker) and time.time() - t_start < 10.0:
|
||||
time.sleep(0.05)
|
||||
|
||||
# 4. Start ffmpeg x11grab exactly synchronized with live session
|
||||
print("[3/5] Starting lossless 30 fps x11grab recorder...")
|
||||
ffmpeg_cmd = [
|
||||
"ffmpeg",
|
||||
"-hide_banner",
|
||||
"-loglevel", "error",
|
||||
"-y",
|
||||
"-f", "x11grab",
|
||||
"-draw_mouse", "0",
|
||||
"-framerate", "30",
|
||||
"-video_size", "1280x720",
|
||||
"-i", f"{DISPLAY_NUM}.0",
|
||||
"-c:v", "libx264",
|
||||
"-preset", "fast",
|
||||
"-crf", "18",
|
||||
"-pix_fmt", "yuv420p",
|
||||
RAW_VIDEO,
|
||||
]
|
||||
rec_proc = subprocess.Popen(ffmpeg_cmd)
|
||||
|
||||
# Wait for Kitty to complete
|
||||
kitty_code = kitty_proc.wait()
|
||||
print(f" Session driver finished with exit code: {kitty_code}")
|
||||
|
||||
# Allow ffmpeg to capture the final state
|
||||
time.sleep(0.3)
|
||||
|
||||
# Stop ffmpeg gracefully
|
||||
print("[4/5] Finalizing raw MP4 recording...")
|
||||
rec_proc.send_signal(signal.SIGINT)
|
||||
try:
|
||||
rec_proc.wait(timeout=5)
|
||||
except subprocess.TimeoutExpired:
|
||||
rec_proc.terminate()
|
||||
rec_proc.wait()
|
||||
|
||||
# Terminate Xvfb
|
||||
xvfb_proc.terminate()
|
||||
xvfb_proc.wait()
|
||||
|
||||
# 5. Export pixel-perfect GIF
|
||||
print("[5/5] Generating optimized sharp GIF (stats_mode=diff, dither=none)...")
|
||||
gif_cmd = [
|
||||
"ffmpeg",
|
||||
"-hide_banner",
|
||||
"-loglevel", "error",
|
||||
"-y",
|
||||
"-i", RAW_VIDEO,
|
||||
"-filter_complex",
|
||||
"[0:v]fps=12,split[a][b];[a]palettegen=max_colors=128:stats_mode=diff[p];[b][p]paletteuse=dither=none",
|
||||
"-loop", "0",
|
||||
GIF_FILE,
|
||||
]
|
||||
subprocess.run(gif_cmd, check=True)
|
||||
|
||||
# 6. Build interactive Web Vector Player
|
||||
print("\n[6/6] Generating interactive Web Vector Player (index.html)...")
|
||||
subprocess.run([sys.executable, BUILD_PLAYER], check=True)
|
||||
|
||||
print("\n-----------------------------------------------------------------")
|
||||
print("PIPELINE COMPLETED. RUNNING AUTOMATED VERIFICATION SUITE...")
|
||||
print("-----------------------------------------------------------------\n")
|
||||
|
||||
# Run verification suite
|
||||
verify_proc = subprocess.run([sys.executable, VERIFY_SCRIPT])
|
||||
return verify_proc.returncode
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# =============================================================================
|
||||
# Deterministic Headless Pipeline for Proxmox Manager GIF/Video Demo
|
||||
# =============================================================================
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
exec python3 "${SCRIPT_DIR}/build_demo.py" "$@"
|
||||
Executable
+413
@@ -0,0 +1,413 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Builds standalone interactive HTML Web Vector Player for Proxmox Manager demo."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
DEMO_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
OUT_DIR = os.path.join(DEMO_DIR, "out")
|
||||
CAST_FILE = os.path.join(OUT_DIR, "proxmox-manager-demo.cast")
|
||||
HTML_FILE = os.path.join(DEMO_DIR, "index.html")
|
||||
|
||||
|
||||
def build_player() -> None:
|
||||
if not os.path.isfile(CAST_FILE):
|
||||
print(f"[FAIL] Cast file missing: {CAST_FILE}")
|
||||
sys.exit(1)
|
||||
|
||||
with open(CAST_FILE, "r", encoding="utf-8") as f:
|
||||
cast_content = f.read()
|
||||
|
||||
# Escape cast content for embedding in JS string safely
|
||||
escaped_cast = json.dumps(cast_content)
|
||||
|
||||
html = f"""<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Proxmox Manager — Interaktive Terminal-Demo</title>
|
||||
<link rel="stylesheet" href="vendor/asciinema-player.css">
|
||||
<style>
|
||||
:root {{
|
||||
--bg: #0d1117;
|
||||
--card-bg: #161b22;
|
||||
--border: #30363d;
|
||||
--text: #e6edf3;
|
||||
--text-muted: #8b949e;
|
||||
--accent: #58a6ff;
|
||||
--accent-hover: #79c0ff;
|
||||
--green: #3fb950;
|
||||
--purple: #bc8cff;
|
||||
}}
|
||||
|
||||
* {{
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}}
|
||||
|
||||
body {{
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
||||
background-color: var(--bg);
|
||||
color: var(--text);
|
||||
line-height: 1.5;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 24px 16px;
|
||||
}}
|
||||
|
||||
.container {{
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}}
|
||||
|
||||
header {{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}}
|
||||
|
||||
.header-top {{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
}}
|
||||
|
||||
h1 {{
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}}
|
||||
|
||||
.badge {{
|
||||
display: inline-block;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
padding: 3px 8px;
|
||||
border-radius: 12px;
|
||||
background: rgba(88, 166, 255, 0.15);
|
||||
color: var(--accent);
|
||||
border: 1px solid rgba(88, 166, 255, 0.3);
|
||||
}}
|
||||
|
||||
.badge-success {{
|
||||
background: rgba(63, 185, 80, 0.15);
|
||||
color: var(--green);
|
||||
border-color: rgba(63, 185, 80, 0.3);
|
||||
}}
|
||||
|
||||
.subtitle {{
|
||||
color: var(--text-muted);
|
||||
font-size: 0.95rem;
|
||||
}}
|
||||
|
||||
.player-card {{
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
||||
}}
|
||||
|
||||
.window-header {{
|
||||
background: #0b0e14;
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 10px 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
user-select: none;
|
||||
}}
|
||||
|
||||
.dots {{
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
}}
|
||||
|
||||
.dot {{
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
border-radius: 50%;
|
||||
}}
|
||||
|
||||
.dot-red {{ background: #ff5f56; }}
|
||||
.dot-yellow {{ background: #ffbd2e; }}
|
||||
.dot-green {{ background: #27c93f; }}
|
||||
|
||||
.window-title {{
|
||||
font-family: monospace;
|
||||
font-size: 0.82rem;
|
||||
color: var(--text-muted);
|
||||
}}
|
||||
|
||||
#player {{
|
||||
width: 100%;
|
||||
min-height: 480px;
|
||||
}}
|
||||
|
||||
.asciinema-player-theme-monokai {{
|
||||
--term-font-family: "DejaVu Sans Mono", "Fira Code", monospace;
|
||||
}}
|
||||
|
||||
.chapters {{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
padding: 12px 14px;
|
||||
background: #0e1217;
|
||||
border-top: 1px solid var(--border);
|
||||
align-items: center;
|
||||
}}
|
||||
|
||||
.chapters-label {{
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-muted);
|
||||
margin-right: 4px;
|
||||
}}
|
||||
|
||||
.chapter-btn {{
|
||||
background: #21262d;
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
font-size: 0.8rem;
|
||||
padding: 5px 10px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}}
|
||||
|
||||
.chapter-btn:hover {{
|
||||
background: #30363d;
|
||||
border-color: var(--accent);
|
||||
color: var(--accent-hover);
|
||||
}}
|
||||
|
||||
.chapter-time {{
|
||||
color: var(--accent);
|
||||
font-family: monospace;
|
||||
font-size: 0.75rem;
|
||||
}}
|
||||
|
||||
.info-grid {{
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 12px;
|
||||
margin-top: 4px;
|
||||
}}
|
||||
|
||||
.info-card {{
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 14px;
|
||||
}}
|
||||
|
||||
.info-card h3 {{
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 6px;
|
||||
color: var(--accent);
|
||||
}}
|
||||
|
||||
.info-card p, .info-card ul {{
|
||||
font-size: 0.82rem;
|
||||
color: var(--text-muted);
|
||||
}}
|
||||
|
||||
.info-card ul {{
|
||||
padding-left: 18px;
|
||||
margin-top: 4px;
|
||||
}}
|
||||
|
||||
.info-card li {{
|
||||
margin-bottom: 3px;
|
||||
}}
|
||||
|
||||
kbd {{
|
||||
background: #21262d;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 1px 0 rgba(0,0,0,0.2);
|
||||
color: var(--text);
|
||||
display: inline-block;
|
||||
font-family: monospace;
|
||||
font-size: 0.75rem;
|
||||
padding: 1px 5px;
|
||||
}}
|
||||
|
||||
footer {{
|
||||
margin-top: auto;
|
||||
padding: 16px 0;
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-muted);
|
||||
text-align: center;
|
||||
}}
|
||||
|
||||
footer a {{
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
}}
|
||||
|
||||
footer a:hover {{
|
||||
text-decoration: underline;
|
||||
}}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<div class="header-top">
|
||||
<h1>
|
||||
<span>Proxmox Manager</span>
|
||||
<span class="badge">v2.14.0</span>
|
||||
<span class="badge badge-success">Vektor-Demo</span>
|
||||
</h1>
|
||||
<div style="font-size: 0.85rem;">
|
||||
<a href="https://github.com/TimInTech/proxmox-manager" target="_blank" style="color: var(--accent); text-decoration: none;">GitHub Repository →</a>
|
||||
</div>
|
||||
</div>
|
||||
<p class="subtitle">Interaktive, verlustfreie Terminal-Aufzeichnung mit pausierbarem Ablauf, Zeitstrahl und frei markierbarem Text.</p>
|
||||
</header>
|
||||
|
||||
<div class="player-card">
|
||||
<div class="window-header">
|
||||
<div class="dots">
|
||||
<div class="dot dot-red"></div>
|
||||
<div class="dot dot-yellow"></div>
|
||||
<div class="dot dot-green"></div>
|
||||
</div>
|
||||
<div class="window-title">pve-node-01: pman — 120×34</div>
|
||||
<div style="width: 40px;"></div>
|
||||
</div>
|
||||
|
||||
<div id="player"></div>
|
||||
|
||||
<div class="chapters">
|
||||
<span class="chapters-label">Kapitel:</span>
|
||||
<button class="chapter-btn" onclick="seekTo(0)">
|
||||
<span class="chapter-time">0:00</span> Startansicht
|
||||
</button>
|
||||
<button class="chapter-btn" onclick="seekTo(3.2)">
|
||||
<span class="chapter-time">0:03</span> Health Check (h)
|
||||
</button>
|
||||
<button class="chapter-btn" onclick="seekTo(9.5)">
|
||||
<span class="chapter-time">0:10</span> Hauptmenü
|
||||
</button>
|
||||
<button class="chapter-btn" onclick="seekTo(12.0)">
|
||||
<span class="chapter-time">0:12</span> Wartungsmenü (m)
|
||||
</button>
|
||||
<button class="chapter-btn" onclick="seekTo(15.0)">
|
||||
<span class="chapter-time">0:15</span> Community PVE-Werkzeuge
|
||||
</button>
|
||||
<button class="chapter-btn" onclick="seekTo(22.0)">
|
||||
<span class="chapter-time">0:22</span> Beenden (q)
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-grid">
|
||||
<div class="info-card">
|
||||
<h3>Interaktion & Steuerung</h3>
|
||||
<ul>
|
||||
<li><kbd>Leertaste</kbd> oder Klick ins Terminal: Play / Pause</li>
|
||||
<li><kbd>←</kbd> / <kbd>→</kbd>: 5 Sekunden vor / zurückspringen</li>
|
||||
<li><kbd>f</kbd>: Vollbildmodus umschalten</li>
|
||||
<li><strong>Text-Auswahl:</strong> Jeder Text im Terminal kann mit der Maus markiert und per <kbd>Strg+C</kbd> kopiert werden.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="info-card">
|
||||
<h3>Datenschutz & Sicherheit</h3>
|
||||
<ul>
|
||||
<li><strong>In-Stream-Pseudonymisierung:</strong> Reale IPs werden im Bytestrom durch RFC 5737 TEST-NET-1 (192.0.2.*) ersetzt.</li>
|
||||
<li><strong>Keine Verschiebungen:</strong> Box-Drawing-Zeichen (│, ─, ┌) bleiben bytegenau ausgerichtet.</li>
|
||||
<li><strong>100% Read-Only:</strong> Keine Reboots, Bestätigungen oder schreibenden Aktionen.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="info-card">
|
||||
<h3>Rendering-Architektur</h3>
|
||||
<ul>
|
||||
<li><strong>Vektor-Engine:</strong> Native ANSI/VT100-Wiedergabe über WebAssembly/Canvas (Asciinema v3).</li>
|
||||
<li><strong>Keine Kantenunschärfe:</strong> Gestochen scharfe Monospace-Schrift bei jeder Zoomstufe.</li>
|
||||
<li><strong>Geringe Dateigröße:</strong> Gesamter Session-Cast umfasst nur ~33 KB (vs. 870 KB GIF).</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
Proxmox Manager • Open Source unter MIT Lizenz • <a href="https://github.com/TimInTech/proxmox-manager">GitHub</a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="vendor/asciinema-player.min.js"></script>
|
||||
<script>
|
||||
let playerInstance = null;
|
||||
const embeddedCast = {escaped_cast};
|
||||
|
||||
function initPlayer() {{
|
||||
const container = document.getElementById('player');
|
||||
|
||||
// Determine source: fetch if HTTP/HTTPS, fallback to embedded data string if file:// or fetch fails
|
||||
const isHttp = window.location.protocol.startsWith('http');
|
||||
const src = isHttp ? 'out/proxmox-manager-demo.cast' : {{ data: embeddedCast }};
|
||||
|
||||
try {{
|
||||
playerInstance = AsciinemaPlayer.create(src, container, {{
|
||||
autoPlay: true,
|
||||
loop: true,
|
||||
speed: 1.0,
|
||||
theme: 'monokai',
|
||||
fit: 'width',
|
||||
terminalFontFamily: '"DejaVu Sans Mono", "Cascadia Code", "Fira Code", monospace'
|
||||
}});
|
||||
}} catch (err) {{
|
||||
console.warn('Initial load failed, falling back to embedded cast string:', err);
|
||||
playerInstance = AsciinemaPlayer.create({{ data: embeddedCast }}, container, {{
|
||||
autoPlay: true,
|
||||
loop: true,
|
||||
speed: 1.0,
|
||||
theme: 'monokai',
|
||||
fit: 'width',
|
||||
terminalFontFamily: '"DejaVu Sans Mono", "Cascadia Code", "Fira Code", monospace'
|
||||
}});
|
||||
}}
|
||||
}}
|
||||
|
||||
function seekTo(seconds) {{
|
||||
if (playerInstance && typeof playerInstance.seek === 'function') {{
|
||||
playerInstance.seek(seconds);
|
||||
}}
|
||||
}}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', initPlayer);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
"""
|
||||
|
||||
with open(HTML_FILE, "w", encoding="utf-8") as f:
|
||||
f.write(html)
|
||||
|
||||
print(f"[OK] Generated interactive Web Vector Player: {HTML_FILE}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
build_player()
|
||||
@@ -0,0 +1,377 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Proxmox Manager — Interaktive Terminal-Demo</title>
|
||||
<link rel="stylesheet" href="vendor/asciinema-player.css">
|
||||
<style>
|
||||
:root {
|
||||
--bg: #0d1117;
|
||||
--card-bg: #161b22;
|
||||
--border: #30363d;
|
||||
--text: #e6edf3;
|
||||
--text-muted: #8b949e;
|
||||
--accent: #58a6ff;
|
||||
--accent-hover: #79c0ff;
|
||||
--green: #3fb950;
|
||||
--purple: #bc8cff;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
||||
background-color: var(--bg);
|
||||
color: var(--text);
|
||||
line-height: 1.5;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 24px 16px;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
max-width: 1024px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.header-top {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.badge {
|
||||
display: inline-block;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
padding: 3px 8px;
|
||||
border-radius: 12px;
|
||||
background: rgba(88, 166, 255, 0.15);
|
||||
color: var(--accent);
|
||||
border: 1px solid rgba(88, 166, 255, 0.3);
|
||||
}
|
||||
|
||||
.badge-success {
|
||||
background: rgba(63, 185, 80, 0.15);
|
||||
color: var(--green);
|
||||
border-color: rgba(63, 185, 80, 0.3);
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
color: var(--text-muted);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.player-card {
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.window-header {
|
||||
background: #0b0e14;
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 10px 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.dots {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.dot {
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.dot-red { background: #ff5f56; }
|
||||
.dot-yellow { background: #ffbd2e; }
|
||||
.dot-green { background: #27c93f; }
|
||||
|
||||
.window-title {
|
||||
font-family: monospace;
|
||||
font-size: 0.82rem;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
#player {
|
||||
width: 100%;
|
||||
min-height: 480px;
|
||||
}
|
||||
|
||||
.asciinema-player-theme-monokai {
|
||||
--term-font-family: "DejaVu Sans Mono", "Fira Code", monospace;
|
||||
}
|
||||
|
||||
.chapters {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
padding: 12px 14px;
|
||||
background: #0e1217;
|
||||
border-top: 1px solid var(--border);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.chapters-label {
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
color: var(--text-muted);
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.chapter-btn {
|
||||
background: #21262d;
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
font-size: 0.8rem;
|
||||
padding: 5px 10px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.chapter-btn:hover {
|
||||
background: #30363d;
|
||||
border-color: var(--accent);
|
||||
color: var(--accent-hover);
|
||||
}
|
||||
|
||||
.chapter-time {
|
||||
color: var(--accent);
|
||||
font-family: monospace;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.info-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: 12px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.info-card {
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.info-card h3 {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 6px;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.info-card p, .info-card ul {
|
||||
font-size: 0.82rem;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.info-card ul {
|
||||
padding-left: 18px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.info-card li {
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
kbd {
|
||||
background: #21262d;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 1px 0 rgba(0,0,0,0.2);
|
||||
color: var(--text);
|
||||
display: inline-block;
|
||||
font-family: monospace;
|
||||
font-size: 0.75rem;
|
||||
padding: 1px 5px;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: auto;
|
||||
padding: 16px 0;
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-muted);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
footer a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
footer a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<div class="header-top">
|
||||
<h1>
|
||||
<span>Proxmox Manager</span>
|
||||
<span class="badge">v2.14.0</span>
|
||||
<span class="badge badge-success">Vektor-Demo</span>
|
||||
</h1>
|
||||
<div style="font-size: 0.85rem;">
|
||||
<a href="https://github.com/TimInTech/proxmox-manager" target="_blank" style="color: var(--accent); text-decoration: none;">GitHub Repository →</a>
|
||||
</div>
|
||||
</div>
|
||||
<p class="subtitle">Interaktive, verlustfreie Terminal-Aufzeichnung mit pausierbarem Ablauf, Zeitstrahl und frei markierbarem Text.</p>
|
||||
</header>
|
||||
|
||||
<div class="player-card">
|
||||
<div class="window-header">
|
||||
<div class="dots">
|
||||
<div class="dot dot-red"></div>
|
||||
<div class="dot dot-yellow"></div>
|
||||
<div class="dot dot-green"></div>
|
||||
</div>
|
||||
<div class="window-title">pve-node-01: pman — 120×34</div>
|
||||
<div style="width: 40px;"></div>
|
||||
</div>
|
||||
|
||||
<div id="player"></div>
|
||||
|
||||
<div class="chapters">
|
||||
<span class="chapters-label">Kapitel:</span>
|
||||
<button class="chapter-btn" onclick="seekTo(0)">
|
||||
<span class="chapter-time">0:00</span> Startansicht
|
||||
</button>
|
||||
<button class="chapter-btn" onclick="seekTo(3.2)">
|
||||
<span class="chapter-time">0:03</span> Health Check (h)
|
||||
</button>
|
||||
<button class="chapter-btn" onclick="seekTo(9.5)">
|
||||
<span class="chapter-time">0:10</span> Hauptmenü
|
||||
</button>
|
||||
<button class="chapter-btn" onclick="seekTo(12.0)">
|
||||
<span class="chapter-time">0:12</span> Wartungsmenü (m)
|
||||
</button>
|
||||
<button class="chapter-btn" onclick="seekTo(15.0)">
|
||||
<span class="chapter-time">0:15</span> Community PVE-Werkzeuge
|
||||
</button>
|
||||
<button class="chapter-btn" onclick="seekTo(22.0)">
|
||||
<span class="chapter-time">0:22</span> Beenden (q)
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="info-grid">
|
||||
<div class="info-card">
|
||||
<h3>Interaktion & Steuerung</h3>
|
||||
<ul>
|
||||
<li><kbd>Leertaste</kbd> oder Klick ins Terminal: Play / Pause</li>
|
||||
<li><kbd>←</kbd> / <kbd>→</kbd>: 5 Sekunden vor / zurückspringen</li>
|
||||
<li><kbd>f</kbd>: Vollbildmodus umschalten</li>
|
||||
<li><strong>Text-Auswahl:</strong> Jeder Text im Terminal kann mit der Maus markiert und per <kbd>Strg+C</kbd> kopiert werden.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="info-card">
|
||||
<h3>Datenschutz & Sicherheit</h3>
|
||||
<ul>
|
||||
<li><strong>In-Stream-Pseudonymisierung:</strong> Reale IPs werden im Bytestrom durch RFC 5737 TEST-NET-1 (192.0.2.*) ersetzt.</li>
|
||||
<li><strong>Keine Verschiebungen:</strong> Box-Drawing-Zeichen (│, ─, ┌) bleiben bytegenau ausgerichtet.</li>
|
||||
<li><strong>100% Read-Only:</strong> Keine Reboots, Bestätigungen oder schreibenden Aktionen.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="info-card">
|
||||
<h3>Rendering-Architektur</h3>
|
||||
<ul>
|
||||
<li><strong>Vektor-Engine:</strong> Native ANSI/VT100-Wiedergabe über WebAssembly/Canvas (Asciinema v3).</li>
|
||||
<li><strong>Keine Kantenunschärfe:</strong> Gestochen scharfe Monospace-Schrift bei jeder Zoomstufe.</li>
|
||||
<li><strong>Geringe Dateigröße:</strong> Gesamter Session-Cast umfasst nur ~33 KB (vs. 870 KB GIF).</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
Proxmox Manager • Open Source unter MIT Lizenz • <a href="https://github.com/TimInTech/proxmox-manager">GitHub</a>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<script src="vendor/asciinema-player.min.js"></script>
|
||||
<script>
|
||||
let playerInstance = null;
|
||||
const embeddedCast = "{\"version\": 2, \"width\": 80, \"height\": 24, \"timestamp\": 1793658422, \"title\": \"Proxmox Manager Demo\", \"env\": {\"TERM\": \"xterm-256color\", \"SHELL\": \"/bin/bash\"}}\n[0.1401, \"o\", \"\\u001b[H\\u001b[2J\\u001b[3J\"]\n[0.866, \"o\", \"\\u001b[94m\\u2554\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2557\\u001b[0m\\r\\n\"]\n[0.8662, \"o\", \"\\u001b[94m\\u2551\\u001b[0m\"]\n[0.8667, \"o\", \" \\u001b[96m\\u001b[1m\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2557 \\u2588\\u2588\\u2588\\u2557 \\u2588\\u2588\\u2588\\u2557 \\u2588\\u2588\\u2588\\u2588\\u2588\\u2557 \\u2588\\u2588\\u2588\\u2557 \\u2588\\u2588\\u2557\\u001b[0m \\u001b[94m\\u2551\\u001b[0m\\r\\n\"]\n[0.8668, \"o\", \"\\u001b[94m\\u2551\\u001b[0m\"]\n[0.8672, \"o\", \" \\u001b[96m\\u001b[1m\\u2588\\u2588\\u2554\\u2550\\u2550\\u2588\\u2588\\u2557\\u2588\\u2588\\u2588\\u2588\\u2557 \\u2588\\u2588\\u2588\\u2588\\u2551\\u2588\\u2588\\u2554\\u2550\\u2550\\u2588\\u2588\\u2557\\u2588\\u2588\\u2588\\u2588\\u2557 \\u2588\\u2588\\u2551\\u001b[0m \\u001b[94m\\u2551\\u001b[0m\\r\\n\"]\n[0.8674, \"o\", \"\\u001b[94m\\u2551\\u001b[0m\"]\n[0.8679, \"o\", \" \\u001b[96m\\u001b[1m\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2554\\u255d\\u2588\\u2588\\u2554\\u2588\\u2588\\u2588\\u2588\\u2554\\u2588\\u2588\\u2551\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2551\\u2588\\u2588\\u2554\\u2588\\u2588\\u2557\\u2588\\u2588\\u2551\\u001b[0m \\u001b[94m\\u2551\\u001b[0m\\r\\n\"]\n[0.8681, \"o\", \"\\u001b[94m\\u2551\\u001b[0m\"]\n[0.8685, \"o\", \" \\u001b[96m\\u001b[1m\\u2588\\u2588\\u2554\\u2550\\u2550\\u2550\\u255d \\u2588\\u2588\\u2551\\u255a\\u2588\\u2588\\u2554\\u255d\\u2588\\u2588\\u2551\\u2588\\u2588\\u2554\\u2550\\u2550\\u2588\\u2588\\u2551\\u2588\\u2588\\u2551\\u255a\\u2588\\u2588\\u2588\\u2588\\u2551\\u001b[0m \\u001b[94m\\u2551\\u001b[0m\\r\\n\"]\n[0.8686, \"o\", \"\\u001b[94m\\u2551\\u001b[0m\"]\n[0.8691, \"o\", \" \\u001b[96m\\u001b[1m\\u2588\\u2588\\u2551 \\u2588\\u2588\\u2551 \\u255a\\u2550\\u255d \\u2588\\u2588\\u2551\\u2588\\u2588\\u2551 \\u2588\\u2588\\u2551\\u2588\\u2588\\u2551 \\u2588\\u2588\\u2588\\u2551\\u001b[0m \\u001b[94m\\u2551\\u001b[0m\\r\\n\"]\n[0.8692, \"o\", \"\"]\n[0.8699, \"o\", \"\\u001b[94m\\u2560\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2563\\u001b[0m\\r\\n\"]\n[0.8701, \"o\", \"\\u001b[94m\\u2551\\u001b[0m\"]\n[0.8705, \"o\", \" PROXMOX MANAGER \\u001b[95m\\u001b[1mv2.14.0\\u001b[0m \\u001b[94m\\u2551\\u001b[0m\\r\\n\"]\n[0.8706, \"o\", \"\"]\n[0.8722, \"o\", \"\\u001b[94m\\u2551\\u001b[0m\"]\n[0.8735, \"o\", \" \\u001b[1mNode:\\u001b[0m \\u001b[37mpve-node-01\\u001b[0m \\u001b[2m|\\u001b[0m \\u001b[1mPVE:\\u001b[0m \\u001b[37m9.2.24\\u001b[0m \\u001b[2m|\\u001b[0m \\u001b[1mup\\u001b[0m \\u001b[37m6d 0h 7m\\u001b[0m \\u001b[94m\\u2551\\u001b[0m\\r\\n\"]\n[0.8736, \"o\", \"\"]\n[0.8739, \"o\", \"\\u001b[94m\\u255a\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u2550\\u255d\\u001b[0m\\r\\n\"]\n[0.874, \"o\", \"\\r\\n\"]\n[0.874, \"o\", \"\"]\n[2.4112, \"o\", \"\\u001b[36m\\u250c\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2500\\u2510\\u001b[0m\\r\\n\"]\n[2.4115, \"o\", \"\\u001b[36m\\u2502\\u001b[0m\"]\n[2.4119, \"o\", \" \\u001b[1m\\u001b[37mID TYPE STATUS NAME \\u001b[0m \\u001b[36m\\u2502Line truncated
|
||||
|
||||
function initPlayer() {
|
||||
const container = document.getElementById('player');
|
||||
|
||||
// Determine source: fetch if HTTP/HTTPS, fallback to embedded data string if file:// or fetch fails
|
||||
const isHttp = window.location.protocol.startsWith('http');
|
||||
const src = isHttp ? 'out/proxmox-manager-demo.cast' : { data: embeddedCast };
|
||||
|
||||
try {
|
||||
playerInstance = AsciinemaPlayer.create(src, container, {
|
||||
autoPlay: true,
|
||||
loop: true,
|
||||
speed: 1.0,
|
||||
theme: 'monokai',
|
||||
fit: 'width',
|
||||
terminalFontFamily: '"DejaVu Sans Mono", "Cascadia Code", "Fira Code", monospace'
|
||||
});
|
||||
} catch (err) {
|
||||
console.warn('Initial load failed, falling back to embedded cast string:', err);
|
||||
playerInstance = AsciinemaPlayer.create({ data: embeddedCast }, container, {
|
||||
autoPlay: true,
|
||||
loop: true,
|
||||
speed: 1.0,
|
||||
theme: 'monokai',
|
||||
fit: 'width',
|
||||
terminalFontFamily: '"DejaVu Sans Mono", "Cascadia Code", "Fira Code", monospace'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function seekTo(seconds) {
|
||||
if (playerInstance && typeof playerInstance.seek === 'function') {
|
||||
playerInstance.seek(seconds);
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', initPlayer);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
@@ -0,0 +1,261 @@
|
||||
{"version": 2, "width": 80, "height": 24, "timestamp": 1793658422, "title": "Proxmox Manager Demo", "env": {"TERM": "xterm-256color", "SHELL": "/bin/bash"}}
|
||||
[0.1401, "o", "\u001b[H\u001b[2J\u001b[3J"]
|
||||
[0.866, "o", "\u001b[94m\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557\u001b[0m\r\n"]
|
||||
[0.8662, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[0.8667, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2557\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[0.8668, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[0.8672, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[0.8674, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[0.8679, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557\u2588\u2588\u2551\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[0.8681, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[0.8685, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2554\u2550\u2550\u2550\u255d \u2588\u2588\u2551\u255a\u2588\u2588\u2554\u255d\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551\u255a\u2588\u2588\u2588\u2588\u2551\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[0.8686, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[0.8691, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2551 \u2588\u2588\u2551 \u255a\u2550\u255d \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2588\u2551\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[0.8692, "o", ""]
|
||||
[0.8699, "o", "\u001b[94m\u2560\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563\u001b[0m\r\n"]
|
||||
[0.8701, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[0.8705, "o", " PROXMOX MANAGER \u001b[95m\u001b[1mv2.14.0\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[0.8706, "o", ""]
|
||||
[0.8722, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[0.8735, "o", " \u001b[1mNode:\u001b[0m \u001b[37mpve-node-01\u001b[0m \u001b[2m|\u001b[0m \u001b[1mPVE:\u001b[0m \u001b[37m9.2.24\u001b[0m \u001b[2m|\u001b[0m \u001b[1mup\u001b[0m \u001b[37m6d 0h 7m\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[0.8736, "o", ""]
|
||||
[0.8739, "o", "\u001b[94m\u255a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255d\u001b[0m\r\n"]
|
||||
[0.874, "o", "\r\n"]
|
||||
[0.874, "o", ""]
|
||||
[2.4112, "o", "\u001b[36m\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\u001b[0m\r\n"]
|
||||
[2.4115, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[2.4119, "o", " \u001b[1m\u001b[37mID TYPE STATUS NAME \u001b[0m \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[2.412, "o", ""]
|
||||
[2.4124, "o", "\u001b[36m\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\u001b[0m\r\n"]
|
||||
[2.4125, "o", ""]
|
||||
[2.416, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[2.4165, "o", " 100 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m haos-16.3 \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[2.4166, "o", ""]
|
||||
[2.4202, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[2.4208, "o", " 101 \u001b[95mCT \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m termix \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[2.4209, "o", ""]
|
||||
[2.4244, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[2.425, "o", " 102 \u001b[95mCT \u001b[0m \u001b[91mstopped \u001b[0m \u001b[91m\u25cb\u001b[0m GhostTrack \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[2.4252, "o", ""]
|
||||
[2.4286, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[2.4292, "o", " 103 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m openwrt \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[2.4294, "o", ""]
|
||||
[2.433, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[2.4336, "o", " 104 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m freifunk-test \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[2.4337, "o", ""]
|
||||
[2.4374, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[2.4379, "o", " 106 \u001b[95mCT \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m runtipi \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[2.438, "o", ""]
|
||||
[2.4418, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[2.4423, "o", " 108 \u001b[95mCT \u001b[0m \u001b[91mstopped \u001b[0m \u001b[91m\u25cb\u001b[0m Test2 \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[2.4424, "o", ""]
|
||||
[2.4458, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[2.4467, "o", " 9000 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m umbrel \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[2.4469, "o", ""]
|
||||
[2.4473, "o", "\u001b[36m\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\u001b[0m\r\n"]
|
||||
[2.4474, "o", ""]
|
||||
[2.4491, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[2.4497, "o", " \u001b[92m\u25cf\u001b[0m running \u001b[91m\u25cb\u001b[0m stopped \u001b[93m\u25d0\u001b[0m paused \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[2.4498, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[2.4505, "o", " \u001b[1mCount:\u001b[0m \u001b[92m6 running\u001b[0m \u001b[91m2 stopped\u001b[0m \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[2.4506, "o", ""]
|
||||
[2.4513, "o", "\u001b[36m\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\u001b[0m\r\n"]
|
||||
[2.4514, "o", "\r\n"]
|
||||
[2.4515, "o", " \u001b[1mKeys:\u001b[0m <VMID> = open action menu \u001b[1mh\u001b[0m = health \u001b[1mm\u001b[0m = host maintenance \u001b[1mr\u001b[0m = refresh \u001b[1mq\u001b[0m = quit\r\n"]
|
||||
[2.4515, "o", " \u001b[96m\u2192\u001b[0m "]
|
||||
[5.0026, "o", "\r\n"]
|
||||
[5.0027, "o", ""]
|
||||
[5.9722, "o", "\u001b[36m\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\u001b[0m\r\n"]
|
||||
[5.9725, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[5.973, "o", " \u001b[1m\u001b[37mID TYPE STATUS CPU% MEM% DISK% UPTIME HEALTH NAME\u001b[0m \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[5.9731, "o", ""]
|
||||
[5.9736, "o", "\u001b[36m\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\u001b[0m\r\n"]
|
||||
[5.9736, "o", ""]
|
||||
[5.9793, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[5.9799, "o", " 100 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m 3 93 - 10h 17m \u001b[92mOK \u001b[0m haos-16.3 \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[5.98, "o", ""]
|
||||
[5.986, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[5.9866, "o", " 101 \u001b[95mCT \u001b[0m \u001b[92mrunning \u001b[0m 0 3 38 6d 0h 7m \u001b[92mOK \u001b[0m termix \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[5.9868, "o", ""]
|
||||
[5.9924, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[5.993, "o", " 102 \u001b[95mCT \u001b[0m \u001b[91mstopped \u001b[0m - - - - \u001b[92mOK \u001b[0m GhostTrack \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[5.9931, "o", ""]
|
||||
[5.9992, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[5.9999, "o", " 103 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m 4 14 - 9h 23m \u001b[92mOK \u001b[0m openwrt \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[6.0, "o", ""]
|
||||
[6.0064, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[6.007, "o", " 104 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m 15 11 - 9h 27m \u001b[92mOK \u001b[0m freifunk-test \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[6.0071, "o", ""]
|
||||
[6.0131, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[6.0137, "o", " 106 \u001b[95mCT \u001b[0m \u001b[92mrunning \u001b[0m 2 11 22 5d 23h 19m \u001b[92mOK \u001b[0m runtipi \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[6.0138, "o", ""]
|
||||
[6.0196, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[6.0203, "o", " 108 \u001b[95mCT \u001b[0m \u001b[91mstopped \u001b[0m - - - - \u001b[91mCRIT \u001b[0m Test2 \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[6.0203, "o", ""]
|
||||
[6.027, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[6.0278, "o", " 9000 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m 5 100 - 10h 0m \u001b[91mCRIT \u001b[0m umbrel \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[6.0279, "o", ""]
|
||||
[6.0294, "o", "\u001b[36m\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\u001b[0m\r\n"]
|
||||
[6.0294, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[6.0301, "o", " \u001b[1mFindings:\u001b[0m \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[6.0302, "o", ""]
|
||||
[6.0331, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[6.034, "o", " \u001b[91m[CRIT]\u001b[0m CT 108 (Test2): stopped although onboot=1 \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[6.0341, "o", ""]
|
||||
[6.0367, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[6.0373, "o", " \u001b[91m[CRIT]\u001b[0m VM 9000 (umbrel): memory 100% (>= 98%) \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[6.0374, "o", ""]
|
||||
[6.0382, "o", "\u001b[36m\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\u001b[0m\r\n"]
|
||||
[6.0384, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[6.0389, "o", " \u001b[1mTotal:\u001b[0m 8 guests, 6 running \u001b[92m6 OK\u001b[0m \u001b[93m0 WARN\u001b[0m \u001b[91m2 CRIT\u001b[0m \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[6.039, "o", ""]
|
||||
[6.0397, "o", "\u001b[36m\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\u001b[0m\r\n"]
|
||||
[6.0398, "o", "\r\n"]
|
||||
[6.0399, "o", " \u001b[2mPress Enter to continue...\u001b[0m "]
|
||||
[11.0927, "o", "\u001b[H\u001b[2J\u001b[3J"]
|
||||
[11.856, "o", "\u001b[94m\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557\u001b[0m\r\n"]
|
||||
[11.8563, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[11.8568, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2557\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[11.857, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[11.8574, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[11.8575, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[11.8582, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557\u2588\u2588\u2551\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[11.8583, "o", ""]
|
||||
[11.8587, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[11.8589, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2554\u2550\u2550\u2550\u255d \u2588\u2588\u2551\u255a\u2588\u2588\u2554\u255d\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551\u255a\u2588\u2588\u2588\u2588\u2551\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[11.859, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[11.8597, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2551 \u2588\u2588\u2551 \u255a\u2550\u255d \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2588\u2551\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[11.8598, "o", ""]
|
||||
[11.8606, "o", "\u001b[94m\u2560\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563\u001b[0m\r\n"]
|
||||
[11.8607, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[11.8613, "o", " PROXMOX MANAGER \u001b[95m\u001b[1mv2.14.0\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[11.8615, "o", ""]
|
||||
[11.8629, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[11.8639, "o", " \u001b[1mNode:\u001b[0m \u001b[37mpve-node-01\u001b[0m \u001b[2m|\u001b[0m \u001b[1mPVE:\u001b[0m \u001b[37m9.2.24\u001b[0m \u001b[2m|\u001b[0m \u001b[1mup\u001b[0m \u001b[37m6d 0h 8m\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[11.864, "o", ""]
|
||||
[11.8646, "o", "\u001b[94m\u255a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255d\u001b[0m\r\n"]
|
||||
[11.8647, "o", "\r\n"]
|
||||
[11.8648, "o", ""]
|
||||
[13.4008, "o", "\u001b[36m\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\u001b[0m\r\n"]
|
||||
[13.401, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[13.4014, "o", " \u001b[1m\u001b[37mID TYPE STATUS NAME \u001b[0m \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[13.4015, "o", ""]
|
||||
[13.402, "o", "\u001b[36m\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\u001b[0m\r\n"]
|
||||
[13.4021, "o", ""]
|
||||
[13.406, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[13.4069, "o", " 100 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m haos-16.3 \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[13.407, "o", ""]
|
||||
[13.4105, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[13.4112, "o", " 101 \u001b[95mCT \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m termix \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[13.4113, "o", ""]
|
||||
[13.415, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[13.4155, "o", " 102 \u001b[95mCT \u001b[0m \u001b[91mstopped \u001b[0m \u001b[91m\u25cb\u001b[0m GhostTrack \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[13.4156, "o", ""]
|
||||
[13.4196, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[13.4203, "o", " 103 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m openwrt \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[13.4204, "o", ""]
|
||||
[13.4241, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[13.4248, "o", " 104 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m freifunk-test \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[13.4249, "o", ""]
|
||||
[13.4286, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[13.4292, "o", " 106 \u001b[95mCT \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m runtipi \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[13.4293, "o", ""]
|
||||
[13.4332, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[13.4338, "o", " 108 \u001b[95mCT \u001b[0m \u001b[91mstopped \u001b[0m \u001b[91m\u25cb\u001b[0m Test2 \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[13.4339, "o", ""]
|
||||
[13.4375, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[13.4382, "o", " 9000 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m umbrel \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[13.4382, "o", ""]
|
||||
[13.4389, "o", "\u001b[36m\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\u001b[0m\r\n"]
|
||||
[13.439, "o", ""]
|
||||
[13.4404, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[13.4411, "o", " \u001b[92m\u25cf\u001b[0m running \u001b[91m\u25cb\u001b[0m stopped \u001b[93m\u25d0\u001b[0m paused \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[13.4412, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[13.4417, "o", " \u001b[1mCount:\u001b[0m \u001b[92m6 running\u001b[0m \u001b[91m2 stopped\u001b[0m \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[13.4418, "o", ""]
|
||||
[13.4425, "o", "\u001b[36m\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\u001b[0m\r\n"]
|
||||
[13.4425, "o", ""]
|
||||
[13.4427, "o", "\r\n"]
|
||||
[13.4428, "o", " \u001b[1mKeys:\u001b[0m <VMID> = open action menu \u001b[1mh\u001b[0m = health \u001b[1mm\u001b[0m = host maintenance \u001b[1mr\u001b[0m = refresh \u001b[1mq\u001b[0m = quit\r\n"]
|
||||
[13.4428, "o", " \u001b[96m\u2192\u001b[0m "]
|
||||
[15.6748, "o", "\u001b[?1049h\u001b[22;0;0t\u001b[1;24r\u001b(B\u001b[m\u001b[4l\u001b[?7h\u001b[?1h\u001b="]
|
||||
[15.675, "o", "\u001b[39;49m\u001b[?25l\u001b[?1h\u001b="]
|
||||
[15.6751, "o", "\u001b[39;49m\u001b(B\u001b[m\u001b[H\u001b[2J\u001b(B\u001b[0;1m\u001b[36mpman Wartung | HOST | Wartung\u001b[2;36HDetails\r\u001b[3d"]
|
||||
[15.6752, "o", "\u001b[39m\u001b(B\u001b[0;7m> Storage, Dateisysteme, Inodes\u001b(B\u001b[m Diagnose: Zeigt Speicher, Dateisysteme und\u001b[4;3HSMART und Fehlerverlauf\u001b[4;36HInodes des Hosts.\u001b[5;3HTRIM-Zeitplanung, Kernel, Backu\u001b[6;3HCommunity PVE-Werkzeuge (8)\u001b[36GEnter startet die Diagnose.\u001b[7;3HHerkunft und Aktualit\u00e4tsstatus\r\u001b[22d\u001b[36mZeilen 1\u20134 von 4\r\u001b[23d\u2191\u2193 Auswahl | Enter | PgUp/PgDn | Esc | q Ende\r\u001b[24dBereit\u001b[39m\u001b(B\u001b[m"]
|
||||
[17.377, "o", "\r\u001b[3d Storage, Dateisysteme, Inodes\u001b[3;46HLiest SMART-Zustand und speichert\r\u001b[4d\u001b(B\u001b[0;7m> SMART und Fehlerverlauf\u001b[4;36H\u001b(B\u001b[meinen lokalen Vergleichsstand.\u001b[6;36HQuelle: Eigene Implementierung\u001b[24;7H\u001b[3;46HZeigt TRIM-Zeitplanung, Kernel\u001b[K\r\u001b[4d SMART und Fehlerverlauf\u001b[4;36Hund Backup-Speicher.\u001b[K\r\u001b[5d\u001b(B\u001b[0;7m> TRIM-Zeitplanung, Kernel, Backu\u001b[24;7H\u001b(B\u001b[m\u001b[3;36HCommunity-Werkzeuge\u001b[K\u001b[4;36HEnter \u00f6ffnet diese Ansicht.\r\u001b[5d TRIM-Zeitplanung, Kernel, Backu\r\u001b[6d\u001b(B\u001b[0;7m> Community PVE-Werkzeuge (8)\u001b(B\u001b[m\u001b[K\u001b[22;10H\u001b[36m2 von 2\u001b[24;7H\u001b[39m\u001b(B\u001b[m"]
|
||||
[17.3952, "o", "\u001b[1;24H\u001b(B\u001b[0;1m\u001b[36mCOMMUNITY PVE-WERKZEUGE\r\u001b[3d\u001b[39m\u001b(B\u001b[0;7m> PVE Disk Health Tool\u001b(B\u001b[m SMART-\u00dcbersicht; bietet optional einen\u001b[4;3HPVE LXC Filesystem Trim\u001b[4;36Hkurzen SMART-Selbsttest an\u001b[5;3HPVE LXC Cleaner\u001b[K\r\u001b[6d PVE Kernel Clean \u001b[36GRisiko / Auswirkung:\u001b[7;3HPVE Clean Orphaned LVM Nur Diagnose bis auf Nachfrage. Kann\u001b[8;3HPVE Host Backup\u001b[8;36Hsmartmontools und nvme-cli per APT\u001b[9;3HPVE CPU Scaling Governor\u001b[9;36Hinstallieren.\u001b[10;3HPVE LXC Updater\u001b[11;3H\u2190 Zur\u00fcck zum Wartungsmen\u00fc\u001b[11;36HJeder Start pr\u00fcft den aktuellen Upstream\u001b[12;36Hund die Skript-Pr\u00fcfsumme.\u001b[13;36HDie optionale Upstream-Telemetrie wird\u001b[14;36Hnicht geladen.\u001b[22;10H\u001b[36m12 von 12\r\u001b[24dCommunity Scripts: 8 gepr\u00fcfte Host-Werkzeuge\u001b[39m\u001b(B\u001b[m"]
|
||||
[23.2477, "o", "\u001b[1;24H\u001b(B\u001b[0;1m\u001b[36mWartung\u001b[39m\u001b(B\u001b[m\u001b[K\r\u001b[3d Storage, Dateisysteme, Inodes Community-Werkzeugmen\u00fc geschlossen.\u001b[K\u001b[4;3HSMART und Fehlerverlauf\u001b[K\u001b[5;3HTRIM-Zeitplanung, Kernel, Backu\r\u001b[6d\u001b(B\u001b[0;7m> Community PVE-Werkzeuge (8)\u001b(B\u001b[m\u001b[K\u001b[7;3HHerkunft und Aktualit\u00e4tsstatus\u001b[K\r\u001b[8d\u001b[K\u001b[9d\u001b[K\u001b[10d\u001b[K\u001b[11d\u001b[K\u001b[12d\u001b[K\u001b[13d\u001b[K\u001b[14d\u001b[K\u001b[22;11H\u001b[36m von 1\u001b[39m\u001b(B\u001b[m\u001b[K\r\u001b[24d\u001b[36mBereit\u001b[39m\u001b(B\u001b[m\u001b[K"]
|
||||
[23.8992, "o", "\u001b[?1l\u001b>\u001b[24;1H\u001b[?12l\u001b[?25h\u001b[?1049l\u001b[23;0;0t\r\u001b[?1l\u001b>\r\n"]
|
||||
[23.8993, "o", ""]
|
||||
[23.9114, "o", "\u001b[H\u001b[2J\u001b[3J"]
|
||||
[24.7534, "o", "\u001b[94m\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557\u001b[0m\r\n"]
|
||||
[24.7535, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[24.7541, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2557\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[24.7541, "o", ""]
|
||||
[24.7544, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[24.7548, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u001b[0m"]
|
||||
[24.755, "o", " \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[24.755, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[24.7557, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255d\u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557\u2588\u2588\u2551\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[24.7558, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[24.7565, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2554\u2550\u2550\u2550\u255d \u2588\u2588\u2551\u255a\u2588\u2588\u2554\u255d\u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551\u255a\u2588\u2588\u2588\u2588\u2551\u001b[0m"]
|
||||
[24.7568, "o", " \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[24.7568, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[24.7574, "o", " \u001b[96m\u001b[1m\u2588\u2588\u2551 \u2588\u2588\u2551 \u255a\u2550\u255d \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2588\u2551\u001b[0m "]
|
||||
[24.7577, "o", "\u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[24.7577, "o", ""]
|
||||
[24.7582, "o", "\u001b[94m\u2560\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563\u001b[0m\r\n"]
|
||||
[24.7582, "o", ""]
|
||||
[24.7585, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[24.759, "o", " PROXMOX MANAGER \u001b[95m\u001b[1mv2.14.0\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[24.7591, "o", ""]
|
||||
[24.7607, "o", "\u001b[94m\u2551\u001b[0m"]
|
||||
[24.7616, "o", " \u001b[1mNode:\u001b[0m \u001b[37mpve-node-01\u001b[0m \u001b[2m|\u001b[0m \u001b[1mPVE:\u001b[0m \u001b[37m9.2.24\u001b[0m \u001b[2m|\u001b[0m \u001b[1mup\u001b[0m \u001b[37m6d 0h 8m\u001b[0m \u001b[94m\u2551\u001b[0m\r\n"]
|
||||
[24.7616, "o", ""]
|
||||
[24.7624, "o", "\u001b[94m\u255a\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255d\u001b[0m\r\n"]
|
||||
[24.7624, "o", "\r\n"]
|
||||
[24.7625, "o", ""]
|
||||
[26.2862, "o", "\u001b[36m\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\u001b[0m\r\n"]
|
||||
[26.2864, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[26.2868, "o", " \u001b[1m\u001b[37mID TYPE STATUS NAME \u001b[0m \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[26.2869, "o", ""]
|
||||
[26.2875, "o", "\u001b[36m\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\u001b[0m\r\n"]
|
||||
[26.2877, "o", ""]
|
||||
[26.2914, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[26.2921, "o", " 100 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m haos-16.3 \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[26.2922, "o", ""]
|
||||
[26.2959, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[26.2966, "o", " 101 \u001b[95mCT \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m termix \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[26.2968, "o", ""]
|
||||
[26.3005, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[26.301, "o", " 102 \u001b[95mCT \u001b[0m \u001b[91mstopped \u001b[0m \u001b[91m\u25cb\u001b[0m GhostTrack \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[26.3011, "o", ""]
|
||||
[26.3051, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[26.3056, "o", " 103 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m openwrt \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[26.3058, "o", ""]
|
||||
[26.3098, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[26.3104, "o", " 104 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m freifunk-test \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[26.3105, "o", ""]
|
||||
[26.3142, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[26.3149, "o", " 106 \u001b[95mCT \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m runtipi \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[26.315, "o", ""]
|
||||
[26.3186, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[26.3193, "o", " 108 \u001b[95mCT \u001b[0m \u001b[91mstopped \u001b[0m \u001b[91m\u25cb\u001b[0m Test2"]
|
||||
[26.3196, "o", " \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[26.3196, "o", ""]
|
||||
[26.3232, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[26.3239, "o", " 9000 \u001b[94mVM \u001b[0m \u001b[92mrunning \u001b[0m \u001b[92m\u25cf\u001b[0m umbrel \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[26.3239, "o", ""]
|
||||
[26.3247, "o", "\u001b[36m\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524\u001b[0m\r\n"]
|
||||
[26.3248, "o", ""]
|
||||
[26.3263, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[26.327, "o", " \u001b[92m\u25cf\u001b[0m running \u001b[91m\u25cb\u001b[0m stopped \u001b[93m\u25d0\u001b[0m paused \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[26.3271, "o", "\u001b[36m\u2502\u001b[0m"]
|
||||
[26.3277, "o", " \u001b[1mCount:\u001b[0m \u001b[92m6 running\u001b[0m \u001b[91m2 stopped\u001b[0m \u001b[36m\u2502\u001b[0m\r\n"]
|
||||
[26.3278, "o", ""]
|
||||
[26.3285, "o", "\u001b[36m\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\u001b[0m\r\n"]
|
||||
[26.3286, "o", "\r\n"]
|
||||
[26.3286, "o", " \u001b[1mKeys:\u001b[0m <VMID> = open action menu \u001b[1mh\u001b[0m = health \u001b[1mm\u001b[0m = host maintenance \u001b[1mr\u001b[0m = refresh \u001b[1mq\u001b[0m = quit\r\n"]
|
||||
[26.3287, "o", " \u001b[96m\u2192\u001b[0m "]
|
||||
[26.9808, "o", ""]
|
||||
[26.9808, "o", ""]
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 869 KiB |
Symlink
+1
@@ -0,0 +1 @@
|
||||
index.html
|
||||
Executable
+242
@@ -0,0 +1,242 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Deterministic PTY session driver with in-stream pseudonymization for Proxmox Manager demo."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import time
|
||||
import pexpect
|
||||
|
||||
|
||||
class StreamAnonymizer:
|
||||
"""Intercepts and pseudonymizes sensitive identifiers in terminal stream."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
target_stream,
|
||||
log_path: str | None = None,
|
||||
cast_path: str | None = None,
|
||||
cols: int = 120,
|
||||
rows: int = 34,
|
||||
):
|
||||
self.target = target_stream
|
||||
self.log_file = open(log_path, "wb") if log_path else None
|
||||
self.cast_path = cast_path
|
||||
self.cast_file = open(cast_path, "w", encoding="utf-8") if cast_path else None
|
||||
self.start_time = time.time()
|
||||
if self.cast_file:
|
||||
header = {
|
||||
"version": 2,
|
||||
"width": cols,
|
||||
"height": rows,
|
||||
"timestamp": int(self.start_time),
|
||||
"title": "Proxmox Manager Demo",
|
||||
"env": {"TERM": "xterm-256color", "SHELL": "/bin/bash"},
|
||||
}
|
||||
self.cast_file.write(json.dumps(header) + "\n")
|
||||
self.cast_file.flush()
|
||||
self.buf = ""
|
||||
|
||||
def write(self, data: bytes | str) -> None:
|
||||
text = data.decode("utf-8", errors="replace") if isinstance(data, bytes) else data
|
||||
self.buf += text
|
||||
self._process(flush_all=False)
|
||||
|
||||
def flush(self) -> None:
|
||||
self._process(flush_all=True)
|
||||
self.target.flush()
|
||||
if self.log_file:
|
||||
self.log_file.flush()
|
||||
if self.cast_file:
|
||||
self.cast_file.flush()
|
||||
|
||||
def close(self) -> None:
|
||||
self.flush()
|
||||
if self.log_file:
|
||||
self.log_file.close()
|
||||
if self.cast_file:
|
||||
self.cast_file.close()
|
||||
|
||||
def _process(self, flush_all: bool = False) -> None:
|
||||
lines = self.buf.split("\n")
|
||||
if not flush_all:
|
||||
self.buf = lines[-1]
|
||||
lines = lines[:-1]
|
||||
else:
|
||||
self.buf = ""
|
||||
|
||||
for line in lines:
|
||||
anon_line = self._anonymize_line(line)
|
||||
out_str = anon_line + "\n" if not flush_all or line != lines[-1] or self.buf else anon_line
|
||||
out_bytes = out_str.encode("utf-8")
|
||||
self.target.write(out_bytes)
|
||||
self.target.flush()
|
||||
if self.log_file:
|
||||
self.log_file.write(out_bytes)
|
||||
if self.cast_file:
|
||||
rel_time = round(time.time() - self.start_time, 4)
|
||||
self.cast_file.write(json.dumps([rel_time, "o", out_str]) + "\n")
|
||||
self.cast_file.flush()
|
||||
|
||||
def _anonymize_line(self, line: str) -> str:
|
||||
# 1. Title replacement: Replace 'Proxmox VM/CT Manager' (22 chars)
|
||||
# with 'PROXMOX MANAGER ' (22 chars), exactly length-preserving.
|
||||
line = line.replace("Proxmox VM/CT Manager", "PROXMOX MANAGER ")
|
||||
|
||||
# 2. Header Node line: replace 'pve' with 'pve-node-01' and reduce padding spaces
|
||||
if "Node:" in line and "PVE:" in line:
|
||||
def repl_node(m):
|
||||
prefix = m.group(1)
|
||||
middle = m.group(2)
|
||||
spaces = m.group(3)
|
||||
border = m.group(4)
|
||||
diff = len("pve-node-01") - len("pve")
|
||||
trimmed_spaces = spaces[diff:] if len(spaces) >= diff else spaces
|
||||
return f"{prefix}pve-node-01{middle}{trimmed_spaces}{border}"
|
||||
|
||||
line = re.sub(
|
||||
r"(\x1b\[1mNode:\x1b\[0m\s*\x1b\[37m)pve(\x1b\[0m.*?)(\s{10,})(\x1b\[94m║)",
|
||||
repl_node,
|
||||
line,
|
||||
)
|
||||
if "pve-node-01" not in line:
|
||||
line = re.sub(
|
||||
r"(\bNode:\s*)pve(\s*\|\s*PVE:.*?)( {10,})(║)",
|
||||
lambda m: f"{m.group(1)}pve-node-01{m.group(2)}{m.group(3)[8:]}{m.group(4)}",
|
||||
line,
|
||||
)
|
||||
|
||||
# 3. IP addresses: replace 192.168.178.xxx or any 192.168.x.x with 192.0.2.xxx (RFC 5737 TEST-NET-1)
|
||||
line = re.sub(
|
||||
r"\b192\.168\.178\.(\d{1,3})\b",
|
||||
lambda m: f"192.0.2.{m.group(1)}".ljust(len(m.group(0))),
|
||||
line,
|
||||
)
|
||||
line = re.sub(
|
||||
r"\b192\.168\.(\d{1,3})\.(\d{1,3})\b",
|
||||
lambda m: f"192.0.2.{m.group(2)}".ljust(len(m.group(0))),
|
||||
line,
|
||||
)
|
||||
|
||||
# 4. Hostnames
|
||||
line = re.sub(r"\bpve\.fritz\.box\b", "pve-node-01.lan ", line)
|
||||
line = re.sub(r"\bfritz\.box\b", "localdomain", line)
|
||||
|
||||
# 5. SSH disconnect banner
|
||||
line = re.sub(r"Connection to .* closed\.", "", line)
|
||||
|
||||
return line
|
||||
|
||||
|
||||
def drive_session(log_path: str | None = None, cast_path: str | None = None) -> None:
|
||||
ready_marker = "/tmp/pman_demo_ready"
|
||||
if os.path.exists(ready_marker):
|
||||
os.remove(ready_marker)
|
||||
|
||||
try:
|
||||
cols, rows = os.get_terminal_size()
|
||||
except Exception:
|
||||
cols, rows = 120, 34
|
||||
|
||||
anonymizer = StreamAnonymizer(
|
||||
sys.stdout.buffer,
|
||||
log_path=log_path,
|
||||
cast_path=cast_path,
|
||||
cols=cols,
|
||||
rows=rows,
|
||||
)
|
||||
|
||||
# Notify orchestrator that terminal is open and ready
|
||||
with open(ready_marker, "w") as f:
|
||||
f.write("ready\n")
|
||||
|
||||
# Spawn remote pman interactive session over SSH
|
||||
child = pexpect.spawn(
|
||||
"ssh",
|
||||
[
|
||||
"-tt",
|
||||
"-q",
|
||||
"-o", "LogLevel=ERROR",
|
||||
"-o", "BatchMode=yes",
|
||||
"-o", "ConnectTimeout=8",
|
||||
"pve",
|
||||
"TERM=xterm-256color",
|
||||
"pman",
|
||||
],
|
||||
encoding=None,
|
||||
echo=False,
|
||||
dimensions=(rows, cols),
|
||||
)
|
||||
child.logfile_read = anonymizer
|
||||
|
||||
try:
|
||||
# Phase 1: Wait for Startansicht (main menu table and prompt)
|
||||
child.expect(b"\xe2\x86\x92", timeout=12) # '→'
|
||||
# Hold start view for ~2.5s (t=2.0s OCR will capture 'PROXMOX MANAGER')
|
||||
time.sleep(2.5)
|
||||
|
||||
# Phase 2: Open Health overview
|
||||
child.send(b"h\n")
|
||||
child.expect(b"Press Enter to continue...", timeout=10)
|
||||
# Hold health view for ~5.0s (t=8.0s OCR will capture 'Health')
|
||||
time.sleep(5.0)
|
||||
|
||||
# Phase 3: Return to Main Menu
|
||||
child.send(b"\n")
|
||||
child.expect(b"\xe2\x86\x92", timeout=10)
|
||||
time.sleep(1.5)
|
||||
|
||||
# Phase 4: Open Maintenance Menu
|
||||
child.send(b"m\n")
|
||||
child.expect(b"Storage, Dateisysteme", timeout=10)
|
||||
time.sleep(0.8)
|
||||
|
||||
# Navigate down 3 times to 'Community PVE-Werkzeuge'
|
||||
child.send(b"\x1bOB\x1bOB\x1bOB")
|
||||
child.expect(b"Community PVE-Werkzeuge", timeout=5)
|
||||
time.sleep(0.8)
|
||||
|
||||
# Enter Community PVE tools list
|
||||
child.send(b"\n")
|
||||
child.expect(b"COMMUNITY PVE-WERKZEUGE", timeout=5)
|
||||
# Hold community tools view for ~4.8s (t=18.0s OCR will capture 'Community PVE')
|
||||
time.sleep(4.8)
|
||||
|
||||
# Phase 5: Exit Community view back to Maintenance menu
|
||||
child.send(b"\x1b") # ESC
|
||||
child.expect(b"Community-Werkzeug", timeout=5)
|
||||
time.sleep(0.6)
|
||||
|
||||
# Phase 6: Exit Maintenance back to Main Menu
|
||||
child.send(b"q")
|
||||
child.expect(b"\xe2\x86\x92", timeout=5)
|
||||
time.sleep(0.6)
|
||||
|
||||
# Phase 7: Exit pman cleanly
|
||||
child.send(b"q\n")
|
||||
child.expect(pexpect.EOF, timeout=5)
|
||||
finally:
|
||||
anonymizer.flush()
|
||||
anonymizer.close()
|
||||
child.close(force=True)
|
||||
|
||||
|
||||
def main() -> int:
|
||||
log_dir = os.path.join(os.path.dirname(__file__), "out")
|
||||
os.makedirs(log_dir, exist_ok=True)
|
||||
log_path = os.path.join(log_dir, "pty_stream.log")
|
||||
cast_path = os.path.join(log_dir, "proxmox-manager-demo.cast")
|
||||
|
||||
# Empty existing log and cast
|
||||
open(log_path, "wb").close()
|
||||
open(cast_path, "w", encoding="utf-8").close()
|
||||
|
||||
drive_session(log_path=log_path, cast_path=cast_path)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
+2353
File diff suppressed because it is too large.
Load diff
+1
@@ -0,0 +1 @@
|
||||
var AsciinemaPlayer=function(A){"use strict";const g={};const I=Symbol("solid-proxy"),B=Symbol("solid-track"),Q={equals:(A,g)=>A===g};let C=u;const E=1,V=2,i={owned:null,cleanups:null,context:null,owner:null};var e=null;let t=null,o=null,s=null,n=null,r=0;function a(A,g){const I=o,B=e,Q=0===A.length,C=Q?i:{owned:null,cleanups:null,context:null,owner:void 0===g?B:g},E=Q?A:()=>A((()=>y((()=>U(C)))));e=C,o=null;try{return J(E,!0)}finally{o=I,e=B}}function D(A,g){const I={value:A,observers:null,observerSlots:null,comparator:(g=g?Object.assign({},Q,g):Q).equals||void 0};return[q.bind(I),A=>("function"==typeof A&&(A=A(I.value)),N(I,A))]}function w(A,g,I){M(d(A,g,!1,E))}function c(A,g,I){I=I?Object.assign({},Q,I):Q;const B=d(A,g,!0,0);return B.observers=null,B.observerSlots=null,B.comparator=I.equals||void 0,M(B),q.bind(B)}function h(A){return J(A,!1)}function y(A){if(null===o)return A();const g=o;o=null;try{return A()}finally{o=g}}function l(A){!function(A,g,I){C=f;const B=d(A,g,!1,E);B.user=!0,n?n.push(B):M(B)}((()=>y(A)))}function k(A){return null===e||(null===e.cleanups?e.cleanups=[A]:e.cleanups.push(A)),A}function G(){return o}function F(A){const g=c(A),I=c((()=>L(g())));return I.toArray=()=>{const A=I();return Array.isArray(A)?A:null!=A?[A]:[]},I}function q(){const A=t;if(this.sources&&(this.state||A))if(this.state===E||A)M(this);else{const A=s;s=null,J((()=>S(this)),!1),s=A}if(o){const A=this.observers?this.observers.length:0;o.sources?(o.sources.push(this),o.sourceSlots.push(A)):(o.sources=[this],o.sourceSlots=[A]),this.observers?(this.observers.push(o),this.observerSlots.push(o.sources.length-1)):(this.observers=[o],this.observerSlots=[o.sources.length-1])}return this.value}function N(A,g,I){let B=A.value;return A.comparator&&A.comparator(B,g)||(A.value=g,A.observers&&A.observers.length&&J((()=>{for(let g=0;g<A.observers.length;g+=1){const I=A.observers[g],B=t&&t.running;B&&t.disposed.has(I),(B&&!I.tState||!B&&!I.state)&&(I.pure?s.push(I):n.push(I),I.observers&&Y(I)),B||(I.state=E)}if(s.length>1e6)throw s=[],new Error}),!1)),g}function M(A){if(!A.fn)return;U(A);const g=e,I=o,B=r;o=e=A,function(A,g,I){let B;try{B=A.fn(g)}catch(g){A.pure&&(A.state=E,A.owned&&A.owned.forEach(U),A.owned=null),p(g)}(!A.updatedAt||A.updatedAt<=I)&&(null!=A.updatedAt&&"observers"in A?N(A,B):A.value=B,A.updatedAt=I)}(A,A.value,B),o=I,e=g}function d(A,g,I,B=E,Q){const C={fn:A,state:B,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:g,owner:e,context:null,pure:I};return null===e||e!==i&&(e.owned?e.owned.push(C):e.owned=[C]),C}function R(A){const g=t;if(0===A.state||g)return;if(A.state===V||g)return S(A);if(A.suspense&&y(A.suspense.inFallback))return A.suspense.effects.push(A);const I=[A];for(;(A=A.owner)&&(!A.updatedAt||A.updatedAt<r);)(A.state||g)&&I.push(A);for(let B=I.length-1;B>=0;B--)if((A=I[B]).state===E||g)M(A);else if(A.state===V||g){const g=s;s=null,J((()=>S(A,I[0])),!1),s=g}}function J(A,g){if(s)return A();let I=!1;g||(s=[]),n?I=!0:n=[],r++;try{const g=A();return function(A){s&&(u(s),s=null);if(A)return;const g=n;n=null,g.length&&J((()=>C(g)),!1)}(I),g}catch(A){I||(n=null),s=null,p(A)}}function u(A){for(let g=0;g<A.length;g++)R(A[g])}function f(A){let I,B=0;for(I=0;I<A.length;I++){const g=A[I];g.user?A[B++]=g:R(g)}var Q;for(g.context&&(g.context=Q),I=0;I<B;I++)R(A[I])}function S(A,g){const I=t;A.state=0;for(let B=0;B<A.sources.length;B+=1){const Q=A.sources[B];Q.sources&&(Q.state===E||I?Q!==g&&R(Q):(Q.state===V||I)&&S(Q,g))}}function Y(A){const g=t;for(let I=0;I<A.observers.length;I+=1){const B=A.observers[I];B.state&&!g||(B.state=V,B.pure?s.push(B):n.push(B),B.observers&&Y(B))}}function U(A){let g;if(A.sources)for(;A.sources.length;){const g=A.sources.pop(),I=A.sourceSlots.pop(),B=g.observers;if(B&&B.length){const A=B.pop(),Q=g.observerSlots.pop();I<B.length&&(A.sourceSlots[Q]=I,B[I]=A,g.observerSlots[I]=Q)}}if(A.owned){for(g=0;g<A.owned.length;g++)U(A.owned[g]);A.owned=null}if(A.cleanups){for(g=0;g<A.cleanups.length;g++)A.cleanups[g]();A.cleanups=null}A.state=0,A.context=null}function p(A){throw A=function(A){return A instanceof Error||"string"==typeof A?A:new Error("Unknown error")}(A)}function L(A){if("function"==typeof A&&!A.length)return L(A());if(Array.isArray(A)){const g=[];for(let I=0;I<A.length;I++){const B=L(A[I]);Array.isArray(B)?g.push.apply(g,B):g.push(B)}return g}return A}const m=Symbol("fallback");function K(A){for(let g=0;g<A.length;g++)A[g]()}function b(A,g){return y((()=>A(g||{})))}function H(){return!0}const v={get:(A,g,B)=>g===I?B:A.get(g),has:(A,g)=>g===I||A.has(g),set:H,deleteProperty:H,getOwnPropertyDescriptor:(A,g)=>({configurable:!0,enumerable:!0,get:()=>A.get(g),set:H,deleteProperty:H}),ownKeys:A=>A.keys()};function O(A){return(A="function"==typeof A?A():A)?A:{}}function T(A){const g="fallback"in A&&{fallback:()=>A.fallback};return c(function(A,g,I={}){let Q=[],C=[],E=[],V=0,i=g.length>1?[]:null;return k((()=>K(E))),()=>{let e,t,o=A()||[];return o[B],y((()=>{let A,g,BLine truncated
|
||||
Executable
+231
@@ -0,0 +1,231 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Automated verification script for Proxmox Manager demo pipeline.
|
||||
|
||||
Validates:
|
||||
1. Stream geometry, duration, framerate, and size via ffprobe.
|
||||
2. OCR keyword extraction at seconds 2, 8, and 18 via tesseract.
|
||||
3. Privacy validation (zero real IPs, zero real node names) across OCR & PTY stream.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
def run_cmd(cmd: list[str]) -> str:
|
||||
res = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
||||
if res.returncode != 0:
|
||||
raise RuntimeError(f"Command failed ({res.returncode}): {' '.join(cmd)}\n{res.stderr}")
|
||||
return res.stdout.strip()
|
||||
|
||||
|
||||
def probe_file(path: str) -> dict:
|
||||
cmd = [
|
||||
"ffprobe",
|
||||
"-v", "error",
|
||||
"-show_format",
|
||||
"-show_streams",
|
||||
"-print_format", "json",
|
||||
path,
|
||||
]
|
||||
raw = run_cmd(cmd)
|
||||
return json.loads(raw)
|
||||
|
||||
|
||||
def extract_frame(video_path: str, timestamp_s: float, out_path: str) -> None:
|
||||
cmd = [
|
||||
"ffmpeg",
|
||||
"-y",
|
||||
"-ss", str(timestamp_s),
|
||||
"-i", video_path,
|
||||
"-vframes", "1",
|
||||
out_path,
|
||||
]
|
||||
run_cmd(cmd)
|
||||
|
||||
|
||||
def ocr_image(img_path: str) -> str:
|
||||
cmd = ["tesseract", img_path, "stdout", "-l", "eng+deu", "--psm", "6"]
|
||||
return run_cmd(cmd)
|
||||
|
||||
|
||||
def main() -> int:
|
||||
base_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
out_dir = os.path.join(base_dir, "out")
|
||||
raw_video = os.path.join(out_dir, "proxmox-manager-demo-raw.mp4")
|
||||
gif_file = os.path.join(out_dir, "proxmox-manager-demo.gif")
|
||||
pty_log = os.path.join(out_dir, "pty_stream.log")
|
||||
|
||||
print("=================================================================")
|
||||
print("PROXMOX MANAGER DEMO — AUTOMATED EVIDENCE VERIFICATION")
|
||||
print("=================================================================\n")
|
||||
|
||||
errors: list[str] = []
|
||||
checks: list[tuple[str, str, bool]] = []
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# 1. STREAM VALIDATION (ffprobe)
|
||||
# -------------------------------------------------------------------------
|
||||
if not os.path.isfile(raw_video):
|
||||
print(f"[FAIL] Raw video missing: {raw_video}")
|
||||
return 1
|
||||
if not os.path.isfile(gif_file):
|
||||
print(f"[FAIL] GIF file missing: {gif_file}")
|
||||
return 1
|
||||
|
||||
# Probe Raw Video
|
||||
raw_meta = probe_file(raw_video)
|
||||
v_stream = next(s for s in raw_meta["streams"] if s["codec_type"] == "video")
|
||||
v_width = int(v_stream["width"])
|
||||
v_height = int(v_stream["height"])
|
||||
v_duration = float(raw_meta["format"]["duration"])
|
||||
v_fps_parts = [int(p) for p in v_stream["r_frame_rate"].split("/")]
|
||||
v_fps = v_fps_parts[0] / v_fps_parts[1] if len(v_fps_parts) == 2 else float(v_fps_parts[0])
|
||||
|
||||
# Check Raw constraints: 1280x720, 30fps, 20-28s duration
|
||||
ok_res = (v_width == 1280 and v_height == 720)
|
||||
checks.append(("Raw Video Resolution", f"{v_width}x{v_height} (expected 1280x720)", ok_res))
|
||||
if not ok_res:
|
||||
errors.append(f"Raw resolution mismatch: {v_width}x{v_height}")
|
||||
|
||||
ok_fps = (29.0 <= v_fps <= 31.0)
|
||||
checks.append(("Raw Video Framerate", f"{v_fps:.1f} fps (expected 30 fps)", ok_fps))
|
||||
if not ok_fps:
|
||||
errors.append(f"Raw framerate mismatch: {v_fps}")
|
||||
|
||||
ok_dur = (20.0 <= v_duration <= 28.0)
|
||||
checks.append(("Raw Video Duration", f"{v_duration:.2f}s (expected 20.0s - 28.0s)", ok_dur))
|
||||
if not ok_dur:
|
||||
errors.append(f"Raw duration out of bounds: {v_duration:.2f}s")
|
||||
|
||||
# Probe GIF
|
||||
gif_meta = probe_file(gif_file)
|
||||
g_stream = next(s for s in gif_meta["streams"] if s["codec_type"] == "video")
|
||||
g_width = int(g_stream["width"])
|
||||
g_height = int(g_stream["height"])
|
||||
g_size_mb = os.path.getsize(gif_file) / (1024 * 1024)
|
||||
g_fps_parts = [int(p) for p in g_stream["r_frame_rate"].split("/")]
|
||||
g_fps = g_fps_parts[0] / g_fps_parts[1] if len(g_fps_parts) == 2 else float(g_fps_parts[0])
|
||||
|
||||
ok_g_w = (1100 <= g_width <= 1280)
|
||||
checks.append(("GIF Width", f"{g_width} px (expected 1100 - 1280 px)", ok_g_w))
|
||||
if not ok_g_w:
|
||||
errors.append(f"GIF width out of bounds: {g_width}")
|
||||
|
||||
ok_g_fps = (10.0 <= g_fps <= 12.5)
|
||||
checks.append(("GIF Framerate", f"{g_fps:.1f} fps (expected 10 - 12 fps)", ok_g_fps))
|
||||
if not ok_g_fps:
|
||||
errors.append(f"GIF framerate out of bounds: {g_fps}")
|
||||
|
||||
ok_g_size = (g_size_mb < 10.0)
|
||||
checks.append(("GIF File Size", f"{g_size_mb:.2f} MB (target < 10 MB)", ok_g_size))
|
||||
if not ok_g_size:
|
||||
errors.append(f"GIF size exceeds limit: {g_size_mb:.2f} MB")
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# 2. FRAME EXTRACTION & OCR (tesseract)
|
||||
# -------------------------------------------------------------------------
|
||||
import tempfile
|
||||
with tempfile.TemporaryDirectory() as tmp_dir:
|
||||
f2_path = os.path.join(tmp_dir, "frame_sec02.png")
|
||||
f8_path = os.path.join(tmp_dir, "frame_sec08.png")
|
||||
f18_path = os.path.join(tmp_dir, "frame_sec18.png")
|
||||
|
||||
extract_frame(raw_video, 2.0, f2_path)
|
||||
extract_frame(raw_video, 8.0, f8_path)
|
||||
extract_frame(raw_video, 18.0, f18_path)
|
||||
|
||||
ocr_2 = ocr_image(f2_path)
|
||||
ocr_8 = ocr_image(f8_path)
|
||||
ocr_18 = ocr_image(f18_path)
|
||||
|
||||
# Check keyword 1: "PROXMOX MANAGER" at second 2
|
||||
ok_ocr2 = bool(re.search(r"PROXMOX\s+MANAGER", ocr_2, re.IGNORECASE))
|
||||
checks.append(("OCR @ 2.0s: 'PROXMOX MANAGER'", "Found in frame" if ok_ocr2 else "MISSING", ok_ocr2))
|
||||
if not ok_ocr2:
|
||||
errors.append("Keyword 'PROXMOX MANAGER' missing in frame at 2.0s")
|
||||
|
||||
# Check keyword 2: "Health" at second 8
|
||||
ok_ocr8 = bool(re.search(r"\bHEALTH\b", ocr_8, re.IGNORECASE))
|
||||
checks.append(("OCR @ 8.0s: 'Health'", "Found in frame" if ok_ocr8 else "MISSING", ok_ocr8))
|
||||
if not ok_ocr8:
|
||||
errors.append("Keyword 'Health' missing in frame at 8.0s")
|
||||
|
||||
# Check keyword 3: "Community PVE" at second 18
|
||||
ok_ocr18 = bool(re.search(r"Community\s+PVE", ocr_18, re.IGNORECASE))
|
||||
checks.append(("OCR @ 18.0s: 'Community PVE'", "Found in frame" if ok_ocr18 else "MISSING", ok_ocr18))
|
||||
if not ok_ocr18:
|
||||
errors.append("Keyword 'Community PVE' missing in frame at 18.0s")
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# 3. PRIVACY CHECK (Regex Scan across OCR, PTY Stream, and Cast)
|
||||
# -------------------------------------------------------------------------
|
||||
ocr_combined = f"{ocr_2}\n{ocr_8}\n{ocr_18}"
|
||||
pty_text = ""
|
||||
if os.path.isfile(pty_log):
|
||||
with open(pty_log, "rb") as f:
|
||||
pty_text = f.read().decode("utf-8", errors="replace")
|
||||
|
||||
cast_file = os.path.join(out_dir, "proxmox-manager-demo.cast")
|
||||
cast_text = ""
|
||||
if os.path.isfile(cast_file):
|
||||
with open(cast_file, "r", encoding="utf-8", errors="replace") as f:
|
||||
cast_text = f.read()
|
||||
|
||||
sensitive_patterns = [
|
||||
(r"\b192\.168\.\d{1,3}\.\d{1,3}\b", "RFC1918 Private IP (192.168.*)"),
|
||||
(r"\b10\.\d{1,3}\.\d{1,3}\.\d{1,3}\b", "RFC1918 Private IP (10.*)"),
|
||||
(r"\b172\.(1[6-9]|2\d|3[01])\.\d{1,3}\.\d{1,3}\b", "RFC1918 Private IP (172.16-31.*)"),
|
||||
(r"\bNode:\s*pve(?!\w|-)", "Real node identifier ('Node: pve')"),
|
||||
(r"\bpve\.fritz\.box\b", "Real FQDN ('pve.fritz.box')"),
|
||||
(r"\bfritz\.box\b", "Local FritzBox domain"),
|
||||
]
|
||||
|
||||
privacy_violations: list[str] = []
|
||||
for pattern, label in sensitive_patterns:
|
||||
m_ocr = re.findall(pattern, ocr_combined, re.IGNORECASE)
|
||||
m_pty = re.findall(pattern, pty_text, re.IGNORECASE)
|
||||
m_cast = re.findall(pattern, cast_text, re.IGNORECASE)
|
||||
if m_ocr:
|
||||
privacy_violations.append(f"OCR leak: {label} -> {m_ocr}")
|
||||
if m_pty:
|
||||
privacy_violations.append(f"PTY leak: {label} -> {m_pty}")
|
||||
if m_cast:
|
||||
privacy_violations.append(f"Cast leak: {label} -> {m_cast}")
|
||||
|
||||
ok_priv = (len(privacy_violations) == 0)
|
||||
checks.append((
|
||||
"Privacy Scan (OCR + PTY stream)",
|
||||
"0 sensitive patterns detected" if ok_priv else f"{len(privacy_violations)} violations",
|
||||
ok_priv,
|
||||
))
|
||||
if not ok_priv:
|
||||
for v in privacy_violations:
|
||||
errors.append(f"Privacy violation: {v}")
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# REPORT
|
||||
# -------------------------------------------------------------------------
|
||||
print(f"{'CHECK':<36} | {'MEASURED VALUE':<35} | {'STATUS'}")
|
||||
print("-" * 82)
|
||||
for name, val, passed in checks:
|
||||
status_str = "\033[92m[PASS]\033[0m" if passed else "\033[91m[FAIL]\033[0m"
|
||||
print(f"{name:<36} | {val:<35} | {status_str}")
|
||||
print("-" * 82)
|
||||
|
||||
if errors:
|
||||
print("\n\033[91mVALIDATION FAILED WITH ERRORS:\033[0m")
|
||||
for err in errors:
|
||||
print(f" - {err}")
|
||||
return 1
|
||||
|
||||
print("\n\033[92mALL CRITERIA OBJECTIVELY VALIDATED AND VERIFIED (0 FAILURES).\033[0m\n")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
Reference in new issue
Block a user