Ethereum mining using ASRock h97pro4 & 5x EVGA GTX 1070 SC Black Edition
- Build Specification
- Prerequisites
- Install SSH and package updates
- Download NVIDIA Drivers
- Install Claymore’s Ethereum miner
- Create auto-start scripts
- Over Clock NVIDIA
- Intel Celeron G1850 @ 2.9GHz
- 2GB DDR3 1333mhz
- 16GB 3.0 Flash Drive (for Ubuntu OS)
- ASRock h97pro4
- 5x EVGA GTX 1070 SC Black Edition
- Fresh install of xUbuntu 16.04 LTS
Note - did not encrypt home directory or xda drive
-
No packages installed yet
-
Enter Desktop after standard boot of Ubuntu - not in safe mode or TTY space - just standard desktop
-
$ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
Disable Sleep/Suspend
At the Xubuntu desktop, press CTRL+ALT+T to open a terminal window.
Install SSH by typing:
$ sudo apt-get install openssh-server
With SSH installed, you can unplug the keyboard/mouse/monitor from your miner, and complete the rest of the installation from your desktop computer. Simply download Putty onto your desktop, run it, and enter the IP address of your mining rig (type ifconfig at the Xubuntu terminal to find your miner’s address if you don’t know it—it will probably look like 192.168.0.x). That should bring up a remote terminal session to your miner, which is more or less just like sitting at the keyboard in front of it.
If you plan to manage your mining rig remotely over the internet, you’ll need to forward port 22 on your router to your miner. Make sure that you use a strong Xubuntu password!
Setup should be pretty quick from this point, as now you can simply copy text from this webpage (highlight it and press CTRL+C) and then paste it into your Putty session by simply right-clicking anywhere inside the Putty window. I highly recommend that you complete the remainder of the guide in this manner, as it eliminates the risk of typos!
Install package updates by typing (or copying & pasting via right-click into Putty) the following command:
$ sudo apt-get dist-upgrade
Download NVIDIA Drivers or use this command line
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo apt install nvidia-384
cd ~/Downloads
sudo apt install curl
curl -L -o claymore_11.0_miner.tar.gz https://drive.google.com/uc?id=1fWZ40uqEkFihDnf0kw8hYpobNRF1QCxc
Then create a new directory for it, and unpack it there:
sudo mkdir /usr/local/claymore11.0
sudo tar -xvf claymore_11.0_miner.tar.gz -C /usr/local/claymore11.0
Then let’s head over to the installation directory and create a startup script. Note that commands 2-5 below just clean up the installation directory a bit by removing an intermediary directory that was included in the original tar archive:
cd /usr/local/claymore11.0
cd Clay*
sudo mv * /usr/local/claymore11.0
cd ..
sudo rm -r Clay*
sudo chown root:root ethdcrminer64
sudo chmod 755 ethdcrminer64
sudo chmod u+s ethdcrminer64
curl -L -o mine.sh https://gist.githubusercontent.com/gerardvidamo/a5682145df27957834381b03a0949291/raw/d6082b442213c26c894ebaa37863b8d1f8a23685/ubuntu_1604_OC_nvidia.sh
sudo chmod +x mine.sh
sudo apt install screen
cd ~
sudo nano miner_launcher.sh
sudo nano /etc/rc.local
/home/YOUR_XUBUNTU_USERNAME/miner_launcher.sh 15 &
Use this script replace YOUR_XUBUNTU_USERNAME
#!/bin/bash
DEFAULT_DELAY=0
if [ "x$1" = "x" -o "x$1" = "xnone" ]; then
DELAY=$DEFAULT_DELAY
else
DELAY=$1
fi
sleep $DELAY
cd /usr/local/claymore11.0
su YOUR_XUBUNTU_USERNAME -c "screen -dmS ethm ./mine.sh"
$ sudo chmod +x miner_launcher.sh
Create an alias to easily check on the Claymore miner process
$ sudo nano .bashrc
Copy and paste this script
alias miner='screen -x ethm'
sudo update-grub
sudo nvidia-xconfig --enable-all-gpus
sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration
sudo systemctl restart lightdm.service