Here is a little guide to run this on UBUNTU
I did a lot of trouble shot just to decide, it is not for me (all my 6 gpus nvidia rigs have crappy cpu, and I think that the pool is stealing from us or the miner is(and hate the fact that the "-url" doesn't do shit)).
So first things first, here is my run.sh, just little mods (to not kill other process, and to see the log on the term).
#!/bin/bash
cd $(dirname $0)
if [ ! -f address.txt ];then
echo -e "\n file address.txt not exists! \n"
exit
fi
SMI=nvidia-smi
ADDR=$(cat address.txt | head -1 )
DRV=$( $SMI -h |grep Interface | awk -Fv '{print $2}' | cut -d. -f1 )
CARDS=$( $SMI -L | wc -l )
WK=$( /sbin/ifconfig eth0|grep "inet addr"|awk '{print $2}'|awk -F. '{print $3"x"$4}' )
if [ $DRV -lt 387 ];then
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:cuda8
else
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:cuda9
fi
echo "Driver = $DRV , CARD COUNT=$CARDS , WK=${WK}"
cd btm-miner
./miner -user ${ADDR}.${WK}
Take care with the address, is the most common mistake, you canīt mine directly to most of the exchanges (because the address type, i don't know how does that really works), easiest fix, just download the wallet and create one.
Now, I did everything on UBUNTU 16.04 LTS (this works for 18.04, but the oc method doesn't, someone with more knowledge should fix that very easy)
Download and fresh install UBUNTU 16.04, click all the extra installations.
Next you need to install nvidia drivers, I used 387 version, so please use the same.
just type this on the terminal and accept everything
$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt update
$ sudo apt install nvidia-387
RESTART the system
now you have to see all your gpus if you type "nvidia-smi"
Now download the miner and extract it.
Please copy and paste the .sh I put before, and paste your own address on the address.txt (upool pays with no registration)
now move on your terminal to the carpet of your sh and do
$ sudo chmod +x run.sh
now runit with
$ ./run.sh
you should see all working now to oc (this part doesnt work on 18.04 )
First you have to make a virutal screen for each gpu easiest way to do
$ sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration
We have to check that was correct
go to
$ sudo nano /etc/X11/xorg.conf
now search for the word Coolbits, you should see this
Option "Coolbits" "28"
not this
#Option "Coolbits" "28"
if you have the hastag please erase ti on each gpu (you will have listed all your gpus there)
And dont move anything more!
ctr+x for exit, and save it (read the foot of the screen )
Now do this (change permissions so at startup the configuration doesn't reset)
$ sudo chmod 444 /etc/X11/xorg.conf && sudo chattr +i /etc/X11/xorg.conf
RESTART the system
now you have to make a new script, crankit.sh (or any other name you want)
#!/bin/bash
# Script needs to run as sudo for nvidia-smi settings to take effect.
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
# Setting a terminal variable called memoryOffset
# Since all my cards are the same, I'm happy with using the same Memory Transfer Rate Offset I use this conf to 1050 ti
memoryOffset="700"
cpuOffset="100"
# Enable nvidia-smi settings so they are persistent the whole time the system is on.
nvidia-smi -pm 1
# Set the power limit for each card (note this value is in watts, not percent! CHANGE THIS TO THE NUMBER OF GPUS YOU HAVE
nvidia-smi -i 0,1,2,3,4,5,6,7,8 -pl 53
## Apply overclocking settings to each GPU
nvidia-settings -a [gpu:0]/GpuPowerMizerMode=1
nvidia-settings -a [gpu:0]/GPUMemoryTransferRateOffset[2]=$memoryOffset
nvidia-settings -a '[gpu:0]/GPUGraphicsClockOffset[2]=$cpuOfset
nvidia-settings -a [gpu:1]/GpuPowerMizerMode=1
nvidia-settings -a [gpu:1]/GPUMemoryTransferRateOffset[2]=$memoryOffset
nvidia-settings -a '[gpu:1]/GPUGraphicsClockOffset[2]=$cpuOffset
Add another and change the number on gpu:x for each of your gpus
to run the script you have to chmod again
$ sudo chmod +x crankit.sh
then
$ ./crankit.sh
And you are done, just change the variable on blue and run it and you will be oc your nvidia GPUS
Any tips (eth)
0x0EE0873De03961208F955B4F38d7b953204De042