How the-codepunker/ubuntu-nvidia-mining works
This repository automates an Ubuntu/Nvidia Ethereum mining rig: an operator configures the GPU environment, applies overclock settings, and starts the miner. A separate cron-driven monitor checks GPU utilization and, on low utilization, captures the miner session output, sends a Mailgun notification, and reboots the host. The README documents setup and scheduling; the monitor source shows its runtime actions. The miner launcher and overclock script were not excerpted, so their internal behavior and calls are represented only where the README documents them.
Main entry points: ethdaemon.php Miner monitor · execute.sh Miner launcher · occ.sh GPU overclock · ethminer Ethereum miner
Components 11
Mining runtime
- Miner launcher
execute.sh - Ethereum miner
ethminer
Monitoring and recovery
- Miner monitor
ethdaemon.php - Monitor settings
daemon.ini.template
GPU setup
- GPU configuration
dfp0.edid - GPU overclock
occ.sh
Other components
- Rig operator
- Nvidia GPU tools
- Screen session
- Mailgun API
- Ubuntu host
Connections 10
- Rig operator → GPU configuration: configures display
README.md - Rig operator → GPU overclock: runs
README.md - Rig operator → Miner launcher: starts miner
README.md - GPU overclock → Nvidia GPU tools: sets GPU clocks
- Miner launcher → Ethereum miner: launches
README.md - Miner monitor → Monitor settings: reads settings
README.md - Miner monitor → Nvidia GPU tools: queries utilization
ethdaemon.php - Miner monitor → Screen session: captures session output
ethdaemon.php - Miner monitor → Mailgun API: sends alert
ethdaemon.php - Miner monitor → Ubuntu host: reboots host
ethdaemon.php