How to fail at mining Zcash (ZEC)

How to fail at mining Zcash (ZEC)

By TrocProcLock | Earning that Crypto | 10 Jan 2020


I love trying to mine different cryptocurrencies or just different ways to earn them even if it's not actual mining them. So I figured I would take a stab at mining Zcash. Before we begin I knew next to nothing about Zcash or how to mine it before I began. 


351665157-bf0091bc22bf20c165d78dc4440c8e76ae89224923565583f7cfe678b971809c.png

I wanted to setup a mining rig so I figured I would document it as I go to share with you all. I am not an expert at Zcash or Linux or cryptocurrencies as a whole. But I am an engineer and can figure things out and I enjoy it. I am following the official Zcash mining guides and will be using their recommendations in this guide.

Note: If you are interested too please read the full article before starting. Once again I didn't do enough research before I started and ran into a pretty big problem along the way. 

Note 2: All Debian code in this article I italicized 


First thing is first, you will need the following things:

Linux (Debian) x64 OS
- 5GB of free RAM
- 25GB of free HD space

(I am not going to walk through setting up Linux because it would take forever)

Once you are in your Linux OS you will need to setup the dependencies:

su
sudo apt-get install \
build-essential pkg-config libc6-dev m4 g++-multilib \
autoconf libtool ncurses-dev unzip git python python-zmq \
zlib1g-dev wget curl bsdmainutils automake

351665157-5f0194cf3531c06b6db9909a374ce12c714144805eb7f9ba0e62c6154d111d26.png

Now we need to check what versions of gcc, g++ and binutils are installed. (Zcash was built to use gcc/g++ 4.9 through 7.x and binutils 2.22 or later)
g++ --version
gcc --version
as --version

Now we need to download the actual Zcash software.

git clone https://github.com/zcash/zcash.git
cd zcash/
git checkout v2.1.0-1
./zcutil/fetch-params.sh

351665157-6e3d3cdd92f6bc3134f1aaec4fcdd22e4b8809c4491b2d671c5ff3d6a5982270.png

 

Next is to verify all the dependencies are installed.

./zcutil/build.sh -j$(nproc)

This steps take a LOOOONNNNGGG time to complete, it took me about 20 minutes so get some coffee.

 

Now you need to create the directory for data.

mkdir -p ~/.zcash

 

Next is to create a config file inside that data directory.

echo "addnode=mainnet.z.cash" >~/.zcash/zcash.conf

 

Now the fun begins to enable the actual CPU mining run the following 2 commands.

echo 'gen=1' > ~/.zcash/zcash.conf
echo "genproclimit=-1" > ~/.zcash/zcash.conf

 

START Zcash Node

./src/zcashd

351665157-928086ffd6ddb74c9248fae5de62c00d2b419afb8ef335b528bce0f4833f89dd.png
351665157-58d4fcab75970c3e3cdaebb6bf1046651523ac833e8ae171efb3a25a49f539c9.png

As with all my mining rigs I know mining solo is not going to work for me. So I wanted to join a pool and see what is was all about and how much Zcash I could earn. Until I found this little tidbit online. It was linked to by Zcash's website.

"To have a chance to mine any Zcash you will need to join a pool and use 3rd party software!"

https://www.zcashcommunity.com/mining/mining-pools/

So that's cool. Well at least I got the Zcash miner setup and learned a little about Debian along the way. Maybe another day I will take another stab at it. I found a lot of pools that have guides to walk through setting up miner rigs and all so we shall see, but for now I need a break from Linux and Zcash!

How do you rate this article?

0


TrocProcLock
TrocProcLock

I am a crypto enthusiast and also a crypto noob :) Just trying to learn more each day.


Earning that Crypto
Earning that Crypto

I was one new to crypto and was looking everywhere on how to earn different types of crypto and wish I had a central location to go to for information. Now I am trying to help those that come after me and make it easier for them.

Publish0x

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.