Bitcoin Mining with Ubuntu 12.04 TLS and CGMiner

This is a how-to for staging a desktop computer for mining with cgminer, starting with a fresh install of Ubuntu 12.04 LTS. I collected the notes while installing Ubuntu and cgminer on brand new hardware. This document should be complete enough to get you started mining Bitcoins using a graphics card. Keep in mind, mining is evolving. GPU mining is at the lower end nowdays. See Bitcoin ASIC.

UPDATE (11/29/2013): I have not mined on Ubuntu since spring. These instructions worked flawlessly at that time. Although they may still be useful, they probably need to be reviewed and updated.

Hardware

Staging was done on the following hardware:

References:

Most of these instructions are not original to me. My post serves to give me a list of steps that I can reproduce easily on current hardware and driver versions. Here are the web pages I referenced to put this blog post together:

STEP 1: Install Ubuntu 12.04 LTS

Download and install Ubuntu 12.04 LTS from Ubuntu.com. As a side note, I previously tried installing Ubuntu 12.10, but I had to install propriety graphics card drivers manually. This worked, but those steps are not described in this how-to. On the other hand, 12.04 LTS detected and suggested propriety drivers automatically.

I recommend installing from a USB key. To create one easily, you can use unetbootin. This app can be downloaded and installed to Windows, Linux or Mac from unetbootin.sourceforge.net. All I had to do was prepare my USB key using unetbootin and then boot/install the new machine from that USB key. No need for a DVD drive.

During the Ubuntu install, make sure to select the box for installing third party drivers when prompted to do so.

STEP 2: Install proprietary drivers for your graphics card

With the Radeon HD 7950, Ubuntu automatically suggested proprietary drivers after install. I selected and installed ATI/AMD proprietary FGLRX graphics driver (post-release updates). I avoided the beta drivers.

STEP 3: Install Ubuntu Updates

NOTE: I am using the terminal window to run these commands. On your Ubuntu icon bar, click on Dash Home, which is the first icon on left-top corner if you have a fresh Ubuntu 12.04 LTS install. Then, type “term” and click on the terminal window to open it. To copy and paste the commands listed in this tutorial one-by-one, you can either use CTRL-SHIFT-V or simply right-click on the terminal prompt and select “Paste” from the context menu.

sudo apt-get update

NOTE: I recommend rebooting again here once updates are complete. Type sudo reboot in the terminal window.

STEP 4: Install vim

sudo apt-get install vim

STEP 5: Update grub

sudo gedit /etc/default/grub

In this file, update the following line:
change GRUB_TIMEOUT=10 to GRUB_TIMEOUT=”10″

sudo update-grub

STEP 6: Install other needed packages

sudo apt-get install subversion git-core

STEP 7: Install ATI OpenCL Drivers

NOTE: Release 2.8 is current at time of writing this how-to. For more information, visit http://developer.amd.com/tools/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/#one

mkdir amdapp_2-8
cd amdapp_2-8

Download the appropriate AMD APP SDK for your machine, i.e. AMD-APP-SDK-v2.8-lnx32.tgz or AMD-APP-SDK-v2.8-lnx64.tgz from here: http://developer.amd.com/tools/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/#one

tar -zxvf ~/Downloads/AMD-APP-SDK-v2.8-lnx32.tgz (by default on a new Ubuntu install, your Firefox downloads should be located in ~/Downloads unless you modified your download folder in Firefox preferences)

sudo ./Install-AMD-APP.sh

STEP 8: Reboot again

sudo reboot

STEP 9: Install cgminer’s prerequisites

NOTE: At this point, I am using some of the instructions from this post: http://bitcoin-mining-headless.blogspot.com/2011/09/finally-cgminer-install-tutorial.html

sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm

STEP 10: Get cgminer

git clone git://github.com/ckolivas/cgminer.git cgminer

STEP 11: Install ADL SDK 5.0

NOTE: This will allow cgminer adjustments of such things as your GPU’s clocking, voltage and fan speed.

Note: Download ADL_SDK_5.0.ZIP from http://developer.amd.com/amd-license-agreement/?f=ADL_SDK_5.0.zip. You might want to check if 5.0 is still the most current version first, and download whatever is most current. Modify the commands below according to the version you’re going to download.

mkdir ADL_SDK
cd ADL_SDK
mv ~/Downloads/ADL_SDK_5.0.zip .
unzip ADL_SDK_5.0.zip
cp include/* ~/cgminer/ADL_SDK
cd ~/cgminer
./autogen.sh

NOTE: After running the autogen.sh command, you should see a summary similar to this one:

Configuration Options Summary:

curses.TUI...........: FOUND: -lncurses
OpenCL...............: FOUND. GPU mining support enabled
scrypt...............: Disabled
ADL..................: SDK found, GPU monitoring support enabled

BFL.ASICs............: Disabled
BitForce.FPGAs.......: Disabled
Icarus.FPGAs.........: Disabled
ModMiner.FPGAs.......: Disabled
Ztex.FPGAs...........: Disabled

Compilation............: make (or gmake)
CPPFLAGS.............:
CFLAGS...............: -g -O2
LDFLAGS..............: -lpthread
LDADD................: -ldl -lcurl compat/jansson/libjansson.a -lpthread -L/opt/AMDAPP/lib/x86 -lOpenCL -lm

Installation...........: make install (as root if needed, with 'su' or 'sudo')
prefix...............: /usr/local

Continue with the next command (it is formatted for a 32 bit Ubuntu environment):

CFLAGS="-O2 -Wall -march=native -I /opt/AMDAPP/include/" LDFLAGS="-L/opt/AMDAPP/lib/x86" ./configure

NOTE: After running the above command, you should see a summary again, similar to this one:

Configuration Options Summary:

curses.TUI...........: FOUND: -lncurses
OpenCL...............: FOUND. GPU mining support enabled
scrypt...............: Disabled
ADL..................: SDK found, GPU monitoring support enabled

BFL.ASICs............: Disabled
BitForce.FPGAs.......: Disabled
Icarus.FPGAs.........: Disabled
ModMiner.FPGAs.......: Disabled
Ztex.FPGAs...........: Disabled

Compilation............: make (or gmake)
CPPFLAGS.............:
CFLAGS...............: -O2 -Wall -march=native -I /opt/AMDAPP/include/
LDFLAGS..............: -L/opt/AMDAPP/lib/x86 -lpthread
LDADD................: -ldl -lcurl compat/jansson/libjansson.a -lpthread -L/opt/AMDAPP/lib/x86 -lOpenCL -lm

Installation...........: make install (as root if needed, with 'su' or 'sudo')
prefix...............: /usr/local

Continue with the next command (You are still in Terminal, in your cgminer folder):
make

STEP 12: Testing

export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
./cgminer -n

On my machine, I have one Radeon HD 7950, so this is the summary I see:

[2013-03-20 14:35:32] CL Platform 0 vendor: Advanced Micro Devices, Inc.
[2013-03-20 14:35:32] CL Platform 0 name: AMD Accelerated Parallel Processing
[2013-03-20 14:35:32] CL Platform 0 version: OpenCL 1.2 AMD-APP (1113.2)
[2013-03-20 14:35:32] Platform 0 devices: 1
[2013-03-20 14:35:32] 0 Tahiti
[2013-03-20 14:35:32] GPU 0 AMD Radeon HD 7900 Series hardware monitoring enabled
[2013-03-20 14:35:32] 1 GPU devices max detected

STEP 13: Run cgminer

NOTE: There is up-to-date information on cgminer on the Bitcoin Talk Forum here: https://bitcointalk.org/index.php?topic=28402.0.

You will most likely need to join a mining pool. I recommend Slush’s pool, but there are several other good ones.

Starting cgminer: Once you’re registered on a mining pool, you can simply run the following basic Terminal command in your cgminer folder:
cgminer -o http://pool:port -u username -p password

  • Where http://pool:port is the URL the pool requires you point your miner to.
  • Where username is the worker username you created on the pool. See your pool’s instructions.
  • Where password is the worker password (not your pool account password) you created on the pool. See your pool’s instructions.

STEP 14: Running cgminer with a configuration script

Once I experimented a bit with cgminer settings, I created a configuration script as shown on Complete Guide to Mine Bitcoin on Xubuntu 12.04.

To make your first cgminer configuration script, you simply cut and paste the following into a text document and save it in your cgminer folder as cg.sh. Don’t forget to add your pool credentials.


#!/bin/sh
export DISPLAY=:0
export GPU_USE_SYNC_OBJECTS=1
cd /home/worker1/cgminer
./cgminer -o http://pool:port -u username -p password --api-listen --api-network -I 9 --gpu-reorder --auto-fan --gpu-powertune 20 --gpu-engine 920,920,920,1125 --gpu-memclock 795,795,795,975

Once the file is saved, update it with:
chmod +x cg.sh

Then, start cgminer:
./cg.sh

That’s it. This should get you running. If you have a HD 7950, you might want to tweak the cgminer settings a bit to get more hashing power, adjust the fan speed etc. See this post: The 7950 Megashash Thread.

Good luck. Have fun.


CEX.io

56 thoughts on “Bitcoin Mining with Ubuntu 12.04 TLS and CGMiner

  1. I had a problem with multiple 7950’s where ./cgminer -n was giving me errors (ADM was unable to initilize, or something to that effect). To fix that, use…

    sudo aticonfig –initial
    sudo aticonfig –adapter=ALL –initial
    sudo reboot

    Everything should work after that

      • I’m testing that out as I’ve did a
        aticonfig –adapter=all –odgc
        and my first card is running 99% and the others zero.

        I also stumbled on a guide that shows how to do the same thing on the DVI port (no DVI/VGA adapter required)
        http://blog.zorinaq.com/?e=11

    • I used the aticonfig commands above and rebooted. Ubuntu detects both cards.

      -> aticonfig –lsa
      * 0. 03:00.0 AMD Radeon HD 7800 Series
      1. 04:00.0 AMD Radeon HD 7800 Series

      * – Default adapter

      But,

      -> ./cgminer -n
      [2013-05-13 10:57:36] Platform 0 devices: 1
      [2013-05-13 10:57:36] 0 Pitcairn
      [2013-05-13 10:57:36] Failed to ADL_Adapter_ID_Get. Error -10
      [2013-05-13 10:57:36] This error says the device is not enabled
      [2013-05-13 10:57:36] Failed to ADL_Adapter_ID_Get. Error -10
      [2013-05-13 10:57:36] This error says the device is not enabled
      [2013-05-13 10:57:36] GPU 0 AMD Radeon HD 7800 Series hardware monitoring enabled
      [2013-05-13 10:57:36] 1 GPU devices max detected

      I have monitors plugged into both graphics cards, the 6 pin power connectors are in both cards, and I followed the steps of the tutorial. Any thoughts on why I can’t get the second graphics card working?

      • Try the following commands:


        sudo aticonfig --initial
        sudo aticonfig --adapter=ALL --initial

        And then reboot

        This works for me when I’m adding an additional card. Once you are able to mine with both cards, try disconnecting the second monitor and see if it still mines on both cards after a reboot. If it doesn’t, try adding resistors as mentioned in some of the other comments.

      • Thanks for the speedy response. I had tried that a couple of times, but I removed the xconfig file in order to start from scratch and the commands worked.

        This is outside the scope of this tutorial, but the output to the second monitor is just a gray screen. Any thoughts on why I wouldn’t see the desktops on both monitors? Not a big deal, I bought the second card for mining.

        Thanks again for your help.

      • Glad you got it going. I’m sorry, I don’t have an answer for the gray screen… I had the same issue and ignored it too since I was able to mine.

      • Check /etc/X11/xorg.conf to be sure that both cards are listed as devices. “sudo aticonfig –initial” usually only adds one, giving you something like this in xorg.conf:

        —————BEGIN-QUOTE——————
        Section “Device”
        Identifier “aticonfig-Device[0]-0″
        Driver “fglrx”
        BusID “PCI:1:0:0″
        EndSection
        —————END-QUOTE———————

        Run “sudo aticonfig –adapter=ALL –initial” which should add both:

        —————BEGIN-QUOTE——————
        Section “Device”
        Identifier “aticonfig-Device[0]-0″
        Driver “fglrx”
        BusID “PCI:1:0:0″
        EndSection

        Section “Device”
        Identifier “aticonfig-Device[1]-0″
        Driver “fglrx”
        BusID “PCI:2:0:0″
        EndSection
        —————END-QUOTE———————

        If you want to create the entry by hand “lspci | grep VGA” will give you the PCI addresses:

        —————BEGIN-QUOTE——————
        01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Tahiti PRO [Radeon HD 7950]
        02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Tahiti PRO [Radeon HD 7950]
        —————END-QUOTE———————

  2. I get the error -Wall: command not found, when running CFLAGS=”-O2 -Wall -march=native -I /opt/AMDAPP/include/” LDFLAGS=”-L/opt/AMDAPP/lib/x86″ ./configure

    any ideas? thanks.
    Also this guide was really usefull so if you want bitcoin donations put an address to send to :)

  3. i get the error gpu 0 invalid nonce HW error when running cg.sh, how would i get this to work if my system has 1 7950 and 1 5850 ?

    • I don’t know the answer. However, aren’t drivers for the 5xxx series different than drivers for the 7xxx series? Have you tried only one card at a time and see if problem persists with only one of these two cards? Just some thoughts…

    • I also get the invalid nonce – HW error
      I am running one 6850. I figured it was a problem was the hardware as the card was taken from my gaming machine and the other components scavenged to make a mining machine. I am also using a USB stick instead of hard drive.

      I tried removing and re-installing various versions of ati drivers but didn’t have any effect.

      • I’m sorry, I don’t know the answer. I’ve installed several rigs using this process, no issues. Perhaps some of the posts on Bitcoin Talk might help.

      • I was getting the invalid nonce error with a 5870. I uninstalled the Ubuntu fglrx packages, rebooted, installed the AMD 13.1 drivers, rebooted again, reinstalled the APP SDK, rebooted again, and then downloaded+built the cgminer 2.11.4 tarball (instead of the latest git checkout). One or all of those steps fixed the problem.

  4. I have multiple GPU’s and when I run cgminer with only one GPU, it utilizes 100% GPU but when I use both GPU’s, GPU utilization drops and the hash rate fluctuates. Not sure what the issue is.

  5. I think that I followed all of the steps, but I keep on getting this error while trying to start cgminer:
    ./cgminer: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory

    What should I do?

  6. I got cgminer up and running when I first installed it. After rebooting my machine, upon starting up cgminer, my computer completely freezes. I have a configuration script that I am using, so I tried to start without and it still freezes. Any thoughts?

    • I ran cgminer with -D -T –verbose and my computer freezes after:

      Popping ping in miner thread
      Popping work from get queue to get work

      Then the computer freezes.

    • Maybe try lowering settings and increasing litte-by-litte from there. Try, for example, lowering intensity, and maybe powertune? Check out Bitcoin talk forums. Some people have posted their settings. Also, the docs for cgminer… Here’s what’s inside my sh file at the moment:

      ./cgminer
      -o [pool:port] -u [username.worker] -p [password]
      -o [pool:port] -u [username.worker] -p [password]
      -o [pool:port] -u [username.worker] -p [password]
      -o [pool:port] -u [username.worker] -p [password]
      -I 9
      –gpu-powertune 20
      –auto-gpu
      –auto-fan
      –gpu-engine 800-1125
      –gpu-fan 40-100
      –temp-target 70
      –temp-overheat 82
      –gpu-memdiff -150

      Explanation:
      1. I use several pools to keep mining when my preferred pool is down.

      2. I’m trying to keep the cards below 82C. As far as I know, the settings I have will adjust for these targets.

      3. I’m not sure if auto-fan and auto-gpu interferes or superseeds the other target settings. But everything has been running 24/7 for weeks.

      All my GPUs report between 69C to 75C range in CGMiner at the moment. They are in a garage, so it’s getting hot but no problems so far. All machines have 2 GPU cards each. I haven’t tried to add more GPUs than that yet. I used PVC blumbing for cases so they are totally open. I followed the design measurements some other miners use for making open case rigs with aluminum extrusions but the aluminum cases are more expensive. 3/4 inch plumbing cost me less than 25$ at the hardware store (per rig) for all the pipe and fittings. Very easy to assemble, cut, drill with a hack saw and a Philips screwdriver.

      Also, I don’t mine with my personal computer. The machines I mine with are dedicated to that task only. I don’t use them for anything else. They only have 7950s and 7970s. When I was mining with my personal computer, I started getting random freezes while playing World of Warcraft, (mining turned off). I finally fixed that by re-installing drivers, and re-seating the GPU card and blowing away dust with compressed air. Not sure what fixed it, but I stoped mining with my main machine altogether. My wife still mines with her computer on a 7970 but Aion doesn’t run anymore. It freezes solid during load. Not sure why. Mining still works fine. I have no proof that cgminer is the cause of the Aion freeze. I’ll have to troubleshoot as soon as I have a chance. It’s spring. The yard and garden planting takes all my free time. ha!

  7. Well the new cgminer just won’t work with most 5xxx series cards. I have managed to get em working either using diablo or phoenix 2 with BFI_INT disabled, so I am guessing that BFI_INT patching is the problem. No way to turn it off in cgminer though. If I manage to build the sources I might try searching for that (if that is even the problem).

  8. Hope some can help, I have 2 7970 + 5750 all mining ok using phoenix, i want to use cgminer but when i start it it shows 100% discards, no accepts, Im getting approx. 980Mhs. using 3 pools on balanced setting.

    I have connections to all pools and no logon errors, it just doesnt show any accepts.

    Thanks
    Tony

    • What’s the full command-line you’re running? Have you tried one card at a time? If you send me one of the 7970s I promise I’ll use it to help you get the other one working. ;-)

  9. Pingback: Minning Bitcoin on linux server

  10. Thank you. I think that I am almost there but I am stuck.

    I get here:
    STEP 12: Testing

    export DISPLAY=:0
    export GPU_USE_SYNC_OBJECTS=1
    ./cgminer -n

    and I am expecting the readout in the tutorial about the gpu but I get :

    alandwer@7970:~/cgminer$ ./cgminer -n
    bash: ./cgminer: No such file or directory
    alandwer@7970:~/cgminer$ 

    The one difference is that I ran this command in my 64 bit environment.

    Continue with the next command (it is formatted for a 32 bit Ubuntu environment):

  11. It looks like step 11 is missing the command “make” which compiles cgminer. You can also run “make install” which will compile it and install the binary in /usr/local/bin. Once that’s done make sure /usr/local/bin is in your PATH (run “echo $PATH” to check) and you’ll be able to run cgminer no matter what directory you’re in.

  12. Ah, I see it now. In case it helps when I’m documenting scripts I usually preface commands with a ‘$’ and, if possible, surround the mock-up terminal window with a box to make it look something like a xterm or putty session depending on the audience.

    BTW, I’ve scripted a lot of the installation as well as a few other things like benchmarking GPUs to find the best settings, upgrading cgminer, checking on miners with the API, generating config files for multiple miners, etc. I’ve considered cleaning them up and posting them on a blog somewhere – think there would be any interest?

  13. Very nice guide…thanks very much!

    What is the difference between GRUB_TIMEOUT=10
    and
    GRUB_TIMEOUT=”10″

    • Thanks. GRUB_TIMEOUT is supposed to set the amount of time the grub menu is displayed before the default boot option is loaded. As for GRUB_TIMEOUT="10" instead of GRUB_TIMEOUT=10, it’s a fix I found while attempting to build my first mining rig. It’s supposed to resolve a problem where the computer just sits and waits at the grub menu until the enter key is pressed.

  14. hello, i followed your guide but i can0t get cgminer to work.. i get a Segmentation fault (core dumped) everytime i try to launch cgminer -n
    any idea what i’am doing wrong?

    • Hi, Are you talking about the CPU or the video cards? The AMD concerns are for the video cards, in particular the Radeon HD 7xxx series. If you are installing different types of cards that need different drivers, you will have to research what drivers they need. It would be easier to install cards that are similar, that is, that can use the same drivers.

  15. I’ve hit a wall! I followed the rules to the letter and when I ran the autogen command, it looked nothing like what you posted, this is what I got:
    Running autoreconf -if…
    ./autogen.sh: 12: ./autogen.sh: libtoolize: not found
    Can’t exec “libtoolize”: No such file or directory at /usr/bin/autoreconf line 196.
    Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 196.
    configure.ac:39: error: possibly undefined macro: AC_PROG_LIBTOOL
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation.
    autoreconf: /usr/bin/autoconf failed with exit status: 1
    Configuring…
    checking build system type… x86_64-unknown-linux-gnu
    checking host system type… x86_64-unknown-linux-gnu
    checking target system type… x86_64-unknown-linux-gnu
    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether build environment is sane… yes
    checking for a thread-safe mkdir -p… /bin/mkdir -p
    checking for gawk… no
    checking for mawk… mawk
    checking whether make sets $(MAKE)… yes
    checking whether make supports nested variables… yes
    checking for style of include used by make… GNU
    checking for gcc… gcc
    checking whether the C compiler works… yes
    checking for C compiler default output file name… a.out
    checking for suffix of executables…
    checking whether we are cross compiling… no
    checking for suffix of object files… o
    checking whether we are using the GNU C compiler… yes
    checking whether gcc accepts -g… yes
    checking for gcc option to accept ISO C89… none needed
    checking dependency style of gcc… gcc3
    checking how to run the C preprocessor… gcc -E
    checking for grep that handles long lines and -e… /bin/grep
    checking for egrep… /bin/grep -E
    checking for ANSI C header files… yes
    checking for sys/types.h… yes
    checking for sys/stat.h… yes
    checking for stdlib.h… yes
    checking for string.h… yes
    checking for memory.h… yes
    checking for strings.h… yes
    checking for inttypes.h… yes
    checking for stdint.h… yes
    checking for unistd.h… yes
    checking minix/config.h usability… no
    checking minix/config.h presence… no
    checking for minix/config.h… no
    checking whether it is safe to define __EXTENSIONS__… yes
    checking whether to enable maintainer-specific portions of Makefiles… no
    checking for gcc… (cached) gcc
    checking whether we are using the GNU C compiler… (cached) yes
    checking whether gcc accepts -g… (cached) yes
    checking for gcc option to accept ISO C89… (cached) none needed
    checking dependency style of gcc… (cached) gcc3
    checking for ranlib… ranlib
    checking whether gcc needs -traditional… no
    checking whether gcc and cc understand -c and -o together… yes
    /home/tgurau/cgminer/configure: line 5848: syntax error near unexpected token `disable-shared’
    /home/tgurau/cgminer/configure: line 5848: `LT_INIT(disable-shared)’
    tgurau@TMiner001:~/cgminer$ $ CFLAGS=”-O2 -Wall -march=native -I /opt/AMDAPP/include/” LDFLAGS=”-L/opt/AMDAPP/lib/x86_64″ ./configure
    $: command not found
    I continued following directions but I think my problem starts right here (or at least, this is where I noticed something different from what you posted).

    I am currently trying to run 5 GPU’s and a BFL miner.
    Thanks for the help in advance.

  16. similar to above command I’m stuck here:
    Can’t exec “libtoolize”: No such file or directory at /usr/bin/autoreconf line 196.
    Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 196.
    configure.ac:39: error: possibly undefined macro: AC_PROG_LIBTOOL
    If this token and others are legitimate, please use m4_pattern_allow.
    See the Autoconf documentation.
    autoreconf: /usr/bin/autoconf failed with exit status: 1
    Configuring…
    ./autogen.sh: 10: ./autogen.sh: /home/pseudozach/cgminer/configure: not found

  17. I followed all the steps but after the command autogen.sh appears:
    Configuration Options Summary:

    libcurl(GBT+getwork).: Enabled: -lcurl
    curses.TUI………..: FOUND: -lncurses

    Avalon.ASICs………: Disabled
    BlackArrow.ASICs…..: Disabled
    BFL.ASICs…………: Disabled
    BitForce.FPGAs…….: Disabled
    BitFury.ASICs……..: Disabled
    Hashfast.ASICs…….: Disabled
    Icarus.ASICs/FPGAs…: Disabled
    Klondike.ASICs…….: Disabled
    KnC.ASICs…………: Disabled
    ModMiner.FPGAs…….: Disabled
    configure: error: No mining configured in

  18. Thanks for the how-to, the most clearly I ever read. And here are some updates I met:

    1. To get cgminer 3.7.2, the last version supporting gpu-mining, try this guy’s git space: git://github.com/esemwy/lcminer.git lcminer

    2. Only default FGLRX driver sometimes is not enough. I also install Amd catalyst driver, the latest version 13.11, from Amd website. The webpage below provide how-to: http://wiki.cchtml.com/index.php/Ubuntu_Precise_Installation_Guide#Installing_Catalyst_Manually_.28from_AMD.2FATI.27s_site.29

    3. When you run ./autogen.sh in cgminer folder, add –enable-opencl –enable-scrypt

    Good luck mining

  19. Excellent post, many thanks.
    A few problems I am having if you have time to help?
    1. Both the autogen and configure gave
    “OpenCL……………: Detection overrided. GPU mining support DISABLED
    configure: error: No mining configured in”
    unless I added “–enable-opencl”?
    2. After running configure, the “cgminer” file was not present, thus I had to “make install” it.
    3. After doing that, running via “cgminer -n” gives :
    [2014-02-19 01:13:29] CL Platform 0 vendor: Advanced Micro Devices, Inc.
    [2014-02-19 01:13:29] CL Platform 0 name: AMD Accelerated Parallel Processing
    [2014-02-19 01:13:29] CL Platform 0 version: OpenCL 1.2 AMD-APP (1214.3)
    [2014-02-19 01:13:29] Error -1: Getting Device IDs (num)
    [2014-02-19 01:13:29] clDevicesNum returned error, no GPUs usable
    [2014-02-19 01:13:29] 0 GPU devices max detected

    lspci | grep VGA
    01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii PRO [Radeon R9 290]

    • How are you running cgminer? Simplest is to log on to the console as yourself. If you’re ssh’ed in try to run as root after setting these environment variables:

      export DISPLAY=:0 GPU_MAX_ALLOC_PERCENT=100 GPU_USE_SYNC_OBJECTS=1

  20. Hi, do we have to install proprietary drivers ? If so, do you know if it’s possible to use fglrx driver with cgminer and native ones for others jobs (I only use XBMC multimedia center on this PC).
    Thanks.

    • You can only have one driver loaded at a time. I would try each of the drivers to see how they behave with cgminer and XMBC.

      • Native xorg radeon drivers (3.13 kernel and MesaGL 10) doesn’t work : cgminer doesn’t find any GPU.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s