Shell script CudaMiner helper. Hopes to provide simplicity of initializing mining jobs and monitoring them across different machines.
- Works flawlessly with GTX 660Ti Reference
- No dual-GPU support yet; if demanded, will supply
- Please feel free to comment on this script; more will be added above as the community reports results
- Some flavor of Linux
- For this script to have utility, you'll want
cbuchner1/CudaMiner
and/orpooler/cpuminer
built somewhere on your system - For GPU fan control, you'll want
nvidia-settings
installed as well asOption "Coolbits" "5"
set in theDevice
section of yourxorg.conf
.- To configure
Option "Coolbits" "5"
, you'll need to open/etc/X11/xorg.conf
in a text editor (done with administrative privileges). - In the file, find the line
Section "Device"
- Place
Option "Coolbits" "5"
on its own line somewhere within that section - Save and relog
- To configure
- The value of
GPUMINE_EXE
should be set to the name of the program you intend to use to mine using your GPU.- For
CudaMiner
, this would be set tocudaminer
. - For
ccminer
, this would be set toccminer
.
- For
- The value of
GPUMINE_DIR
should be set to the path of the folder containing your gpu mining program.- This path should be absolute if you wish to run the script from any directory
GPUMINE_OPTS
should then be set to the arguments you wish to provide the mining program
- The value of
CPUMINE_EXE
should be set to the name of the program you intend on using to mine using your CPU.- For
cpuminer
, this would be set tominerd
- For
- The value of
CPUMINE_DIR
should be set to the path of the folder containing your cpu mining program.- This path should be absolute if you wish to run the script from any directory
CPUMINE_OPTS
should then be set to the arguments you wish to provide the mining program
- The values of
GPU_LOG
andCPU_LOG
should be set to the corresponding paths of the log files you want the miner execrable to dump their output to - If you wish to fix your GPU's fan speed, you may want to set a different default
fan speed, as defined by
DEFAULT_FAN_SPEED
(speeds quantified in % of max speed)- It is NOT recommended to set
DEFAULT_FAN_SPEED
if mining.
- It is NOT recommended to set
./minehelper.sh start_gpu
- Starts up gpu mining program, sends it to the background, and redirects its output toGPU_LOG
./minehelper.sh start_cpu
- Starts up cpu mining program, sends it to the background, and redirects its output toCPU_LOG
./minehelper.sh start_both
- Starts up both cpu and gpu mining programs, sends them to the background, and redirects their outputs to their corresponding logs (GPU_LOG
andCPU_LOG
)./minehelper.sh stop_gpu
- Stops gpu mining program./minehelper.sh stop_cpu
- Stops cpu mining program./minehelper.sh stop_both
- Stops both cpu and gpu mining programs./minehelper.sh set_fan <fan_speed>
- Sets GPU fan speed to the provided fan speed, orDEFAULT_FAN_SPEED
if no argument is provided- Fan speeds are quantified in % of max speed
- It is NOT recommended to set fan speed below 50 while mining
- Will ONLY work if run in X11-based GUI (pretty much anything
nvidia-settings
can run in) and withOption "Coolbits" "5"
set (see Dependencies)
./minehelper.sh release_fan
- Releases fan control back to the GPU (what it was before set)- Will ONLY work if run in X11-based GUI (pretty much anything
nvidia-settings
can run in) and withOption "Coolbits" "5"
set (see Dependencies)
- Will ONLY work if run in X11-based GUI (pretty much anything
./minehelper.sh help
- Displays a simplified version of this subsection
- Start both miners
./minehelper.sh start_both
- Kick up fan
./minehelper.sh set_fan 70
- Gotta build software, time to free up CPU
./minehelper.sh stop_cpu
- Ok, builds finished = time to mine, CPU!
./minehelper.sh start_cpu
- Got some noise complaints
./minehelper.sh release_fan
- How many shares so far?
- GPU?
tail gpuminer.log
- CPU?
tail cpuminer.log
- OK, time to wind down
./minehelper.sh stop_both
The MIT License (MIT)
Copyright (c) 2014 Allek Mott
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.