💾 Archived View for gmi.noulin.net › mobileNews › 3562.gmi captured on 2024-08-18 at 21:47:29. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-05-10)

-=-=-=-=-=-=-

Bitcoin Mining on Debian Stable "Squeeze" with poclbm and ATI

2011-11-16 16:26:47

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.4.0/bitcoin-0.4.0-linux.tar.gz/download

Untar Bitcoin

tar xzvf bitcoin-0.4.0-linux.tar.gz

Install python-jsonrpc from official Bazaar repository:

cd ~

sudo apt-get install bzr

bzr checkout http://bzr.json-rpc.org/trunk

cd trunk/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 (64bit):

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:

sudo apt-get install git-core

cd

git clone git://github.com/m0mchil/poclbm.git

Now we can run bitcoin in server mode,

~/bitcoin-0.4.0/bin/64/bitcoin -server &

Start miner:

cd poclbm

./poclbm.py -d 0 http://pool_user:pool_password@host:8332

Done.

Consider tipping the messenger:

15C1WZeTTaQ53BjtXGNGmGyAt2N69N3V3a