Your rigs are bleeding money right now
Three out of four mining farms fold within twelve months. Not because Bitcoin crashes. Not because power is too expensive. They quit because their Linux box can’t stay online, can’t stay secure, and can’t squeeze the last drop of performance out of the chips.
Five percent downtime sounds tiny. On a twenty-rig setup pulling 500 MH/s, that little five percent is **$20,000 gone in a year**. That’s a new truck, a down-payment on a house, or the difference between “I mine for fun” and “I mine for a living.”
The 2 a.m. panic is optional
I still remember the night my phone chirped at 2:17 a.m. Three rigs down, temperatures climbing, and I had no idea why. I was in my kitchen wearing mismatched socks and cursing at Putty. One missing cron job cost me six hours of hashing. Six hours of sleep. Six hours of sanity.
Since then I’ve rebuilt the stack. I sleep straight through the night. My rigs reboot themselves, patch themselves, and text me only when something actually matters. The method is simple: treat the farm like a tiny data center, not a science project.
Step-by-step: turn your farm into a pit crew
Pick the right distro
- Ubuntu Server LTS – boring, stable, and that’s the point.
- HiveOS – plug-and-play dashboards if you hate the terminal.
- Plain Debian – the bare-metal option for control freaks.
I run Ubuntu 22.04 LTS on everything. No surprises for two years, then a smooth upgrade path. LTS means “Long Term Support,” not “Latest Trendy Stuff.”
Make the hardware sing
One-liner to watch every GPU in real time:
watch -n1 nvidia-smi
Add these tools next:
lm-sensors– temps in one place.nvtop– GPU usage as top for graphics cards.rocm-smi– same trick for AMD cards.
Pull 150 W instead of 200 W per card and you just trimmed $40 a month off the power bill. That’s $480 a year. Per card.
Lock the doors
- SSH keys only. Disable passwords.
- Move SSH off port 22. Obscurity isn’t security, but it kills the bot noise.
fail2ban– auto-ban idiots who still try.
In 2024 some kid in Russia hopped a rig in Poland and mined for a week before the owner noticed. One open port. One reused password. Don’t be that story.
Let the robots work
Sample cron job that restarts the miner if it dies:
*/5 * * * * pgrep -f t-rex || /opt/miners/t-rex/start.sh
Add log rotation and weekly reboots the same way. Ten lines of cron beat ten cups of midnight coffee.
See everything at a glance
Spin up Prometheus + Grafana on an old NUC. Ten minutes of clicking, and you get:
- Hash-rate graphs for every worker.
- Power draw per rig.
- Alerts straight to Telegram when a GPU hits 85 °C.
I glued an old 7-inch Raspberry Pi screen to the office wall. The farm’s heartbeat is right there while I sip espresso.
Wire the network like your life depends on it
- Headless management over
Cockpit– point, click, done. - WireGuard VPN back to home base – coffee-shop Wi-Fi feels safe again.
- Bond two NICs – if one switch dies, the other carries the load.
Redundancy isn’t paranoia when downtime costs $30 an hour.
Green is the new black
I slapped 6 kW of solar on the roof. The rigs run on sunshine from 10 a.m. to 4 p.m. Power bill dropped 40 %. Tax credits paid for half the panels. My break-even date moved up by eight months.
Even if solar is a stretch, grab a few smart plugs. Track kilowatt-hours. Kill the rigs when the price per kWh spikes. Data beats guessing.
Crash recovery in three clicks
BorgBackup to an old NAS every night at 3 a.m. One command to bring back the exact config:
borg extract /backup/farm::2025-08-16
Last time a kernel update hosed the PCIe drivers, I was back online in six minutes. Six minutes. Not six hours.
Stay sharp without drowning
- Join the LinuxCryptoMiners Discord – real humans, no moon-boy hype.
- Star the linux-crypto-mining repo – scripts land faster than blog posts.
- Skim the mining subreddit once a day – five minutes filters the noise.
Peek at the future
Stratum V2 is out of beta. It cuts pool fees, hides your IP, and helps decentralize the network. I pointed three rigs at a V2 pool last month. Same hash rate, 2 % higher payouts. Tiny edge, but edges add up.
Next move is yours
You can keep duct-taping the farm together. Or you can spend one weekend building the stack that runs itself and prints satoshis while you sleep.
Start small: install Ubuntu Server, lock down SSH, automate the miner restart. Three steps tonight. You’ll thank yourself at 2 a.m. tomorrow.







