# Mining the Ergo Cryptocurrency in the ergo.getblok.io Pool

Mining Ergo as part of the ergo.getblok.io mining pool is easy, particularly on Windows. If you already have a Ergo wallet, it can be set-up on a computer with a GPU video card compatible with mining Ergo in less than 5 minutes.

For Ergo, you need a card with a minimum of 4GB of RAM, ideally more. Create a Ergo wallet using Yoroi, if you don’t have one already. Download mining software compatible with your card, i.e., T-Rex (Nvidia) or RedTeamMiner (AMD). Extract the mining software file in your Download directory. Open a text editor, and type in (or copy & paste) the following, assuming in this example you are on Windows:

setx GPU_FORCE_64BIT_PTR 0
setx GPU_MAX_HEAP_SIZE 100
setx GPU_USE_SYNC_OBJECTS 1
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_SINGLE_ALLOC_PERCENT 100

C:\Users\your_username\path\to\mining\file\t-rex.exe -a autolykos2 -o stratum+ssl://ergo.getblok.io:4056 <YourErgoAddress>.<AnyNameYouWantToIdentifyTheComputer>

For clarity, <YourErgoAddress>.<AnyNameYouWantToIdentifyTheComputer> should look something like:

C:\Users\cafebedouin\Downloads\t-rex-0.24.7-win\t-rex.exe -a autolykos2 -o stratum+ssl://ergo.getblok.io:4056 9g1p6UU8XoAeU4yGPLpbTHYiG8aBHwfCFzQqJZrfzuLnmF3zb7P.covertmixeraddress

You can find your address by going to the Receive tab in Yoroi, you can then go to the getblok.io website and put in the information this page asks for and it will provide the information above for you. Save the file as ERGO_mining.bat. To start mining, simply click on the file.

Note: If you have a virus protection program like McAfee, you’ll need to restore the t-rex.exe file after extraction and exclude it from Real-Time Scanning in order to run it.

If you want the mining software to start when you reboot your computer, then, save ERGO_mining.bat in C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup. If you have trouble finding the Startup folder, you can always save ERGO_mining.bat somewhere, type the Windows key + R to get the shell prompt, then type:

shell:startup 

This will bring up the Startup folder, and you can drag and drop the Ergo_mining.bat file into it.

## Linux

This is harder for me to comment on since I am using a AMD card on my Linux machine, which can be a bit of a PITA to configure correctly. These instructions will get you in the ballpark with an AMD card, but be prepared to do some troubleshooting.

Let’s assume that you somehow managed to get your graphics card working on Linux. Then, the process is very similar to Windows above. Open a text editor and type the following:

#!/bin/bash

export GPU_MAX_ALLOC_PERCENT=100
export GPU_SINGLE_ALLOC_PERCENT=100
export GPU_MAX_HEAP_SIZE=100
export GPU_USE_SYNC_OBJECTS=1

/home/cafebedouin/Downloads/teamredminer-v0.8.6.3-linux/teamredminer -a autolykos2 -o stratum+ssl://ergo.getblok.io:4056  9g1p6UU8XoAeU4yGPLpbTHYiG8aBHwfCFzQqJZrfzuLnmF3zb7P.covertmixeraddress

Then, save the file as ergo_miner.sh. At the command prompt: chmod 744 ergo_miner.sh and then just run it as usual, by typing: ./ergo_miner.sh at the prompt. If you want it to automatically run whenever you restart your machine, this image from linuxconfig.org tells you everything you need to do to set it as a systemd service.