Last active
May 26, 2018 03:33
-
-
Save benMain/072449c024911926ab59f64c3e6744e8 to your computer and use it in GitHub Desktop.
systemd service for dstm miner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Equihash Miner Service | |
After=network.target | |
[Service] | |
Type=simple | |
User=ben | |
WorkingDirectory=/home/yourusername | |
ExecStart=/usr/bin/zm --cfg-file=/home/ben/Documents/zm.cfg | |
Restart=on-failure | |
RestartSec=120 | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install build-essential gcc-multilib dkms | |
cd ~/Downloads | |
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/390.48/NVIDIA-Linux-x86_64-390.48.run | |
chmod +x NVIDIA-Linux-x86_64-390.48.run | |
sudo ./NVIDIA-Linux-x86_64-390.48.run | |
rm NVIDIA-Linux-x86_64-390.48.run | |
cd ~/Downloads | |
wget https://github.com/nemosminer/DSTM-equihash-miner/archive/DSTM-0.6.tar.gz | |
cp zm /usr/bin/ | |
rm DSTM-0.6.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ZM supports configuration via configuration files. | |
# Configuration files are used if the '--cfg-file' option is given on the | |
# command line. All additional command line options are ignored in this case. | |
# Options are grouped into sections - each option is a 'key=value(s)' pair. | |
# Lists of values are separated by ',' (spaces are not allowed). | |
# Comments start with '#'. | |
# ZM supports the setup of multiple pools. | |
# Pools are ordered by their priority. Higher priority pools are configured | |
# above lower priority pools in this file. ZM connects to the highest priority | |
# pool which is reachable. If a pool gets unreachable a lower priority pool will | |
# be used. ZM reconnects to a higher priority pool automatically if it gets | |
# reachable again. | |
[GLOBAL] | |
#dev=0,1,2 # Comma separated list of cuda devices | |
time=1 # Enable output of timestamps | |
color=1 # Colorize the output | |
logfile=zm.log # Appends logs to the given file | |
#noreconnect=1 # Disable reconnection on network errors | |
telemetry=0.0.0.0:2222 # Starts telemetry server | |
#intensity=0:0.9,1:0.85 # Reduce the load which is put on the gpu valid | |
# range ]1.0-0.0[. Format: comma separated list | |
# of dev_id:intensity values e.g '0:0.5,2:0.6' | |
# Intensity uses performance data - it takes | |
# some time till it gets applied. | |
#temp-target=0:65,2:65 # In C - If set, enables temperature controller. | |
# The workload of each GPU will be continuously | |
# adjusted such that the temperature stays around | |
# this value. Format: comma separated list of | |
# of dev_id:temp-target values e.g '0:65,2:70' | |
[POOL] | |
server=us.miningspeed.com | |
port=3052 | |
user=t1PyL1cmz51xPUBEPLN6KPSDhTskWdnVnwc | |
#pass=x | |
#[POOL] | |
#server=us.miningspeed.com | |
#port=3062 | |
#user=znfYDmXE6a4YKmh39WTMEhy7pbu88TSZ8ED | |
#pass=x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure ExecStart points at your location for zm (dstm) binary.
Make sure the config file exists.