Howto setup python OpenCL mining setup on Debian based system

We suppose, that the latest bitcoin version is 0.3.22. First of all, install binary driver for your video cards, there are many howto's in internet both for ati and nvidia.

So the steps are as follows:

sudo aptitude install python-pyopencl subversion
wget http://iweb.dl.sourceforge.net/project/bitcoin/Bitcoin/bitcoin-0.3.22/bi...
tar xvf bitcoin-0.3.22-linux.tar.gz
svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
cd python-jsonrpc/
sudo python setup.py install
cd ..
mkdir .bitcoin
echo "rpcuser=some_username" > .bitcoin/bitcoin.conf
echo "rpcpassword=some_pass" >> .bitcoin/bitcoin.conf
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
~/bitcoin-0.3.19/bin/64/bitcoin -server&
python poclbm.py -d 0 --user some_username --pass some_pass

Off course rpcuser and rpcpassword are sample_strings, as you can see. You MUST change them in your .bitcoin.conf file and in the miner cmd_line . Param '-d 0' is the desired device. If you have more than one device you will have to put as many workers as devices you have ;-).

Enjoy.

PS: You can use github for m0mchil's python miner:

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

And off cource always to be able so pull and use the latest sources ;-).

 

Сподели с приятел: Сподели в Twitter