Pages:
Author

Topic: Ubuntu Natty Narwhal 11.04 Mining Guide / HOWTO - page 20. (Read 281450 times)

member
Activity: 98
Merit: 10
now i get this error at step 11. sudo tar xvfz http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx??.tgz -C /opt

tar (child): Cannot connect to http: resolve failed

gzip: stdin: unexpected end of file
tar: Child returned status 128
tar: Error is not recoverable: exiting now
legendary
Activity: 1260
Merit: 1000
Whoops.  Been fixed.  Remove the wget from that line.

member
Activity: 98
Merit: 10
11. sudo tar xvfz wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx??.tgz -C /opt

i get this error:
tar (child): wget: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
member
Activity: 98
Merit: 10
If you downloaded it manually, then just skip the step.  All that step is doing is downloading it.

What does it say if you just do it starting at wget and leave off the stuff before it.

i didnt try that, i formatter and reinstalled ubuntu, i will try now and start from step 1:)

btw, when everything goes as your guide and i successfully install everything. how do i start mining?
thanks for your help, i will donate when i mine some bitcoins:)

edit: installed ubuntu and im downloading sdk 2.4 now, it didnt work when i used this method: screen -d -m -S stream wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgz

but it worked when i used this: wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgz

i had the same problem with:
7. screen -d -m -S icd wget http://download2-developer.amd.com/amd/Stream20GA/icd-registration.tgz
8. screen -d -m -S pyopencl wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz

i had to use this instead:
wget http://download2-developer.amd.com/amd/Stream20GA/icd-registration.tgz
wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz

it downloaded. so its fine as long it downloaded right?
legendary
Activity: 1260
Merit: 1000
If you downloaded it manually, then just skip the step.  All that step is doing is downloading it.

What does it say if you just do it starting at wget and leave off the stuff before it.
member
Activity: 98
Merit: 10
the thing is, i tried downloading manually, it downloads, but when i enter: screen -d -m -S stream wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgz

it dont download or do anything


if u say it works, then i have no choice then re-installing ubuntu right? i think i do that.
legendary
Activity: 1260
Merit: 1000
I don't know what to tell you really, if you're not getting any errors... it works for me as of this post (just tried it). 
member
Activity: 98
Merit: 10
i did, still nothing happns. when i enter that code, nothing happens. do u think i should reinstall ubuntu? freshinstall.
legendary
Activity: 1260
Merit: 1000
Do a "screen -r stream" and see if it's still downloading.  AMD servers were exceptionally slow last night.  Took 20+ minutes to download.
member
Activity: 98
Merit: 10
nothing happens here:
screen -d -m -S stream wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgz

it dont download sdk 2.4

i had problem with the system not detecting my 6990.
legendary
Activity: 1260
Merit: 1000
Persistence setting is only for a live installation.  I don't see any reason why you'd create an install like that, especially on a USB stick.
member
Activity: 112
Merit: 100
"I'm not psychic; I'm just damn good"
Don't you think the USB installation would require persistance setting? or does it not require since it's drivers? I'm not sure. thus the question.
legendary
Activity: 1260
Merit: 1000
Ok, I just finished installing this to a USB key and installing 2.4 instead of 2.1.  I did not have to do anything different to install on a USB stick vs a hard drive, so there are no changes to the guide in that aspect.

I did not encounter any real problems nor did anything unexpected happen.  This was for the 64 bit install - I haven't tried the 32 bit install.

Here's the guide for v2.4.



Bitcoin Mining for Ubuntu Natty Narwhal (Ubuntu v11.04)


Here are the steps you need to take to get mining on Ubuntu's latest OS:

First, install Natty on the HD of your choice, accepting all the defaults as appropriate.
Once you are booted into your new OS install, do these steps in a terminal window, or
if you wish and it's easier you can do it from an SSH session.

Code:
Optional First Step (Skip this if you don't care about SSH):
Optional 1: Press the upper left 'start' button on the desktop and in the search field enter 'terminal'.  Click it and open a terminal window.

In the terminal window, type:

sudo apt-get install openssh-server

This will install the SSH server.  Once the server is installed, you can connect to your machine via SSH and perform the rest of the steps listed below.

END Optional First Step

From here on out, the steps should be conducted either in a terminal window or an SSH session.


1. sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
2. sudo apt-get update
3. sudo apt-get install screen
4. screen -S update sudo apt-get install fglrx vim openssh-server g++ libboost-all-dev subversion git-core python-numpy
5. Enter your password.
6. Once the updates are going, press CTRL-A then press D.  You should detach from the screen and be returned to a prompt.
7. screen -d -m -S icd wget http://download2-developer.amd.com/amd/Stream20GA/icd-registration.tgz
8. screen -d -m -S pyopencl wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz

32-bit 9. screen -d -m -S stream wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx32.tgz
or
64-bit 9. screen -d -m -S stream wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgz

10. screen -r stream
10a. If you get a "There is no screen to be resumed" message, continue on.  Otherwise, you should get a download status, wait until it's done, then continue on.

11. sudo tar xvfz wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx??.tgz -C /opt
12. sudo tar xvfz /opt/AMD-APP-SDK-v2.4-lnx??/icd-registration.tgz -C /
13. tar zxfv pyopencl-0.92.tar.gz
14. screen -r update
14a. If you get a "There is no screen to be resumed" mesasge, continue on.  Otherwise, wait for the update to finish. You will be returned to a prompt when it's done.
15. svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
16. svn checkout http://svn3.xp-dev.com/svn/phoenix-miner/trunk
17. git clone git://github.com/m0mchil/poclbm poclbm
18. mv trunk phoenix
19. echo export DISPLAY=:0 >> ~/.bashrc
20. cd pyopencl-0.92

32-bit 21. sudo sh -c 'echo "/opt/AMD-APP-SDK-v2.4-lnx32/lib/x86/" >> /etc/ld.so.conf.d/local.conf'
32-bit 22. ./configure.py --cl-inc-dir=/opt/AMD-APP-SDK-v2.4-lnx6432/include/ --cl-lib-dir=/opt/AMD-APP-SDK-v2.4-lnx32/lib/x86
or
64-bit 21. sudo sh -c 'echo "/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/" >> /etc/ld.so.conf.d/local.conf'
64-bit 22. ./configure.py --cl-inc-dir=/opt/AMD-APP-SDK-v2.4-lnx64/include/ --cl-lib-dir=/opt/AMD-APP-SDK-v2.4-lnx64/lib/x86_64

23. sudo ldconfig
24. source ~/.bashrc
25. make -j3
26. sudo make install
27. cd ../python-jsonrpc
28. sudo python setup.py install
29. cd ~
30. chmod +x phoenix/phoenix.py poclbm/poclbm.py
31. sudo aticonfig --initial -f --adapter=all
32. sudo reboot


That's it, you're done.

You should now have a fully functional Ubuntu 11.04 mining rig with Phoenix and poclbm installed. To test it out, you can go into the poclbm directory and run poclbm without any switches and see if your graphics card(s) show up. Do this with:

cd poclbm
./poclbm.py


It should list your CPU (possibly) and your graphics cores available.

Here's a couple useful tricks for working with your graphics cards:

To display the temperature of your cores:

aticonfig --odgt --adapter=all

To display the clock speeds of your cores:

aticonfig --odgc --adapter=all

To show or set your fan speed:

Shows fan speed
aticonfig --pplib-cmd "get fanspeed 0"

Sets fan speed to 100%
aticonfig --pplib-cmd "set fanspeed 0 100"

If you have multiple cores, you'll need to export a different display variable to access the different cores, like this:

Show fan speed on 2nd card:  
export DISPLAY=:0.1; aticonfig --pplib-cmd "get fanspeed 0"

You can change the .1 to .2, .3 etc... for how many cards you have in the system.

To change your clock rates:

Set your core clock to 900MHz and your memory clock to 1000MHz on all cards. Change according to your desire.
aticonfig --od-setclocks=900,1000 --adapter=all

To set for a particular card, change --adapter=all to the adapter number you want to change.

That should take care of just about everything you need to do to mine in a Bitcoin pool.

Like this guide and find it useful?  Donate!  Donation address: 168Bgg6HL6bLiUxQDBbdmHRbXtSsMixYCT
member
Activity: 112
Merit: 100
"I'm not psychic; I'm just damn good"
Great Inaba. Smiley Thanks for the hardwork
newbie
Activity: 39
Merit: 0
must have been a temp outage #16. svn checkout http://svn3.xp-dev.com/svn/phoenix-miner/trunk
works now, thanks anyways
legendary
Activity: 1260
Merit: 1000
I picked up all the components for an additional mining rig tonight, so I will be trying to do the new install on a USB stick to see what's what as far as that goes.  If it goes ok, I may try a 2.4 install, but it would be with 5xxx series, not 6xxx series, but I don't think that should make to much of a difference.
donator
Activity: 2058
Merit: 1007
Poor impulse control.
Yeah this guide isn't intended for the Live versions of Ubuntu, only for dedicated installs.  Some people have apparently gotten it working, but it's just such a hassle and hard drives are dirt cheap and you are somewhat limited with a live install...

I plan on figuring out how to do this from a USB stick, after that I will probably look into adjusting for a Live install, but both come after I finish my current project which will hopefully be announced RSN.



Thought about working with LinuxCoin? They've made a great start on a deb based live OS on flash with persistence.
newbie
Activity: 4
Merit: 0
Here's a couple useful tricks for working with your graphics cards:
To display the temperature of your cores:

aticonfig --odgt --adapter=all

To display the clock speeds of your cores:

aticonfig --odgc --adapter=all

To show or set your fan speed:

Shows fan speed
aticonfig --pplib-cmd "get fanspeed 0"

Sets fan speed to 100%
aticonfig --pplib-cmd "set fanspeed 0 100"

So, I googled around and tried to look in the documentation for this, but I could sort it out.  How do you set the fan speed back to the point where it can be automatically controlled?  At boot it seems to do a decent job but when I mess with it I have to just leave it at a fixed setting.  A tried `aticonfig --pplib-cmd "set fanspeed 0 auto"` but that seemed to just set it to 0 (I think...I don't remember).

Cheers,
vox
member
Activity: 98
Merit: 10
got to number 16. svn checkout http://svn3.xp-dev.com/svn/phoenix-miner/trunk
its not connecting for some reason? can I move on without it?
I've checked my firewalls its not blocked there.

i have the same problem... Sad i tried many times and its not connecting or something.
can anyone help us please?

svn: OPTIONS of 'http://svn3.xp-dev.com/svn/phoenix-miner/trunk': Could not read status line: Connection reset by peer (http://svn3.xp-dev.com)
newbie
Activity: 39
Merit: 0
got to number 16. svn checkout http://svn3.xp-dev.com/svn/phoenix-miner/trunk
its not connecting for some reason? can I move on without it?
I've checked my firewalls its not blocked there.
Pages:
Jump to: