I'm in no case responsible for fried hardware, erased software or burning down houses. Make sure your miners are always well cooled.
Don't mix nVidia and AMD in the same rig. sgminer doesn't play nice, and you might want to use a different distro depending on the hardware. More on this later.
I recommend using Ubuntu. The advantage is this little PPA over there : https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa that will allow easy installation of latest nVidia drivers.
add-apt-repository ppa:graphics-drivers/ppa
apt-get update
apt-get install -y linux-headers-generic nvidia-387 libcuda1-387 xorg --no-install-recommendIf you don't enable XORG, you won't be able to use nvidia-settings to overclock your card(s), so yes, and X server is needed.
nvidia-xconfig --enable-all-gpus --coolbits=28 --allow-empty-initial-configurationvim /mining.service
<read and paste content from mining.service below>vim /start-mining.sh
<read and paste content from start-mining.sh below>
chmod +x /start-mining.shIn the script a value of 100 is used for GPUMemoryTransferRateOffset. The max memory overclock you can achieve depends on your card.
Start from 100 and increase slowly to find a safe spot ( running stable for more than 30 minutes ).
systemctl enable /mining.service