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.


April 15, 2011

BitCoin Mining with an ATI Radeon card in Windows 7 (32/64 bit)

Filed under: Uncategorized — Tags: , , , , , — foreverrising @ 7:08 pm

After having trouble with installing the correct drivers in Ubuntu 10.10 64-Bit, I rebooted into Windows 7. The process is extremely easy on a Windows machine.

First you’ll want to install your ATI Radeon card, And when Windows tries to install drivers for you, cancel it. You want to install the Catalyst Software Suite, and install drivers that way (If you’re using 32 bit you’ll have to search for the correct version). The Catalyst Control Center application also lets you overclock the card as well.

Next, you will want to make sure your BitCoin client is installed. It does not need to be running while mining BitCoins. If you plan to use your BitCoin client as a server, ensure you have created your configuration file at C:\Users\[USERNAME]\AppData\Roaming\Bitcoin\bitcoin.conf with the following:

rpcuser=[choose a username]
rpcpassword=[choose a password]

Then you’ll want to download a miner. I have been using poclbm-mod (03.24.2011), on If you chose that, then you’ll need to sign-up for an account.

To make it easy, there is a batch file included in the poclbm-mod file, in the binaries-win32 directory. Don’t use the GUI version, it’s less efficient. Make sure that you edit it to include your username and password to connect.

Example for Radeon Card:

poclbm-mod.exe -d 0 -v -w 128 -f 60 -user=USERNAME –pass=PASSWORD

If you happen to get a vector error, try changing the device flag from -d 0 to -d 1

You can also adjust the -f flag, higher leads to better frame rates for the desktop, less increases performance a bit for mining.


I also got my Radeon 5770 installed and mining in Ubuntu 10.10 64 bit last night, I’ll be doing a write-up of that tomorrow.

I accept donations @ 1HXrbVT3WRqk6rHTPKKJ9ppoFbsYjmjTqX if this worked for you. If it didn’t, feel free to send me a comment.

Let us know what card you have and what hashrate you get it to!

Create a free website or blog at