Server Admin Search
Articles Category
Bitcoin mining on Ubuntu 11.04 64bit (natty) with ATI card , python, and poclbm miner
- Details
- Category: Linux
- Published on Friday, 17 June 2011 11:43
- Written by Server Administrator
- Hits: 5720
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 s 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:
Untar 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-jsonrpc
cd 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.tgz
tar 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=0680f7272fe3ab5a3bcb0b6cfbd74994
tar 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.cl
wget --no-check-certificate https://github.com/m0mchil/poclbm/raw/master/BitcoinMiner.py
wget --no-check-certificate https://github.com/m0mchil/poclbm/raw/master/poclbm.py
wget --no-check-certificate https://github.com/m0mchil/poclbm/raw/master/sha256.py
Now 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.
If there are any questions, let me know with a post or on our forum at http://forum.the-server-admin.com

