📜 System Automation & Scripts Manual
This guide details the custom scripts and services implemented to manage the Arrow Lake + SRIOV workstation.
🖥️ RDP & VM Management
launch_rdp.sh
Purpose: Advanced RDP launcher with performance profiles and safety checks.
Usage: \`./launch_rdp.sh [mode]\`
Modes:
\`performance\`: AVC444 + Progressive (Highest quality, may be unstable).
\`high-perf\`: AVC420 + Thin-Client (Stable, near-native performance).
\`compat\`: RFX mode (Maximum stability).
Features: Auto-IP resolution, 24h Auto-Snapshot, Lock-on-Disconnect.
rdp_watchdog.sh
Purpose: Background service that keeps your RDP session alive.
Usage: \`./rdp_watchdog.sh &\`
Logic: Automatically restarts RDP on crash. If 3 crashes occur within 5 mins, it stops and pings your phone via KDE Connect.
rdp_reset.sh
Purpose: “Panic Button” for frozen sessions.
Usage: \`./rdp_reset.sh\`
Actions: Kills all RDP processes, triggers a hardware Function Level Reset (FLR) on the iGPU VF, and restarts in Compatibility Mode.
rdp_run.sh
Purpose: Linux-to-Windows command orchestration.
Usage: \`./rdp_run.sh “app.exe”\` (e.g., \`./rdp_run.sh “Raid.exe”\`).
Requirement: QEMU Guest Agent must be running in the VM.
usb_swap.sh
Purpose: Hot-swap USB devices into the running VM.
📊 Monitoring & HUD
Purpose: Unified Host/Guest health logger.
Run Frequency: Every 10 mins (Cron).
Data: CPU/GPU Wattage, Temps, Windows CPU/RAM usage, IO Wait.
-
security_audit.sh
Purpose: “Fail-Closed” security monitor.
Run Frequency: Every 10 mins (Cron).
Data: Open ports, Sudoers integrity, Shared folder perms, Failed login attempts.
-
core_watch.sh
Purpose: Thermal and Affinity watcher.
hud_toggle.sh
Purpose: Desktop HUD (Conky) controller.
🛡️ System Integrity
fast_snap.sh
Purpose: Manual/Automated Btrfs snapshots.
Purpose: Compatibility tracking.
fukubaloo.sh
Purpose: Performance purge.