#!/bin/bash echo "=== AITBC Miner Dashboard - Host Setup ===" echo "" echo "This script sets up the dashboard on the HOST machine (at1)" echo "NOT in the container (aitbc)" echo "" # Check if we have GPU access if ! command -v nvidia-smi &> /dev/null; then echo "❌ ERROR: nvidia-smi not found!" echo "This script must be run on the HOST with GPU access" exit 1 fi echo "✅ GPU detected: $(nvidia-smi --query-gpu=name --format=csv,noheader)" # Create dashboard directory mkdir -p ~/miner-dashboard cd ~/miner-dashboard # Create HTML dashboard cat > index.html << 'HTML'
Running on HOST with direct GPU access
Utilization
0%
Temperature
--°C
Power
--W
Memory
--GB
Miner is ready to accept jobs
Location
HOST System
GPU Access
Direct
Container
Not Used