#!/bin/bash echo "========================================" echo " AITBC GPU Miner Dashboard Setup" echo " Running on HOST (at1/localhost)" echo "========================================" echo "" # Check if we have GPU access if ! command -v nvidia-smi &> /dev/null; then echo "❌ ERROR: nvidia-smi not found!" echo "Please ensure NVIDIA drivers are installed on the host." exit 1 fi echo "✅ GPU detected: $(nvidia-smi --query-gpu=name --format=csv,noheader)" echo "" # Create dashboard directory mkdir -p ~/miner-dashboard cd ~/miner-dashboard echo "Creating dashboard files..." # Create the main dashboard HTML cat > index.html << 'HTML' AITBC GPU Miner Dashboard - Host

AITBC GPU Miner Dashboard

✓ Running on HOST with direct GPU access

GPU Online

NVIDIA GeForce RTX 4060 Ti

Real-time GPU Performance Monitor

0%
GPU Utilization

Temperature

--°C

Power Usage

--W

Memory Used

--GB

Performance

P8

Mining Operations 0 active jobs

Miner Idle

Ready to accept mining jobs

GPU Services Status

CUDA Computing

4352 CUDA cores available

Active

Parallel Processing

Multi-threaded operations

Active

Hash Generation

Proof-of-work computation

Standby

AI Model Training

Machine learning operations

Available

GPU Utilization (Last Hour)

Hash Rate Performance

System Information

Host System

Loading...

GPU Access

Direct

Container

Not Used

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