Building a mining rig for zcash using linux for AMD GPUs

Introduction

ZCash uses Equihash as an hashing algorithm, which is an asymmetric memory-hard PoW algorithm based on the generalized birthday problem. It relies on high RAM requirements to bottleneck the generation of proofs.

Claymore miner for AMD is one of the best miners (if not the best one!), this guide will teach you how to mine using claymore on linux.

In this tutorial we will explain how to configure a Linux system to start mining zcash.

Install AMD video driver and SDK

Copy 2 files from PC to server somehow. I like to use scp, but sftp works also.

AMDGPU-PRO Driver for Linux AMD OpenCL SDK 3.0

tar xf amdgpu-pro-16.50-362463.tar.xz
cd amdgpu-pro-16.50-362463/
sudo ./amdgpu-pro-install

Install AMD SDK

tar xf AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2
sudo ./AMD-APP-SDK-v3.0.130.136-GA-linux64.sh

Add user to video group

sudo usermod -a -G video $LOGNAME

# Check AMD drivers installation

``` bash
sudo apt install clinfo
sudo clinfo
sudo clinfo | grep compute

Download claymore zcash miner

The github repo for releases is located at ClaymoreZECMiner github page.

Download it with the following commands:

mkdir ClaymoreZEC
cd ClaymoreZEC
wget https://github.com/nanopool/ClaymoreZECMiner/releases/download/v12.6/Claymore.s.ZCash.AMD.GPU.Miner.v12.6.-.LINUX.tar.gz
tar xf Claymore.s.ZCash.AMD.GPU.Miner.v12.6.-.LINUX.tar.gz

Using tmux for leaving miner running.

sudo apt-get install tmux
tmux -2
cd ClaymoreZEC
./zecminer64

of course when execute zecminer64 make sure you are using it with your pool and address.

Appendinx

Solution to error: ./zecminer64: libssl.so.1.0.0: cannot open shared object file: No such file or directory

sudo apt-get install libssl libssl-dev

Solution to error: ./zecminer64 error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

Please verify if you installed AMD drivers correctly. Check that you are not using open source drivers.