Would you like to learn how to do Monero GPU mining? In this tutorial, we are going to show you how to GPU mine Monero using the software xmr-stak and an AMD RX 480 GPU on a computer running Ubuntu Linux.
Hardware List:
The following section presents the list of equipment used to create this Monero GPU Mining tutorial.
Every piece of hardware listed above can be found at Amazon website.
Software List:
Here is a list of software that we used to create this Monero GPU Mining tutorial.
We offer two ways to download this software.
Monero Playlist:
On this page, we offer quick access to a list of videos related to Monero GPU mining.
Don’t forget to subscribe to our youtube channel named VirtualCoin.
Monero Related Tutorial:
On this page, we offer quick access to a list of tutorials related to Monero mining.
Tutorial – XMR-STAK Monero GPU Mining
Create a new account on the Minergate website to become a member of the mining pool
First, let’s install the AMD GPU driver. (amdgpu-pro-17.30-465504.tar.xz)
Download this file on a windows computer and use the WinSCP program to transfer it to the linux computer.
On the Linux computer, you need to copy this file to the /downloads/drivers folder.
# mkdir /downloads/driver -p
# cd /downloads/driver
# tar -Jxvf amdgpu-pro-17.30-465504.tar.xz
# cd amdgpu-pro-17.30-465504
# ./amdgpu-pro-install
# reboot
Second let’s install the AMD-APP-SDK package. (AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2)
Download this file on a windows computer and use the WinSCP program to transfer it to the linux computer.
On the Linux computer, you need to copy this file to the /downloads/drivers folder.
# cd /downloads/drivers
# tar -jxvf AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2
# ./AMD-APP-SDK-v3.0.130.136-GA-linux64.sh
On the Linux console, use the following commands to install the required packages:
# apt-get update
# apt-get install apt install libmicrohttpd-dev libssl-dev
# apt-get install cmake build-essential libhwloc-dev
Create a directory to the miner software and download the xmr-stak package.
# mkdir /downloads
# cd /downloads
# git clone https://github.com/fireice-uk/xmr-stak
Compile and install the xmr-stak software.
# mkdir xmr-stak/build
# cd xmr-stak/build
# cmake .. -DCUDA_ENABLE=OFF
# ln -s /opt/amdgpu-pro/lib/x86_64-linux-gnu/libOpenCL.so /usr/lib/libOpenCL.so.1
# ldconfig
# make install
Edit the limits.conf file and add the following lines.
# vi /etc/security/limits.conf
* soft memlock 262144
* hard memlock 262144
To start the Monero GPU mining use the following command, as an example:
# sysctl -w vm.nr_hugepages=128
# cd /downloads/xmr-stak/build/bin
# ./xmr-stak –noCPU –url stratum+tcp://xmr.pool.minergate.com:45560 -u virtualcoin.videos@gmail.com -p x
# ./xmr-stak –url stratum+tcp://xmr.pool.minergate.com:45560 -u virtualcoin.videos@gmail.com -p x
As a requirement, you need to change the username virtualcoin.videos@gmail.com from the command above to your username.
Keep in mind that the username virtualcoin.videos@gmail.com was used only as an example.
FAQ – Monero CPU Mining
If you are having problems to start mining Monero, you should take a look at our frequently asked questions page.
To add a question to the database, please post the question as a comment on the youtube video listed on the top of this page.