Scripts I'm using to mine ETH on Linux.
nbminer.service
: setup Nvidia Power Limit to 250 and start nbminer
local.conf
: disable IPv6
nct6775-fans
: Set Fan 2 and Fan 3 to ~78%
Scripts I'm using to mine ETH on Linux.
nbminer.service
: setup Nvidia Power Limit to 250 and start nbminer
local.conf
: disable IPv6
nct6775-fans
: Set Fan 2 and Fan 3 to ~78%
# /etc/sysctl.d/local.conf | |
net.ipv6.conf.all.disable_ipv6=1 | |
net.ipv6.conf.default.disable_ipv6=1 | |
net.ipv6.conf.lo.disable_ipv6=1 |
# /etc/systemd/system/nbminer.service | |
[Unit] | |
Description=NBMiner | |
After=network.target | |
[Service] | |
ExecStartPre=/usr/bin/nvidia-smi -i 0 -pm ENABLED | |
ExecStartPre=/usr/bin/nvidia-smi -i 0 -pl 250 | |
ExecStart=/usr/local/bin/nbminer -a ethash -o stratum+tcp://eth-de.flexpool.io:4444 -u 0xe286ac33D98bf67d5614f5332C1d1e3caA5c08ca.worker --api 127.0.0.1:1880 --log-file /tmp/nbminer.log | |
RestartSec=5 | |
Restart=always | |
StandardOutput=null | |
StandardError=journaal | |
Type=simple | |
[Install] | |
WantedBy=multi-user.target |
# /usr/local/bin/nct6775-fans | |
#!/bin/bash | |
set -e | |
DEVICE="/sys/devices/platform/nct6775.2592/hwmon" | |
# Manual | |
echo 1 > "${DEVICE}/hwmon1/pwm2_enable" | |
echo 1 > "${DEVICE}/hwmon1/pwm3_enable" | |
echo 200 > "${DEVICE}/hwmon1/pwm2" | |
echo 200 > "${DEVICE}/hwmon1/pwm3" |
# /etc/systemd/system/nct6775-fans.service | |
[Unit] | |
Description=Set nct6775-fans fans to 78% | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/local/bin/nct6775-fans | |
[Install] | |
WantedBy=multi-user.target |