#!/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' AITBC GPU Miner Dashboard - HOST

AITBC GPU Miner Dashboard

Running on HOST with direct GPU access

GPU Connected

GPU Status Monitor

Utilization

0%

Temperature

--°C

Power

--W

Memory

--GB

Mining Operations

Status Idle

Miner is ready to accept jobs

Hash Rate 0 MH/s

GPU Services

CUDA Computing Active
Parallel Processing Active
Hash Generation Standby
AI Model Training Available

System Information

Location

HOST System

GPU Access

Direct

Container

Not Used

HTML # Create simple server cat > serve.sh << 'EOF' #!/bin/bash cd ~/miner-dashboard echo "Starting GPU Miner Dashboard on HOST..." echo "Access at: http://localhost:8080" echo "Press Ctrl+C to stop" python3 -m http.server 8080 --bind 0.0.0.0 EOF chmod +x serve.sh echo "" echo "✅ Dashboard created on HOST!" echo "" echo "To run the dashboard:" echo " ~/miner-dashboard/serve.sh" echo "" echo "Dashboard will be available at:" echo " - Local: http://localhost:8080" echo " - Network: http://$(hostname -I | awk '{print $1}'):8080"