Bitcoin Forum
May 05, 2024, 06:56:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoin Mining on Ubuntu 11.04 64bit Natty With ATI Card Python, and Poclbm  (Read 1896 times)
l33 (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile WWW
June 23, 2011, 11:59:01 AM
 #1

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/download
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.

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
1714892161
Hero Member
*
Offline Offline

Posts: 1714892161

View Profile Personal Message (Offline)

Ignore
1714892161
Reply with quote  #2

1714892161
Report to moderator
1714892161
Hero Member
*
Offline Offline

Posts: 1714892161

View Profile Personal Message (Offline)

Ignore
1714892161
Reply with quote  #2

1714892161
Report to moderator
1714892161
Hero Member
*
Offline Offline

Posts: 1714892161

View Profile Personal Message (Offline)

Ignore
1714892161
Reply with quote  #2

1714892161
Report to moderator
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714892161
Hero Member
*
Offline Offline

Posts: 1714892161

View Profile Personal Message (Offline)

Ignore
1714892161
Reply with quote  #2

1714892161
Report to moderator
1714892161
Hero Member
*
Offline Offline

Posts: 1714892161

View Profile Personal Message (Offline)

Ignore
1714892161
Reply with quote  #2

1714892161
Report to moderator
Bloodys
Newbie
*
Offline Offline

Activity: 32
Merit: 0


View Profile
June 23, 2011, 04:50:59 PM
 #2

It is much easier to just download and try with LinuxCoin, especially if Linux is not your thing.

But thanks for your efforts, I'll try with your guide as well Wink
Rob P.
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile WWW
June 23, 2011, 06:44:43 PM
 #3

You also didn't look around terribly hard:

http://forum.bitcoin.org/index.php?topic=9239.0

--

If you like what I've written here, consider tipping the messenger:
1GZu4CtHa6ai8iWoWiVFxV5VVoNte4SkoG

If you don't like what I've written, send me a Tip and I'll stop talking.
whopper
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
June 23, 2011, 07:10:43 PM
 #4

the info on fglrx installation is missing
l33 (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile WWW
June 23, 2011, 07:54:14 PM
 #5

If you are using Linux I am assuming you know what you are doing and have install your video drivers. But I should add the driver part in there. But that is all I did to get this working on my system.
l33 (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0



View Profile WWW
June 23, 2011, 08:07:03 PM
 #6

You also didn't look around terribly hard:

http://forum.bitcoin.org/index.php?topic=9239.0

Rob your install seems to have more to it. I was looking for a simple install for people. I am just getting started with mining so maybe ill end up like that. Thanks for the input. 
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!