Guide

Mine Zcash With a VPS

Zcash logoLearn how to mine Zcash using a VPS in this quick guide. While we show you with a VPS, if you’re using a local Linux installation the steps will be the same.

First, you need to order a VPS from a provider with Ubuntu 18 installed. Your server should be up and running within minutes after they received the payment. After the first login, it is always good to run

sudo apt-get update
sudo apt-get upgrade

to upgrade your software to the latest stable version. Update loads the list of the latest versions, and with the upgrade line, you actually install the new versions.

MinerGate logoInstallation

We chose MinerGate as our mining pool, that has its own software to mine. It is very easy to set up and easy to use. First, you need to register your account at the MinerGate site. If your account is up and ready to go, now we can install the MinerGate client on your server. Make a new folder for your download, then download and install the client with the following lines:

mkdir /Downloads
cd /Downloads
wget https://minergate.com/download/ubuntu-cli
sudo dpkg -i ubuntu-cli

Now your client is installed and you can start mining. You can mine multiple coins with MinerGate even simultaneously if you wish to. To start mining you need to run

minergate-cli --user /email/ /coin/ /threads/

where /email/ is the account you set up at MinerGate, /threads/ is the number of threads you want to use for mining (If you leave out this part it will use all available cores) and /coin/ is a cryptocurrency specific ticker – you can find out about these with

./minergate-cli --help

Example line for Zcash:

minergate-cli --user yourexample@email.com --zec 2

Congratulations you now have a running Ubuntu server mining Zcash!

Zcash mining Ubuntu

You can see the miner running in the command line, with current hash rates. You can also monitor the mining on the MinerGate website, with all the received coins. It should look something like this:

Zcash monitoring

Important to note, that if this is a remote server that you SSH into the machine the process will stop if you close the connection to the server. A handy solution is using tmux. It is easy to use and keeps the processes running in the background until you shut it down.

Just type¬†tmux to start a new session start the mining there and you can exit with pressing ‘Ctrl’+’b’ and then ‘d’. You can safely close the SSH connection to your server, the mining will run inside the tmux session. If you connect next time, you can continue the work if you type ‘tmux attach‘ .

 

Important to note, that if this is a remote server that you SSH into the machine the process will stop if you close the connection to the server. A handy solution is using tmux. It is easy to use and keeps the processes running in the background until you shut it down.

Just type¬†tmux to start a new session start the mining there and you can exit with pressing ‘Ctrl’+’b’ and then ‘d’. You can safely close the SSH connection to your server, the mining will run inside the tmux session. If you connect next time, you can continue the work if you type ‘tmux attach‘ .

AWS setup:

Additional setup steps in case of AWS GPU accelerated servers: (Make sure to check the latest driver version available)

sudo apt-get update -y
sudo apt-get upgrade -y linux-aws
sudo apt-get install -y gcc make linux-headers-$(uname -r)
sudo reboot

wget http://us.download.nvidia.com/tesla/410.79/NVIDIA-Linux-x86_64-410.79.run
sudo /bin/sh ./NVIDIA-Linux-x86_64-410.79.run
sudo reboot

From here on you can continue with installing the MinerGate client on your server.

Leave a Comment

Your email address will not be published.

You may also like