Skip to content

Instantly share code, notes, and snippets.

@yagop
Last active March 16, 2021 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yagop/880fe88affde720ca3390cfd94aeb066 to your computer and use it in GitHub Desktop.
Save yagop/880fe88affde720ca3390cfd94aeb066 to your computer and use it in GitHub Desktop.
Soria Mining

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment