Ethereum AMD GPU Mining Tutorial Ubuntu 16.04 LTS

I just set up my Ethereum mining rig!
I thought I would post the code I used!
It's super easy!

=============================================================

Install 16.04 LTS (I usually use a Usb stick. A simple google search will do.)

=============================================================

Set up a wallet at https://www.myetherwallet.com/

=============================================================

Find a mining pool!

I use https://ethermine.org

Choose a stratum server closest to you!
(We will use these later, you will be able to use ethermine to monitor your hash rate etc.)

North America (East): us1.ethermine.org:4444 or us1.ethermine.org:14444
North America (West): us2.ethermine.org:4444 or us2.ethermine.org:14444
Europe (France): eu1.ethermine.org:4444 or eu1.ethermine.org:14444
Asia: asia1.ethermine.org:4444 or asia1.ethermine.org:14444

=============================================================

Setting up

Install and Enable SSH by opening terminal and typing the following:

sudo apt-get update

sudo apt-get install openssh-server

From this point you can choose to either proceed on the local machine, or remotely on a Windows machine using PUTTY (I USE TEAMVIEWER! IT IS AWESOME AND EASY TO INSTALL)

Create a new usergroup called video and append the current user to it by typing the following:

sudo usermod -a -G video $LOGNAME

sudo reboot

=============================================================

Installing AMD Drivers

If you plan to use an AMD card in your rig, you will need to install the AMD drivers

Install the AMD drivers by typing the following:

cd ~/Downloads wget --referer=http://support.amd.com https://www2.ati.com/drivers/linux/ubuntu/amdgpu-pro-17.30-458935.tar.xz

tar -Jxvf amdgpu-pro-17.30-458935.tar.xz

cd amdgpu-pro-17.30-458935

./amdgpu-pro-install -y

=============================================================

After install type this command (MUST DO THIS)

./amdgpu-pro-install --px

This issue is caused when the AMD graphics card conflicts with the inbuilt or on-motherboard graphics driver. This command will first uninstall the previous installation and then reinstall with --px parameter.

=============================================================

INSTALL CLAYMORE MINER

Installing claymore requires compiling the executable.
Download v9.5 of Claymore and unpack it by typing the following

cd ~/Downloads wget https://github.com/nanopool/Claymore-Dual-Miner/releases/download/v9.5/Claymore.s.Dual.Ethereum.Decred_Siacoin_Lbry_Pascal.AMD.NVIDIA.GPU.Miner.v9.5.-.LINUX.tar.gz

sudo mkdir /usr/local/claymore95

sudo tar xvf Claymore.s.Dual.Ethereum.Decred_Siacoin_Lbry_Pascal.AMD.NVIDIA.GPU.Miner.v9.5.-.LINUX.tar.gz -C /usr/local/claymore95

CREATE MINING SCRIPT (THIS TELLS YOUR MINER WHAT TO MINE, WHAT POOL TO USE AND WHERE TO SEND YOUR EARNINGS)

cd /usr/local/claymore95

sudo chmod u+s ethdcrminer64

sudo nano mine.sh

Nano (a text editor) will open a blank file.
you can configure it by following the next step.

Paste the following into the new text file:

#!/bin/sh

 export GPU_MAX_HEAP_SIZE=100

export GPU_USE_SYNC_OBJECTS=1

export GPU_MAX_ALLOC_PERCENT=100

export GPU_SINGLE_ALLOC_PERCENT=100

./ethdcrminer64 -epool <Mining_Pool_Address> -ewal <Your_Ethereum_Wallet_Address>.<Friendly_Name_For_Computer> -epsw x -mode 1 -tt 68 -allpools 1

THE LAST LINE OF THE CODE NEEDS TO BE EDITED!
Replace <Mining_Pool_Address> with the stratum address we looked at at the top of the page.
Replace <Your_Ethereum_Wallet_Address> with your Ethereum wallet address
Replace <Friendly_Name_For_Computer> with a name for your rig (e.g.: UbuntuMiner01)

You will now need to exit out of Nano

Press CTRL+X

Type Y

Press Enter until you return to the bash promp

Add executable permissions to the file

sudo chmod +x mine.sh

===============UPDATE REQUIRED=========================

sudo apt update

sudo apt install ocl-icd-opencl-dev

=======================================================

NOW YOU CAN START YOUR MINER

cd /usr/local/claymore95

./mine.sh

=======================================================

You can always message me if you have issues I dont mind helping.

If you found this useful then you can donate to one of my wallets.

Zcash
t1VjWwuJwZaXmVGDrzG2pWeS5eUzrQcEa7B

Ethereum
0xBACbD62753C2Fb09AcB05c0aaAC040Dc1505bF31

Bitcoin
3Kxzm7HiBBJqpHBFdmPacjfQsvttydaGmp

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center