I have found a bunch builds on the net but did not really find one that work for me so I used one and setup my own.
Bitcoin mining on Ubuntu 11.04 64bit (natty) with ATI card , python, and poclbm miner
I started Bitcoin mining on my core i7 with a 5750 ati video card. Here is the way I setup the computer. I used this link to get 95% of my information:
http://sectio-aurea.blogspot.com/2011/05/bitcoin-mining-on-ubuntu-1104-natty.html. Send him a few coin if you can. It is really a good post. I did have some issues with his setup on Ubuntu 11.04 64bit that is why I am making this.
So here we go:
Install required packages:
sudo apt-get install python-setuptools python-numpy subversion g++ libboost-all-dev
Get the latest Bitcoin distribution
cd ~
Download the new version from here:
http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.3.23/bitcoin-0.3.23-linux.tar.gz/downloadUntar Bitcoin
tar xzvf bitcoin-0.3.23-linux.tar.gz
chmod +x bitcoin-0.3.23/bin/32/bitcoin*
Install python-jsonrpc from official Subversion repository:
cd ~
svn checkout
http://svn.json-rpc.org/trunk/python-jsonrpccd python-jsonrpc/
sudo python setup.py install
Grab the AMD ATI SDK from the AMD website and install it:
cd ~
wget
http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgztar xvzf AMD-APP-SDK-v2.4-lnx64.tgz
Adding lines to your .bashrc file
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
Install pyopencl from source on Ubuntu 11.04 64 bit
cd ~
wget
http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz#md5=0680f7272fe3ab5a3bcb0b6cfbd74994tar xzvf pyopencl-0.92.tar.gz
cd pyopencl-0.92
./configure.py --cl-inc-dir=${AMDAPPSDKROOT}include --cl-lib-dir=${AMDAPPSDKROOT}lib/x86_64
Build pyopencl:
make
sudo make install
Configuring bitcoin:
cd ~
mkdir -p .bitcoin
Make up user/password here if you like:
echo "rpcuser=user" >> .bitcoin/bitcoin.conf
echo "rpcpassword=password" >> .bitcoin/bitcoin.conf
Get poclbm modules:
wget --no-check-certificate
https://github.com/m0mchil/poclbm/raw/master/BitcoinMiner.clwget --no-check-certificate
https://github.com/m0mchil/poclbm/raw/master/BitcoinMiner.pywget --no-check-certificate
https://github.com/m0mchil/poclbm/raw/master/poclbm.pywget --no-check-certificate
https://github.com/m0mchil/poclbm/raw/master/sha256.pyNow we can run bitcoin in server mode,
~/bitcoin-0.3.20.2/bin/32/bitcoin -server &
The poclbm command to mine in a pool looks like this:
python poclbm.py -d 0 --host=pool hostname --port=8332 --user=worker --pass=worker password
The pool I use is deepbit.
Let me know what you ll think.
This is the link to my site where this post is at. If this is not allowed on the board, let me know and i'll remove the link.:
http://www.the-server-admin.com/linux/34-bitcoin-mining-on-ubuntu-11-04-64bit-natty-with-ati-card-,-python,-and-poclbm-miner.html