Foreverrising Blog

April 16, 2011

BitCoin Mining and Ubuntu 10.10 – ATI Radeon 5XXX/6XXX

Filed under: Software — Tags: , , , , , , , , , , , , — foreverrising @ 10:47 pm

As promised, here’s a how-to I wrote after finding several how-to’s that failed. It took me a good part of a week to get this graphics card to mine BitCoins in Ubuntu. I originally got this card mining in Windows 7 first. Quick specs for the record:

AMD Athlon II x4 630

7 GB DDR3 1333MHz RAM

ATI Radeon 5770 graphics card

Ubuntu 10.10 64-bit

Here we go. Before we begin, see if Ubuntu detects your graphics card.

lspci -v

You should see “Display controller: ATI Technologies Inc Device.” If you don’t, shut down to open up your computer and reseat your card, and make sure you’ve plugged in the cable from the power supply. It’s easy to miss if you’re a newbie.

Next, if you have the proprietary drivers enabled, you’ll have to disable them through System > Administration > Additional Drivers. After you disable them, you’ll have to reboot.

Enable Source Code in Ubuntu. System > Administration > Synaptic Package Manager. Settings > Repositories > ‘Ubuntu’ tab. Check the checkmark and then exit out of Synaptic.

Open a terminal. Then update your packages.

sudo apt-get update

Then install libqtgui4

sudo apt-get install libqtgui4

Next, you’ll attempt to build your proprietary drivers. You need to download from AMD’s Support site.

Go back to your terminal window, and navigate to the directory where you downloaded that package.

cd [path to download directory]

Then run the file.

sudo sh

That will kick off the graphical installer. Select “Install driver 8.831.2 on X.Org 6.9 or later 64-bit.” Then follow the rest of the defaults. Refer to your terminal window to see if it completed successfully. If not, you may have unmet dependancies which are required to build the drivers. If that is the case, open Synaptic Package Manager and install the needed packages and run the last line again.

After that, I was able to see the drivers installed by running this command.


It should return your devices information. If it displays “Command not found,” you’ll have to troubleshoot your driver install.


You’ll have to install three more packages after this. Download the ATI SDK from AMD package here. Then run these.

cd /opt

sudo mv [path to download directory]/ati-stream-sdk-v2.1-lnx64.tgz /opt

sudo tar xfzv ati-stream-sdk-v2.1-lnx64.tgz

Download icd-registration.tgz, then run

cd /

sudo mv [path to download directory]/icd-registration.tgz /

sudo tar xfzv icd-registration.tgz

This returned a couple errors, but nonetheless was effective. You’ll be able to tell by running this.

ls /etc/OpenCL/vendors/

And making sure you see the files atiocl32.icd and atiocl64.icd. Next, run this. You may need to add it to your .bashrc file, but I did not need to.

export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH

Now run these next couple of lines. They should output your card(s).

cd /opt/ati-stream-sdk-v2.1-lnx64/samples/opencl/bin/x86_64


Now you’ll have to download and install PyOpenCL, and it’s dependencies. Run these.


tar zxfv pyopencl-0.92.tar.gz

sudo apt-get install g++ libboost-all-dev subversion git-core python-numpy

cd pyopencl-0.92

./ --cl-inc-dir=/opt/ati-stream-sdk-v2.1-lnx64/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64


sudo make install

Install BitCoin

sudo apt-add-repository ppa:stretch/bitcoin

sudo apt-get install bitcoin

Now download and install python-jsonrpc

svn checkout

cd python-jsonrpc

sudo python install

Then download my favorite miner from, and extract it. Then sign up for an account. This username and password will be used in your miner.

Now open up a terminal window and navigate to the script.

cd [path to where you extracted]/poclbm-mod.03.24.2011/sources

And finally

python -d 0 -v -w 128 --user=[your bitcoinpool username] --pass=[your bitcoinpool password]

Then get the Phoenix Miner, and check out the pools to see which one seems best for you. I currently mine at now, since the difficulty increase at has reduced the frequency of solved blocks.

Once you’ve got that going, try overclocking your ATI card in Ubuntu.

I accept donations @ 1HXrbVT3WRqk6rHTPKKJ9ppoFbsYjmjTqX if this worked for you. If it didn’t, feel free to send me a comment. I’d like to get everybody up and running with a good GPU!

Also, if you have any feedback, please do.




  1. Hmm. It appears that I have a different sdk file than you. I can make the package, but there is no “make install” and no OpenCL folder in /opt/. If you extract the tarball in /opt/ you only get /opt/ati-stream-sdk-v2.1-lnx64, and inside that folder there is no OpenCL either. Not sure what I’m missing.

    Comment by Ault Park Sunrise — April 23, 2011 @ 12:42 pm

    • I missed a step directly after that. I’ll double check that later tonight. I want to say I ran dpkg -i on them but I’ll have to make sure once I get to that pc.

      Comment by foreverrising — April 23, 2011 @ 1:23 pm

  2. I had a problem with icd registration. I solved it by replacing the ‘ati’ for ‘amd’ in icd-file filename and in its content.
    Thats I have an ‘amdocl64.icd’ file with ‘’ string inside it.

    Comment by Alexander Sidko — April 29, 2011 @ 4:59 am

    • Please let me know what commands you ran so I can see if I need to change anything. I updated the commands above since I just noticed I omitted sudo and mv commands.

      Also, If anyone requests I will do a write up for ATI Radeon and Ubuntu 11.04 mining.

      Comment by foreverrising — April 29, 2011 @ 8:57 am

      • Am trying to run this under Ubuntu 11.04 but cannot get the driver to run, fglrxinfo gives a segmentation fault with no other info. From other research I’ve done it seems that 11.04 has changed the ATI support status, would appreciate any tips! Should I install the fglrx installer from within Natty’s repo? I have three 5850 cards.

        Comment by Stephen West — June 27, 2011 @ 4:44 pm

      • This is stolen from the thread at

        Load a fresh Ubuntu Natty 11.04 64-bit Desktop with the latest updates and log into system with a user that has sudo permissions.
        sudo apt-get remove nvidia-common
        sudo apt-get install libqtgui4

        Load python and other development tools
        cd ~
        sudo apt-get install python-setuptools python-numpy subversion g++ libboost-all-dev

        Download and install ATI Driver 11.5 for Linux 64bit.
        cd ~
        sudo sh –buildpkg Ubuntu/natty
        sudo dpkg -i *.deb
        sudo apt-get -f install
        sudo aticonfig -f –initial –adapter=all
        sudo reboot

        Verify that the ATI Driver is setup and running
        cd ~
        DISPLAY=:0 sudo fglrxinfo

        Download and install bitcoin
        cd ~
        tar xzvf bitcoin-0.3.21-linux.tar.gz
        chmod +x bitcoin-0.3.21/bin/64/bitcoin*
        mkdir -p ~/.bitcoin
        echo “rpcuser=user” >> ~/.bitcoin/bitcoin.conf
        echo “rpcpassword=password” >> ~/.bitcoin/bitcoin.conf

        Install python-jsonrpc
        cd ~
        svn checkout
        cd python-jsonrpc/
        sudo python install

        Download and install AMD APP SDK 2.4 for Linux 64bit.
        cd ~
        tar xvzf AMD-APP-SDK-v2.4-lnx64.tgz
        echo export AMDAPPSDKROOT=${HOME}/AMD-APP-SDK-v2.4-lnx64/ >> ~/.bashrc
        echo export AMDAPPSDKSAMPLESROOT=${HOME}/AMD-APP-SDK-v2.4-lnx64/ >> ~/.bashrc
        echo ‘export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH}’ >> ~/.bashrc
        source ~/.bashrc
        cd /
        sudo tar xfz $AMDAPPSDKROOT/icd-registration.tgz

        Download, Compile and Install pyopencl-0.92
        cd ~
        tar xzvf pyopencl-0.92.tar.gz
        cd pyopencl-0.92
        ./ –cl-inc-dir=${AMDAPPSDKROOT}include –cl-lib-dir=${AMDAPPSDKROOT}lib/x86_64
        sudo make install

        Comment by foreverrising — June 28, 2011 @ 12:49 am

  3. hi. i did everything (worked) and in the final step when i wanted to start the miner an error came up:

    Traceback (most recent call last):
    File "", line 3, in
    import pyopencl as cl
    File "/usr/local/lib/python2.6/dist-packages/pyopencl-0.92-py2.6-linux-i686.egg/pyopencl/", line 3, in
    import pyopencl._cl as _cl
    ImportError: cannot open shared object file: No such file or directory

    where should i look for a solution?


    Comment by pitthepro — May 1, 2011 @ 3:48 am

    • Are you installing these on a 32 bit version?

      Comment by foreverrising — May 1, 2011 @ 8:56 am

      • Great tutorial, thanks a bunch. I’m having this same problem and I am installing on a 32 bit machine. Any idea what’s wrong?

        Comment by Mason — May 22, 2011 @ 9:03 pm

      • It all depends on what happens when you run ./CLInfo. For me, I had to verify the PATH was exactly where it should be. However if you didn’t get as far as installing the drivers, make sure you fulfilled the dependencies correctly.

        Comment by foreverrising — May 22, 2011 @ 9:31 pm

    • Traceback (most recent call last):
      File “”, line 3, in
      import pyopencl as cl
      File “/usr/local/lib/python2.6/dist-packages/pyopencl-0.92-py2.6-linux-x86_64.egg/pyopencl/”, line 3, in
      import pyopencl._cl as _cl

      Same Problem here.

      Running it on Ubuntu 10.04 x64.

      What can I do to solve that?

      Comment by mayleen — May 31, 2011 @ 12:28 pm

      • If flgrxinfo does not return the correct card (Radeon 5770 is named Juniper), then try the driver install again.
        If ./CLinfo returns nothing then your path is incorrect.
        Ensure you are running the miner from /sources.

        Reply with a copy and paste of the ENTIRE terminal text for a better look at it (omit your username and password). Also, post the results of $…/sources python

        I’ll be doing a writeup for 10.10 x64 and the newest drivers/stream app and a better miner most likely tonight or tomorrow.

        Comment by foreverrising — May 31, 2011 @ 12:41 pm

      • python -d 0 -v -w 128 –user=MYUSERNAME –pass=MYPASSWORD
        Traceback (most recent call last):
        File “”, line 3, in
        import pyopencl as cl
        File “/usr/local/lib/python2.6/dist-packages/pyopencl-0.92-py2.6-linux-x86_64.egg/pyopencl/”, line 3, in
        import pyopencl._cl as _cl
        ImportError: cannot open shared object file: No such file or directory

        I am Running it right out of the sources folder that comes with the miner.

        The drivers are installed properly. fglrxinfo detects my 4770.

        So I am still a wee bit confused why it doesnt work out. Friend of mine got it running and we basically did the same thing and have the same OS and HW.

        Comment by mayleen — May 31, 2011 @ 2:28 pm

      • export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH
        Make sure this path is correct. In a terminal type:

        cd /opt

        And make sure your ati-stream-sdk-v2.1-lnx64 directory is there. If the directory is somewhere else, edit the path to the directory.

        It can’t find — and most likely it exists, but the path info is missing or incorrect. Am I safe in assuming the following lines return nothing? :

        cd /opt/ati-stream-sdk-v2.1-lnx64/samples/opencl/bin/x86_64
        ./CLInfo |grep CL_DEVICE_TYPE_GPU

        Comment by foreverrising — May 31, 2011 @ 4:22 pm

      • It works now.

        Can it possibly be that this was due to change of kernel? Cause I had a kernel update: The older 2.6.32-31 does work, while the newer -32 does not 😕

        Can it be that some of these modifications are kernel specific?

        Though your assumption is quite correct:
        running CLInfo in that directory returns:

        ./CLInfo: error while loading shared libraries: cannot open shared object file: No such file or directory

        So it runs, but I got even more confused 😀

        PS: Thank you very much for your assistance with this! You will get some Bitcoins from me as soon as I got them 😉

        Comment by mayleen — June 1, 2011 @ 2:01 pm

      • Actually, I’m not sure if there has been a kernel update since I’ve installed it, I can only verify that it did work a month ago 😐 Anyhow, I did end up installing and using catalyst 11.5 drivers with AMD APP SDK 2.4. I wanted to squeeze more out of my 6870 that I bought (under the assumption that the 6870 was superior to the 5870 which was incorrect), so I opted to try the phoenix miner. On my 6870 my rate went from 250MHash/s to 292MHash/s. On my windows xp box the miner has a ~20MHash/sec advantage.

        I know I shouldn’t make promises, but I am working on the writeup for that.

        Comment by foreverrising — June 1, 2011 @ 3:19 pm

      • I am quite sure that two issues came to cause the problem:

        First the Kernel issue (confirmed it – newer kernerl does not work, while older does; yet dont know why that is)

        export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH
        has to be run after any restart/logout. Guess that is a simple mistake of mine and I did not figure out where to add this to make it permanent.

        Anyways if you dont know already:
        It is a quite nice summary of what cards and CPUs can achieve. Though I always thought that the 6xxx series is just more energyefficient than the 5xxx is. Didnt know that it would make any change in performance, particularly I did not expect it to be slower. But according to that list it is in deed.

        Comparing my aged 4770 modell the only thing I really want to complain about is the loud cooling 😉
        Quite energy efficient even compared to the 5770.

        Comment by mayleen — June 2, 2011 @ 1:44 am

  4. Hi!

    You’re instructions are great! A ffew small changes were needed for me:

    1. I had to download and install bitcoin manually, the repo didn’t work for some reason.

    2. I had to change the -d 0 to -d 1 to work with my 5850.

    Also, do you know if you run one miner per device, or can one instance of poclbm-mod use multiple cards? I’ve got another 5850 on the way, and I was just curious.


    Comment by mashmac2 — May 12, 2011 @ 12:36 am

    • You would want to run one instance of poclbm-mod per device, specifying the correct device number (which is displayed when you run $python The repo worked for me about a month ago, but may have changed notw that Ubuntu 11.04 is out now. I’ll be attempting to configure 11.04 with my radeon card later tonight. Thank you for the feedback, I do appreciate it.

      Comment by foreverrising — May 12, 2011 @ 2:02 pm

    • I’m always happy to learn that language is less and less of a barrier in communcations today.

      Comment by foreverrising — May 27, 2011 @ 10:30 am

      • Well, yes and no. We Swedes are 9 million in the world – we need to learn other languages. But sure, Google Translate and the likes does a good enough work to get the message across … 🙂

        Comment by Fredrik Wendt — May 27, 2011 @ 3:34 pm

  5. Hi. With a clean Ubuntu Server 10.10 64-bit, apt-add-repository is not available. One need to install python-software-properties.
    After doing apt-add-repository, it’s also necessary to do apt-get update before apt (or aptitude) knows about the bitcoin package.

    Comment by Fredrik Wendt — May 26, 2011 @ 3:27 am

  6. Hi what kind of speed do you achieve with this setting (Mhashes/s)?

    Do you see a difference between ubuntu and windows? (with/without overclocking?)

    Cool stuff

    Comment by nasd — May 30, 2011 @ 9:07 am

    • With this getup I got 160MHash/sec in Windows 7 64-bit, and 170MHash/sec in Ubuntu– with the same driver versions (but both overclocked). In Windows XP Pro 32-bit, with Catalyst 11.5 and AMD APP SDK 2.4 and using the Phoenix miner with the phatk kernel, I’m able to achieve 170 MHash/sec with stock speed, 202MHash/sec with 960/600.

      I’ve since put an XFX Radeon 6870 into my machine that dual boots Windows 7 64 bit and Ubuntu 10.10 64-bit. In this setup, I can only get the best clock speeds in Windows 7. However, Ubuntu 10.10 trumps 7, at 292MHash/sec over Windows 7’s 270MHash/sec.

      Comment by foreverrising — May 30, 2011 @ 11:43 am

  7. Can you do a tutorial, based on this, on how to automatically launch bitcoin client and start mining after the system is rebooted?

    Maybe a start-up script?


    Comment by JL — June 4, 2011 @ 10:44 pm

  8. Bitcoin’s address changed, so it seems. Might want to update the code to,

    sudo apt-add-repository ppa:stretch/bitcoin
    sudo apt-get update
    sudo apt-get install bitcoin

    Comment by JL — June 5, 2011 @ 12:23 am

  9. I’m failing when compiling pyopencl — with /usr/bin/ld: cannot find -lOpenCL

    Comment by Nate — June 9, 2011 @ 8:07 pm

    • Check Synaptic package manager to see that the prerequisites are installed. It will be the packages like numby, et cetera, on the sudo apt-get install line of the how-to.

      Comment by foreverrising — June 10, 2011 @ 9:19 am

      • HI, I have tried several sites instructions over and over and still i get this error:

        /usr/bin/ld: skipping incompatible /opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/ when searching for -lOpenCL
        /usr/bin/ld: cannot find -lOpenCL

        When I run: /CLInfo |grep CL_DEVICE_TYPE_GPU

        i just get this:
        bash: ./CLInfo: cannot execute binary file

        Please help. I don’t get what I am doing wrong.


        Comment by psypher246 — July 4, 2011 @ 4:29 pm

      • What does fglrxinfo return?

        Comment by foreverrising — July 9, 2011 @ 8:33 pm

  10. Well I have my Ubuntu 10.04 minimal pendrive (no desktop) working and mining, most of it thanks to this guide. Now, I want to ask what the “bitcoin” app is used for. I mean, poclbm-mod do the work (I see it on my deepbit page) so what is the Bitcoin app (with GTK2 GUI) used for?

    Comment by Tabris — June 10, 2011 @ 1:29 am

    • From what I understand it builds on the “Generate Coins” function of BitCoin. Don’t quote me on that though.

      Comment by foreverrising — June 10, 2011 @ 9:23 am

      • So I don’t need to run it?

        Comment by Tabris — June 10, 2011 @ 4:48 pm

      • No, it would be there if you were going to run your own mining server.

        Comment by foreverrising — June 10, 2011 @ 5:01 pm

  11. Hi, thanks for the post. It all went smoothly until the final step when I get the following compile error:

    Traceback (most recent call last):
    File “”, line 79, in
    File “/home/greyskies/Downloads/poclbm-mod.03.24.2011/sources/”, line 175, in __init__
    self.miner = cl.Program(self.context, kernel).build(defines)
    File “/usr/local/lib/python2.6/dist-packages/pyopencl-0.92-py2.6-linux-x86_64.egg/pyopencl/”, line 138, in program_build
    “Build on %s:\n\n%s” % (dev, log) for dev, log in build_logs))
    pyopencl.RuntimeError: clBuildProgram failed: build program failure

    Build on :

    /tmp/ error: mixed vector-scalar operation not allowed unless
    nonce = base + get_global_id(0) + (uint2)(0, 0x80000000U);

    1 error detected in the compilation of “/tmp/”.

    Any idea what the problem is?

    Comment by Matt — July 11, 2011 @ 6:20 pm

    • Ok, I rebooted and got the same problem posted in the earlier posts.

      Comment by Matt — July 11, 2011 @ 6:33 pm

    • Nope, I’m getting the above compile error again. Do you know what is causing this?

      Comment by Matt — July 11, 2011 @ 6:52 pm

      • I would restart making sure that you upgrade your kernel and all your packages first, and make sure the other pre-req’s install correctly (numby, et cetera).

        Comment by foreverrising — July 15, 2011 @ 6:07 pm

  12. I’ve a 5850, 10.10, and Catalyst Driver packaging version 8.812, which is from late last year. What’s the leeway on using the latest Catalyst? – Does it have to be the very latest, as sometimes it’s a pain to reinstall and get stable. Anyways, I’m looking forward to trying this once the json-rpc site goes back up.

    (I gather from one of your latest posts that people landing here from search engines should also go get Phoenix Miner, as it’s more efficient than using pclbm exclusively.)

    Comment by tehowe — July 15, 2011 @ 5:06 am

    • I would uninstall and upgrade. I’m not sure of the AMD APP compatibility for 8.x. And yes, go for the Phoenix miner. Use the lastest drivers and AMD APP SDK 2.4.

      Comment by foreverrising — July 15, 2011 @ 6:08 pm

    • Apparently this works as an alternate source for python-jsonrpc


      Comment by tehowe — July 15, 2011 @ 10:30 pm

      • Latest Catalyst (11.6), also getting the dread

        Traceback (most recent call last):
        File “”, line 3, in
        import pyopencl as cl
        File “/usr/local/lib/python2.6/dist-packages/pyopencl-0.92-py2.6-linux-x86_64.egg/pyopencl/”, line 3, in
        import pyopencl._cl as _cl
        ImportError: cannot open shared object file: No such file or directory

        Comment by tehowe — July 16, 2011 @ 12:24 am

      • I think your issue has to do with the ~/.bashrc EXPORT line.

        I figured mine out, had to change to Device 1 (instead of 0 which is CPU). Thanks guys!


        Comment by Sean Perryman — July 18, 2011 @ 9:25 pm

  13. To check your eranings with current hash rate try these bitcoin mining difficulty calculators:

    Comment by Symbian Z — July 18, 2011 @ 6:50 am

  14. Oooh, now I see what you mean. People have got to ignore the bit above about installing “ati-stream-sdk-v2.1-lnx64.tgz” and instead go to

    for the replacement AMD-APP-SDK-v2.4-lnx64.tgz . If you’ve already installed the older version, remove that directory from /opt, and follow the directions in this PDF carefully

    and also redo the LD_LIBRARY_PATH environment variable.

    Upon running Phoenix, I’m now getting this

    me@home:~/phoenix-1.50$ python -u -k phatk VECTORS BFI_INT AGGRESSION=7
    No device specified or device not found, use DEVICE=ID to specify one of the following

    [0] Cypress
    [1] AMD Phenom(tm) II X6 1090T Processor
    [0 Khash/sec] [0 Accepted] [0 Rejected]me@home:~/phoenix-1.50$ python -u -k phatk VECTORS BFI_INT AGGRESSION=7 DEVICE=0
    [18/07/2011 13:27:49] Phoenix 1.50 starting…
    [18/07/2011 13:27:49] Connected to server
    [18/07/2011 13:28:01] Result: d93398b4 accepted

    (etc) – at a rate of ~240 Mhash/sec – success!

    Comment by tehowe — July 18, 2011 @ 12:41 pm

  15. I’ve got an issue with my install. I followed all your steps, but when I run the CL_DEVICE_TYPE_GPU I get this:

    sean@miner1:~$ sh
    Device Type: CL_DEVICE_TYPE_GPU

    FLGRXInfo returns just fine, though in ATI Catalyst I only see drivers installed for one of my cards (I have 3 5650’s)

    sean@miner1:~$ fglrxinfo
    display: :0.0 screen: 0
    OpenGL vendor string: ATI Technologies Inc.
    OpenGL renderer string: ATI Radeon HD 5600 Series
    OpenGL version string: 3.2.9756 Compatibility Profile Context

    When I try and run POCLBM, I get this output:

    Traceback (most recent call last):
    File “”, line 79, in
    File “/home/sean/poclbm/sources/”, line 175, in __init__
    self.miner = cl.Program(self.context, kernel).build(defines)
    File “/usr/local/lib/python2.6/dist-packages/pyopencl-0.92-py2.6-linux-x86_64.egg/pyopencl/”, line 138, in program_build
    “Build on %s:\n\n%s” % (dev, log) for dev, log in build_logs))
    pyopencl.RuntimeError: clBuildProgram failed: build program failure

    Build on :

    /tmp/ error: mixed vector-scalar operation not allowed unless
    nonce = base + get_global_id(0) + (uint2)(0, 0x80000000U);

    1 error detected in the compilation of “/tmp/”.

    When I try and run the Phoenix miner, I get this:

    [18/07/2011 19:12:15] FATAL kernel error: Failed to load OpenCL kernel!

    Any thoughts on what I should to get up and running?

    Great tutorial!

    Comment by Sean Perryman — July 18, 2011 @ 9:16 pm

  16. Is there anyway to use the GPU without being part of a mining pool? I’d like to try running solo and see if I can get a 50 coin payout!

    Comment by No-op — September 6, 2011 @ 3:54 pm

    • Yes, but with a rig that hashed at 1,000,000 khash/s, you would generate (on average) a block about every 88 days, 10 hours, 39 minutes, with the current difficulty of 1779164. It would simply be more profitable to generate about 1 BTC every day with deepbit, or another mining pool.

      Comment by foreverrising — September 6, 2011 @ 4:46 pm

      • Ah….didn’t realize the difficulty level had gotten so high. Even so, what would be the way to do it, just for understanding purposes? (BTW, I’m still working through the instructions, so I’m not doing any mining yet)

        Comment by No-op — September 6, 2011 @ 5:05 pm

      • You’ll want to configure your bitcoin.conf. You will want to start the bitcoin client as a server (with the -server flag). Then you need to point your miners to that server with the configured password.
        Example bitcoin.conf file:

        # server=1 tells Bitcoin to accept JSON-RPC commands.
        # You must set rpcuser and rpcpassword to secure the JSON-RPC api
        # How many seconds bitcoin will wait for a complete RPC HTTP request.
        # after the HTTP connection is established.
        # By default, only RPC connections from localhost are allowed. Specify
        # as many rpcallowip= settings as you like to allow connections from
        # other hosts (and you may use * as a wildcard character):
        # Listen for RPC connections on this TCP port:

        Then you would point your miners to connect to the server ip, with the username/password specified in the conf file. Example:
        you@box:~$ python -u http://username:password@ DEVICE=0 -k phatk AGGRESSION=13 BFI_INT VECTORS WORKSIZE=128 PLATFORM=0

        For more on bitcoin.conf, see my post: BitCoin.Conf Example

        Comment by foreverrising — September 8, 2011 @ 5:53 pm

  17. Well, I’ve followed the instructions and I think I’m almost there. I’m having trouble when I run the command

    ./ -u DEVICE=0

    It returns with
    FATAL kernel error: Failed to load OpenCL kernel!

    If I specify -k phatk, I get the same results. It doesn’t seem to find the kernel.

    Any thoughts?

    Comment by No-op — September 8, 2011 @ 6:09 pm

    • Type in this to ensure the miner can open the opencl library, and make sure you adjust it accordingly.

      export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH

      Comment by foreverrising — September 8, 2011 @ 6:13 pm

      • did that….same results 😦

        Comment by No-op — September 8, 2011 @ 6:26 pm

      • Got it fixed… LD_LIBRARY_PATH was messed up from some previous experiment. I manually fixed it in the .bashrc file and now I’m past the kernel error!

        I have credential errors now….probably a typo or something….I think I can work this out.

        When I do, I will definately send some bitcoin your way (when I earn some!)

        Comment by No-op — September 8, 2011 @ 6:38 pm

      • You had an extra colon in there:

        There’ll be only one in between username:password@…

        Comment by foreverrising — September 8, 2011 @ 7:31 pm

  18. With Ubuntu 10.10, after trying to install the AMD driver 11-8-x86.x86_64 I get the error message that vcdk is not found.

    Anyone know what is vcdk, and how do I get and install it?

    Or does it mean one of the earlier steps has failed somehow? Is there any way of checking them?

    Comment by John de Rivaz — September 12, 2011 @ 6:16 am

  19. Asus HD6870

    Comment by John de Rivaz — September 12, 2011 @ 8:43 am

    • The real question seems to be what does vcdk stand for.

      Googling it produces no relevant result, but several pages of people with the same, apparently never resolved, problem going back five years. Presumably the people at AMD who wrote the Linux version of Catalyst must know as otherwise they would not have included the initials in the error message file of the software.

      (I doubt whether Visual Color Detection Kit is relevant. dk could mean development kit and v stand for video, but Googling that produces no more help.) Also the message appears to plague all users of Linux, not just Ubuntu. This suggests that it is generated by something that lies buried deep within many distributions, not just AMD video card software.

      I then instigated a search of all files in the machine for the string vcdk. The string appeared in some certificates, which is probably irrelevant. Despite the machine having an SSD hard disk, it took some while.

      Comment by John de Rivaz — September 13, 2011 @ 11:46 am

      • Reboot into a root shell and try to execute the installer, without starting gnome (or whichever desktop you are using).

        Comment by foreverrising — September 13, 2011 @ 8:52 pm

  20. Excellent post by foreverrising. Can I request a small tutorial/list of commands to issue to see what progress the poclbm miner is achieving? I have this now running in Ubuntu 10.10, 3 x 6970s, and I see a small window with only two numbers below, a block, and number of connections. How would I check on hash rates, per card, other stats, etc? Thanks in advance.

    Comment by J Gillies — September 23, 2011 @ 5:36 am

RSS feed for comments on this post. TrackBack URI

Leave a Reply

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

You are commenting using your 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

Create a free website or blog at

%d bloggers like this: