Install CGMINER 3.7.2 in Ubuntu

Install CGMINER Latest - Ubuntu Bitcoin is a decentralized digital currency based on an open-source protocol that was created by a pseudonymous developer named Satoshi Nakamoto. One bitcoin is divided into 100-million smaller units called satoshis. There is a hard limit of 21-million bitcoins in total, which are released at a scheduled rate until the year 2140.

Internationally, bitcoins can be exchanged by personal computer directly through a wallet file or a website. They can also be exchanged through physical banknotes and coins.

Unlike most currencies, bitcoin does not rely on a central issuer, like a central bank or government. Instead, bitcoin uses a transaction log across a peer-to-peer computer network to record transactions, verify them and prevent double spending. The verification process awards effective bitcoin nodes or “bitcoin miners” with a limited release of bitcoins and transaction fees (if any). This process requires intense computing power, electricity and significant investment as it solves hashes through bruteforce to verify transactions and add them to the network’s transaction log.

As of January 2013, bitcoin is the most widely used alternative currency. All bitcoins converted at the current market price would be worth over 200 million US dollars.

Note: this example is for AMD/ATI video cards and may only work for those listed on the hardware list https://en.bitcoin.it/wiki/Mining_hardware_comparison. So you may wish to check for your hardware before you begin.

If you simply wish to upgrade your cgminer skip to step #19.

Install CGMINER 3.7.2 – Ubuntu

1. Install the dependencies

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

2. List your ATI/AMD cards so you can see them

$ sudo aticonfig --lsa

The output should be similar to this.

$ sudo aticonfig --lsa
[sudo] password for user: 
* 0. 01:00.0 ATI Radeon HD 5700 Series

* - Default adapter

3. Configure your card/’s

$ sudo aticonfig --adapter=all --initial

4. Reboot to make changes take effect

$ sudo reboot

5. Check to see if cards are accessible

$ sudo aticonfig --adapter=all --odgt

The output should be similar to this

$ sudo aticonfig --adapter=all --odgt

Adapter 0 - ATI Radeon HD 5700 Series
            Sensor 0: Temperature - 67.00 C

6. Enter tmp directory

$ cd /tmp

7. Become Super User

$ sudo su

Enter Password for root.

8. Download AMD-APP-SDK

Note: By downloading this file you autocratically agree to the AMD License Agreement here http://developer.amd.com/amd-license-agreement/
For 32bit only

# wget http://developer.amd.com/wordpress/media/2012/11/AMD-APP-SDK-v2.8-lnx32.tgz

For 64bit only

# wget http://developer.amd.com/wordpress/media/2012/11/AMD-APP-SDK-v2.8-lnx64.tgz

9. Untar the file

For 32bit only

# tar -xvzf AMD-APP-SDK-v2.8-lnx32.tgz

This will give you two more .tar files.
a. AMD-APP-SDK-v2.8-RC-lnx32.tgz
b. icd-registration.tgz

For 64bit only

# tar -xvzf AMD-APP-SDK-v2.8-lnx64.tgz

This will give you two more .tar files.
a. AMD-APP-SDK-v2.8-RC-lnx64.tgz
b. icd-registration.tgz

10. Untar AMD-APP-SDK-v2.8-RC file

For 32bit only

# tar -xvzf AMD-APP-SDK-v2.8-RC-lnx32.tgz

For 64bit only

# tar -xvzf AMD-APP-SDK-v2.8-RC-lnx64.tgz

11. Enter the new directory

For 32bit only

# cd AMD-APP-SDK-v2.8-RC-lnx32

For 64bit only

# cd AMD-APP-SDK-v2.8-RC-lnx64

12. Copy Library Files.

For 32bit only

# cp -pv lib/x86/* /usr/lib/

For 64bit only

# cp -pv lib/x86_64/* /usr/lib/

13. Copy the include files to your hard drive

For Eather 32bit or 64bit

# rsync -avl include/CL/ /usr/include/CL/

14. Navigate back to /tmp directory

# cd ..

15. Untar icd-registration.tgz

# tar -xvzf icd-registration.tgz

16. Copy OpenCL files to your hard drive

# rsync -avl etc/OpenCL/ /etc/OpenCL/

17. Set up the symbolic links

# ldconfig

18. Reboot your system.

# reboot

You should now have OpenCL enabled on your system

19. Download CGMINER

$ wget http://ck.kolivas.org/apps/cgminer/old/3.7/cgminer-3.7.2.tar.bz2

20. Download ADL_SDK_5.0

This will add ADL support for cgminer

$ wget http://files.distrogeeks.com/ADL_SDK_5.0.zip

21. Unzip ADL_SDK_5.0

$ unzip ADL_SDK_5.0

22. Untar CGMiner

$ tar xvjf cgminer-3.7.2.tar.bz2

23. Enter cgminer-master Directory

$ cd cgminer-3.7.2

24. Copy ADL_SDK include files

$ cp ../include/* ADL_SDK/

25. Run autogen.sh script

$ ./autogen.sh --enable-scrypt

You should get this……

Configuration Options Summary:

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

  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 -lOpenCL    -lm  

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

26. Install CGMiner

$ sudo make install

27. Exit Super User

$ exit

28. Navigate back to root directory

$ cd

29. Start CGMiner

$ cgminer

Your should get this…

 

 

 

 

 [2013-02-10 02:01:42] Started cgminer 2.10.4
 [2013-02-10 02:01:43] Need to specify at least one pool server.
Input server details.
URL: 

 

 

Congratulations you have installed CGMINER in Ubuntu

30. Adding a mining pool

If you was thinking about mining bitcoins on your own, with limited GPU power, this is like playing the lottery every week. You will play many times, but the chances of winning are very small. So Unless you have a big supercomputer or something similar, the chances of ever obtaining bitcoins are even less than playing the lottery, extremely slim in fact.

Mining pools will allow you to obtain bitcoins by combining forces with other miners in one pool. When you participate, you earn bitcoins in proportion to how much GPU power you submit.

There are several mining pools out there and every one is different in its own way, larger pools payout faster with a smaller amount of bitcoins, where smaller pools will need more time to payout with a much larger amount of bitcoins. Here is a list of Bitcoin mining pools for you, this is up to you to decide where to start, We created a Distrogeeks mining pool for you to get your feet wet in.

If you like, you can Use this link to register and join the distrogeeks mining pool which we created to help you get started http://DistroGeeks.triplemining.com this is a good place to get started, you can even start your own mini pool there if you like. This will get you going until you do some more research on the many bitcoin mining pools that are out there.

Now you need a bitcoin wallet to store all them bitcoins in. Your in luck, you can read all about wallets in this post here. Install Bitcoin-QT in Ubuntu

Please, feel free to rate this post or comment below.
 

External Links

• Wiki http://en.wikipedia.org/wiki/Bitcoin
• AMD-APP-SDK http://developer.amd.com/tools/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/
• ADL-SDK http://developer.amd.com/tools/graphics-development/display-library-adl-sdk/
• CGMiner https://github.com/ckolivas/cgminer
• Bitcoin Forum https://bitcointalk.org/index.php
• Distrogeeks Pool http://DistroGeeks.triplemining.com

  • Pingback: Bitcoin | Pearltrees

  • Jon Daniels

    Which version of ubuntu are you using for this install?

  • Celtic

    This guide works perfect!! Thank you! How do I send Litecoins your way for putting this together?

  • Carlos

    Please help!
    Step 16 won’t load… I have tried different browsers on different OS’s, no go.
    Any way you can e-mail the step or something?

    Please get back, ASAP, thanks :D

    • Wooops

      Oh… Herp Derp…
      The layout is just funny, my bad.

    • http://www.distrogeeks.com/ DistroGeeks

      just a thought but make sure you did not skip step 7, you will need to have root privlidges to copyt the files in step 16. hope this helps, if not you can email me at milesdyson [@] distrogeeks if you still have trouble. with out more info like the error your getting or the system your using i cant realy do much.

  • jp

    Dude, thank you!

  • Joel

    Thanks for the great post, this worked perfectly on xubuntu 13.04!

  • devnull

    Thanks man

  • Al

    Thank you, It works until I get here:
    cp ../include/* ADL_SDK/

    Then I get:
    cp: target `ADL_SDK/’ is not a directory

    • anonymous

      Did you ever solve this? I have the same issue.

      • Al

        No, I have tried for a week. I think that something is wrong with the path but I haven’t been able to fix it. I did email the author and am hoping for an update. I will post if I can figure it out. It worked perfectly for me in August but something seems to have changed.

        • anonymous

          Thank you I was thinking it was just me I assuem there’s been a change in ubuntu.

          • andrelf

            cgminer stopped to support GPU mining. So, just download an older version of cgminer (e.g. 3.6.0) and it will work.

          • Al

            That is not the issue, but thanks. GPU mining is supported up to cgminer 3.72. This is not working because of a path problem I think. Step 24: results in =>

            cp: target `ADL_SDK/’ is not a directory

          • Billy Williams

            Download it from ati site and move it from your download dir. It needs to be in you home folder

          • Al

            Thank you, I shall try that.

    • asd

      Just make ADL_SDK directory within cgminer copy all what is in include dir
      it is all in README file

      • Al

        Thanks for the tip, will try it.

    • http://www.distrogeeks.com MilesDyson

      ok Al i have went threw and made sure every thing is working again. give a try now. cgminer has changed a lot and had to link to an older version that supports GPU mining.. this guide should work once again.

      • Al

        Thank you very much, I shall give it a try again.

  • anonymous

    cgminer-master# cp ../include/* ADL_SDK/
    cp: target `ADL_SDK/’ is not a directory

    step 24 tried redoing this over and over same issue everytime.

  • utuxia

    i don’t have aticonfig

  • bcs

    The file on step 20 is corrupt, unzip doesn’t recognize it as a valid zip file.

  • Billy Williams

    All you have to do is download adl-sdk from ati site and move it to you home folder. It will work, But that one guy was right when he said, to use older miner. I have had problems with 3.7 for awhile and I now use 3.6. I even use this on my windows builds. Are you familar with linux builds.

  • Paul

    Excellent guide! Thank you very much, all works perfectly. For those that it is not working, perhaps you need to be a superuser first, sudo su, and of course think a little bit what the instructions actually mean.

    Anyway, thanks again for your help

  • http://www.distrogeeks.com MilesDyson

    ok i fixed a few links and all should be working now. please let me know.

  • Harrison Adrian

    How do you configure…. ASCI USB erupters…???? Run both ATI Card and USB

  • Allan

    Hello Miles, i followed all the steps and everything worked great till the end of step 25.! Output in terminal shows: Configuration Options Summary:

    libcurl(GBT+getwork).: Enabled: -lcurl
    curses.TUI………..: FOUND: -lncurses
    OpenCL……………: Detection overrided. GPU mining support DISABLED
    configure: error: No mining configured in
    doha@doha-coolminer:~/cgminer-3.7.2$

    Any suggestions? Looking forward to read from you
    Greetz
    Allan

  • Allan

    Hello Miles, i followed all the steps and everything worked great
    till the end of step 25.! Output in terminal shows: Configuration
    Options Summary:

    libcurl(GBT+getwork).: Enabled: -lcurl
    curses.TUI………..: FOUND: -lncurses
    OpenCL……………: Detection overrided. GPU mining support DISABLED
    configure: error: No mining configured in
    doha@doha-coolminer:~/cgminer-3.7.2$

    Any suggestions? Looking forward to read from you
    Greetz
    Allan

  • alex colpitts

    Step 25 doesn’t work for me. I just get back “file or directory does no exist”. (Ubuntu 14.04)