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.


Create a free website or blog at