How to Mine Zcash on Your Linux Machine
Zcash was launched on October 28, 2016 and people are now able to mine Zcash. In this Zcash mining guide we are going to look at how to mine Zcash on Linux, including Debian, Ubuntu, Linux Mint, Elementary OS.
Zcash is a new cryptocurrency that promises better privacy and full anonymity for users. Unlike Bitcoin, Zcash transaction info (the sender, recipient, and value of all transactions on the blockchain) is encrypted and can’t be viewed unless you have the view key.
The official Zcash client is currently available as a command-line tool for Linux only.
- You are comfortable with Linux command line.
- You have at least 4GB of RAM on your computer
- A 64-bit Debian-based Linux distribution.
Install Zcash on Debian, Ubuntu, Linux Mint, Elementar OS from Zcash repository
Fire up a terminal window (
CTRL+ALT+T), then open the
sudo nano /etc/apt/sources.list
Paste the following line to the end of the file.
deb [arch=amd64] https://apt.z.cash/ jessie main
Save and close the file. Then import Zcash signing key to your system using the following command.
wget -qO - https://apt.z.cash/zcash.asc | sudo apt-key add -
You should see an
OK message which indicates that the import is successful. Since Zcash repository uses https protocol, we need to install the
apt-transport-https package so that APT can talk to Zcash repository in https.
sudo apt install apt-transport-https
Now update local package index and install Zcash.
sudo apt update sudo apt install zcash
Setting up Zcash
Once it’s installed, run the following command to fetch the zero-knowledge parameters. The params directory will be created at
Once the download is complete, we also need to create a config file before running Zcash. Create the config directory under your home directory with:
Then run the folllowing 3 command to create the
~/.zcash/zcash.conf file. Replace username with your preferred username.
echo "addnode=mainnet.z.cash" >~/.zcash/zcash.conf echo "rpcuser=username" >>~/.zcash/zcash.conf echo "rpcpassword=`head -c 32 /dev/urandom | base64`" >>~/.zcash/zcash.conf
If you want to enable CPU mining, then run the following 2 commands:
echo 'gen=1' >> ~/.zcash/zcash.conf echo "genproclimit=$(nproc)" >> ~/.zcash/zcash.conf
Now start the Zcash daemon:
Now your Zcash mining node is up and running. To let it run in the background, add
You can use the
zcash-cli client to get information on your node like below.
To stop mining, run
For more info on the usage of
zcash-cli, check out the man pages.
man zcashd man zcash-cli
It’s worth mentioning that Equihash, a memory-oriented Proof-of-Work, is used for block mining in Zcash which means how much mining you can do is mostly determined by how much RAM you have.
I hope this how to mine Zcash guide helped you. As always, if you found this post useful, then Subscribe to our free newsletter to get latest Linux tutorials. You can also follow us on Google+, Twitter or like our Facebook page.