Mining Decred on Ubuntu with cgminer

First create your account and worker on the pool you want to join.

If you need to install git:

sudo apt-get update
sudo apt-get install git

Download, compile, install from source code:

mkdir ~/source
cd ~/source
git clone

If you need to install some extra libraries, here is what I used:

sudo apt-get install autoconf
sudo apt-get install libc-bin
sudo apt-get install libtool
sudo apt-get install libncurses-dev
sudo apt-get install curl
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install opencl-headers
sudo apt-get install ocl-icd-opencl-dev

Or all together:

sudo apt-get install autoconf libc-bin libtool libncurses-dev curl libcurl4-openssl-dev opencl-headers ocl-icd-opencl-dev

At this point you should have a newly created folder “cgminer”

cd cgminer
./ --enable-opencl
sudo make install

Test cgminer (hit “q” when your done testing):

/usr/local/bin/cgminer --blake256 --benchmark

Start mining:

/usr/local/bin/cgminer --blake256 --intensity d -o -u YourPoolUser.YourPoolWorker -p YourPoolPassword -o -u YourPoolUser.YourPoolWorker -p YourPoolPassword

You may want to further configure your cgminer.conf by adding/updating these settings in ~/.cgminer/cgminer.conf:

"pools" : [
                "url" : "",
                "user" : "YourUserName.YourWorkerName",
                "pass" : "x"
"api-allow" : "W:192.168.1.###",
"api-listen" : true,
"expiry" : "30",
"queue" : "0",
"scan-time" : "15",

To start mining on reboot, add this command to your “Startup Applications:

gnome-terminal -e '/home/reynold/bin/run_cgminer_decred' --geometry=80x40+80+40

7 thoughts on “Mining Decred on Ubuntu with cgminer

  1. As a NOOB, this post is not fully useable.

    I had to create this dir since I never used it before
    cd ~/source

    I had to install git since it was not previously installed.
    git clone

    I had to create this directory too.
    cd cgminer

    being that I am in the newly created directoy, I could not execute the following command since I am in an empty directory.
    ./ –enable-opencl
    make install

    • Ok, I updated the main post:

      mkdir ~/source
      cd ~/source

      Now that you are in the source folder and have git installed:

      git clone

      This should create a cgminer folder for you.

      • I am pleased with the new instructions! I have it installed and I am able to run it at least the –benchmark part. I will now go back and setup the account and try and get it started.

  2. Pingback: Install opencl and drivers for Radeon R9 280x on Ubuntu | ReynoldTech Blog

  3. Hello,

    Thanks a lot, it worked for me.

    I’d like to see the GPU temperature in cgminer, I know we have to use the AMD ADL SDK9, but I don’t know how to do it.

    Thanks for your help 🙂

  4. Well, I got down to the extra libraries and ran into a bit of trouble. Got down to install ocl-icd-opencl-dev and Ubuntu came back and said it could not find them. I found a website that said to install OPENCL. Did that and ran into trouble…but not sure if it’s related.

    Let me know if I did right with the alternamtive or if you have a better idea of what to do pertaining to “ocl-icd-opencl-dev”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.