Setting up your first Mining rig (Using Ubuntu 16.04 LTS Server)

Since a few months i started getting more and more interested in crypto and now i can share my experience with Mining.

At the very beginning of Mining many were attracted by Bitcoin since the difficulty was so low that everyone with some spare GPUs could start and be an active node of the Bitcoin network and earn some satoshi, Nowadays this is still a thing but the miners have evolved and investors came into the game with huge datacenters full of ASICs/13 GPU rigs dedicated to mining a single coin and boosting the difficulty to the very top causing low budget miners to shutoff their rigs since you cannot make any profits with just a bunch of GPUs.
What happened next? Different coins started becoming profitable and allowing more GPU owners to jump into the mining game using another cryptocurrency like Ethereum, Zcash, Ethereum Classic, Monero.. and many others, if you ever noticed GPU prices this summer you probably saw that the value of AMD/Nvidia GPUs was incredibly high and the European/American market started struggling finding those cards as “Mining Whales” started buying 300-400 cards per order making Hobbist/Gamers life harder.

Ok cool, now i see that Ethereum/Zcash/Monero/…Coin xyz… is still PoW(Proof of Work) and i can mine coins till end of 20xx how can i start mining?
First of all you need to consider that mining takes a lot of energy at least 80-140W per card depending on under/overclock settings so if your electrical system cannot sustain the draw of all the total energy you cannot start mining there.
After you have made your elettrical considerations you can start setting up your Mining rig, the only components necessary for mining are:

sudo apt-add-repository ppa:graphics-drivers/ppa

Installing the drivers and Nvidia SMI

sudo apt-get install nvidia-smi
sudo apt-get install nvidia-384


** To correctly run Nvidia Drivers you must install startx and configure the GPUs with “Fake” Screens as on Ubuntu 16.04 LTS Server there is no gui.. (Files that you should configure are /root/.xinitrc for OC settings and /etc/X11/xorg.conf for “Fake” screens attached to GPUs)

Now you just have to choose your miner and mining pool to start mining (I assume you already have a Wallet for the coin you want to mine).
Examples:

EWBF Miner –> Zcash
Ethminer –> Ethereum
ccminer –> Monero


Most of those scripts have examples inside them so you need only to change Wallet/Pool settings:

EWBF:
0.3.4b/miner –server POOL-ADDRESS –user WALLET-ADDRESS.RIG-NAME –pass z –port 3333 –pec –log 2 –logfile /var/log/ewbf.log –tempunits C –templimit 85

To start mining you just have to start the mining script (under a screen session to keep the script active even when you close terminal) and keep an eye on GPU,connectors temps (green zone is 50-70, warning zone 70-80 but still ok, critical zone 80-90, gpu lock/driver automatically stops 90-100) .

Some of the most known mining pools are:

Remote Control is quite easy, since this is a Linux based system you can Portforward SSH ports on your Router and enable SSH-Key authentication for remote management (Filter IP ranges with IPtables if you know that you will connect only from provier X).
Other alternatives are:



After you are up and running just HODL and keep mining