Bitcoin Forum

Bitcoin => Mining => Topic started by: brybot on April 26, 2011, 10:53:43 PM



Title: mine with ubuntu 11.04?
Post by: brybot on April 26, 2011, 10:53:43 PM
I am brand new to the bitcoin world. I have been trying slush pool mining on my laptop getting around 4.5 Mhash/s which is pretty bad, but its more for learning than anything.

I don't really want to invest in a full rig, but I would like to throw a http://www.newegg.com/Product/Product.aspx?Item=N82E16814102932&Tpk=100282XTREME (I know its out of stock, may get it on amazon) into my desktop. Its a relatively cheap card, but looks like it will get 250 Mhash/s. My mobo looks to be able to accommodate it and my 525W PSU would work too.

I run Ubuntu linux 9.10. I tried to install poclbm, but it does not seem to be available for my version of Ubuntu. Otherwise, I would be playing around with mining on linux. In two days Ubuntu 11.04 will be out. Will there be a compatible version of the mining softwares available for Ubuntu 11.04 (I plan to upgrade)? I would like to get one of these cards soon. Any tips or advice would be appreciated. Just keep in mind I don't plan on spending hundreds at this point. Thanks!


Title: Re: mine with ubuntu 11.04?
Post by: JWU42 on April 27, 2011, 06:12:52 PM
There are several guides on how to get GUI mining with an ATI card on Ubuntu in the forums.  This is what I used:  

http://bitcointalk.org/index.php?topic=3359.msg47174#msg47174

I am using 10.10 but several people prefer the LTS release...



Title: Re: mine with ubuntu 11.04?
Post by: brybot on April 28, 2011, 07:33:45 PM
I guess what I really wanted to know is whether or not the miners will be available to an 11.04 system?


Title: Re: mine with ubuntu 11.04?
Post by: niooron on April 28, 2011, 08:36:05 PM
Im using 11.04 now, mining with a radeon 4670. You need to compile py-opencl and py-json from source, the package in ubuntu uses the nvidia drivers. And you can download the ati stream sdk from a post in the ATI forums.

Anyway I'm going back to windows, I didnt get more performance.


Title: Re: mine with ubuntu 11.04?
Post by: brybot on April 28, 2011, 10:51:44 PM
niooron: any chance you could walk me through that? I am not sure how to do that.


Title: Re: mine with ubuntu 11.04?
Post by: niooron on April 28, 2011, 11:19:17 PM
First open the synaptic package manager, and install all the fglrx packages, including development. Also download boost, boost-dev, g++ or gcc for c++, and subversion. Now, go to http://forums.amd.com/forum/messageview.cfm?catid=390&threadid=125792&enterthread=y and download the packages i386 or amd64 depending on what architecture you are using, and the dev package too. The ubuntu package manager will say some crap about them being unsupported, just force install them.

Now go to http://pypi.python.org/pypi/pyopencl/0.92, download the tar, unpack, and do the usual make and make install.
Then go to a terminal and execute these commands

svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
cd python-jsonrpc/
sudo python setup.py install

And finally, download the poclbm "source", all the files, drop them in a folder, and change poclbm.py to executable.

Open a terminal, go to the folder where you dropped the files, and type

./poclbm.py -u yourusername --pass=yourpassword -d 0 -o yourminingpoolurl -p 8332 -f 60

Then be happy about all the time you wasted to get 2 more mh/s.


Title: Re: mine with ubuntu 11.04?
Post by: brybot on April 29, 2011, 12:54:45 AM
Awesome! thanks =). I'll upgrade and give it a try.

Hopefully it won't be a time waste. I just don't want to put windows on this computer.


Title: Re: mine with ubuntu 11.04?
Post by: brybot on April 29, 2011, 06:10:50 AM
Not sure where I am going wrong. Using NVIDIA for now. Have not ordered the ATI card yet.

When I get to pyopencl installation I get errors.

Code:
bryan@bryan-desktop:~/Downloads/pyopencl-0.92$ make
ctags -R src || true
/bin/sh: ctags: not found
/usr/bin/python setup.py build
running build
running build_py
running build_ext
building '_cl' extension
gcc -pthread -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -fPIC -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -Isrc/cpp -Ibpl-subset/bpl_subset -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 -c src/wrapper/wrap_cl.cpp -o build/temp.linux-x86_64-2.7/src/wrapper/wrap_cl.o
In file included from src/wrapper/wrap_cl.cpp:1:0:
src/wrapper/wrap_cl.hpp:20:19: fatal error: CL/cl.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
make: *** [all] Error 1

Any idea what I am doing wrong? I installed all the packages you mentioned except for gcc for c++ which seemed to already be installed. I have been going through the pyopencl wiki, but still getting errors. =(


Title: Re: mine with ubuntu 11.04?
Post by: grndzero on April 29, 2011, 06:30:34 AM
Not sure where I am going wrong. Using NVIDIA for now. Have not ordered the ATI card yet.

When I get to pyopencl installation I get errors.

Code:
bryan@bryan-desktop:~/Downloads/pyopencl-0.92$ make
ctags -R src || true
/bin/sh: ctags: not found
/usr/bin/python setup.py build
running build
running build_py
running build_ext
building '_cl' extension
gcc -pthread -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -fPIC -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -Isrc/cpp -Ibpl-subset/bpl_subset -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 -c src/wrapper/wrap_cl.cpp -o build/temp.linux-x86_64-2.7/src/wrapper/wrap_cl.o
In file included from src/wrapper/wrap_cl.cpp:1:0:
src/wrapper/wrap_cl.hpp:20:19: fatal error: CL/cl.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
make: *** [all] Error 1

Any idea what I am doing wrong? I installed all the packages you mentioned except for gcc for c++ which seemed to already be installed. I have been going through the pyopencl wiki, but still getting errors. =(

Looks like it can't locate open CL. Have you installed the ATI openCL package? If so then you need to do the following (change the path if you're not using SDK 2.1):

$ ./configure.py --cl-inc-dir=/opt/ati-stream-sdk-v2.1-lnx64/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64
$ make
$ sudo make install

Download python-jsonrpc

$ svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc

$ cd python-jsonrpc

$ sudo python setup.py install

Full instructions here: http://bitcointalk.org/index.php?topic=3359.msg47174#msg47174


Title: Re: mine with ubuntu 11.04?
Post by: brybot on April 29, 2011, 07:15:43 AM
Thanks for the reply. I figured it out. Turns out its an NVIDIA issue. I had to edit several files to get the make to work. https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/540171

I have yet to order the ATI card. Right now I am running a GeForce 9500. Hash rate is terrible.

The only problem I am having now is that the CPU usage is through the roof. Its not maxed out, but all 3 cores are around 75%, which is pretty high. I thought the GPU was doing all the work here? GPU temp is 65 (what is safe?), so its obviously working.


Title: Re: mine with ubuntu 11.04?
Post by: grndzero on April 29, 2011, 07:28:23 AM
Thanks for the reply. I figured it out. Turns out its an NVIDIA issue. I had to edit several files to get the make to work. https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/540171

I have yet to order the ATI card. Right now I am running a GeForce 9500. Hash rate is terrible.

The only problem I am having now is that the CPU usage is through the roof. Its not maxed out, but all 3 cores are around 75%, which is pretty high. I thought the GPU was doing all the work here? GPU temp is 65 (what is safe?), so its obviously working.

65C is ok. I try to keep mine as close to 70C as possible. The general consensus I found was definitely keep it below 80C.

I forget where I read it, but apparently nvidia's implementation of OpenCL is using the processor, not just the GPU.


Title: Re: mine with ubuntu 11.04?
Post by: brybot on April 29, 2011, 07:34:48 AM
Ok. So when I switch to ATI, I'll lower my cpu usage?