Bitcoin Forum
April 25, 2024, 12:54:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 [12] 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 »
  Print  
Author Topic: Ubuntu Natty Narwhal 11.04 Mining Guide / HOWTO  (Read 281370 times)
befuddled
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
June 03, 2011, 04:02:28 AM
 #221

Quote
No idea what "Barts" is...but I'm going to try mining with it!

"Barts" is the ATI codename for the 6800 chipset. "Cayman" is the 6900 series.

As far as permission denied: yeah either your user doesn't have permissions or the file isn't executable, e.g. "chmod a+x phoenix.py" & cetera.
1714006446
Hero Member
*
Offline Offline

Posts: 1714006446

View Profile Personal Message (Offline)

Ignore
1714006446
Reply with quote  #2

1714006446
Report to moderator
1714006446
Hero Member
*
Offline Offline

Posts: 1714006446

View Profile Personal Message (Offline)

Ignore
1714006446
Reply with quote  #2

1714006446
Report to moderator
1714006446
Hero Member
*
Offline Offline

Posts: 1714006446

View Profile Personal Message (Offline)

Ignore
1714006446
Reply with quote  #2

1714006446
Report to moderator
"Your bitcoin is secured in a way that is physically impossible for others to access, no matter for what reason, no matter how good the excuse, no matter a majority of miners, no matter what." -- Greg Maxwell
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Sideways
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
June 03, 2011, 05:15:28 AM
 #222

Unfortunately I still don't seem able to using aticonfig to read temperatures without a monitor plugged in. I get the following error:

ERROR - X needs to be running to perform ATI Overdrive(TM) commands

This doesn't make sense because obviously X is running because the system automatically logs on to my Unity desktop. When I can get physical access to the machine again I'll try plugging a null monitor connector onto the graphics card output to see if that helps - but I'd appreciate any other suggestions about what could causing this.

I'm having the same problem as Jabbernowl here, when I try the commands from a ssh session, it give me errors about The X Server not running, or having to run aticonfig as root; even though I can look over my shoulder and see the gfx desktop running. My intention is to have this box running completely headless, with only a cat5 cable and power going to it... and this is kinda getting in the way =] I haven't tried his suggestion of adding "xhost +" yet, as I have just read though the thread to see if anyone else had asked these questions. I see his, but not any solutions. I imagine it must be possible, because thought the guide there's talk of doing everything from a ssh session so I must be missing something. Anyone know what I'm doing wrong?

Thanx for the great guide!
voxobscuro
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
June 03, 2011, 07:27:47 AM
 #223

Quote
No idea what "Barts" is...but I'm going to try mining with it!

"Barts" is the ATI codename for the 6800 chipset. "Cayman" is the 6900 series.

As far as permission denied: yeah either your user doesn't have permissions or the file isn't executable, e.g. "chmod a+x phoenix.py" & cetera.

Hey, the issue was that I had done several of the steps from the howto as root ( as opposed to using sudo ).  I chown'd all the poclbm.py and other python files and its working now. Cool

Its pulling 247000 khash/s...which is well over 4 times what the imac is doing....not sure if thats good or not, but I'm going to sleep regardless.
TLS freedom
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
June 04, 2011, 12:46:14 AM
 #224

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.
darkpandora
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
June 04, 2011, 12:53:25 AM
 #225

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)

K U R D I  S T A N
K U R D I S T A N
K U R D I S T A N
voxobscuro
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
June 04, 2011, 01:20:04 AM
 #226

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
organofcorti
Donator
Legendary
*
Offline Offline

Activity: 2058
Merit: 1007


Poor impulse control.


View Profile WWW
June 04, 2011, 02:33:49 AM
 #227

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.

Bitcoin network and pool analysis 12QxPHEuxDrs7mCyGSx1iVSozTwtquDB3r
follow @oocBlog for new post notifications
Inaba (OP)
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000



View Profile WWW
June 04, 2011, 02:51:36 AM
 #228

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.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
TLS freedom
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
June 04, 2011, 03:26:31 AM
 #229

must have been a temp outage #16. svn checkout http://svn3.xp-dev.com/svn/phoenix-miner/trunk
works now, thanks anyways
SchizophrenicX
Member
**
Offline Offline

Activity: 112
Merit: 100

"I'm not psychic; I'm just damn good"


View Profile
June 04, 2011, 04:50:14 AM
 #230

Great Inaba. Smiley Thanks for the hardwork

Inaba (OP)
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000



View Profile WWW
June 04, 2011, 06:55:24 AM
 #231

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

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
SchizophrenicX
Member
**
Offline Offline

Activity: 112
Merit: 100

"I'm not psychic; I'm just damn good"


View Profile
June 04, 2011, 08:27:32 AM
 #232

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.

Inaba (OP)
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000



View Profile WWW
June 04, 2011, 11:53:02 AM
 #233

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.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
darkpandora
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
June 04, 2011, 12:02:21 PM
 #234

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.

K U R D I  S T A N
K U R D I S T A N
K U R D I S T A N
Inaba (OP)
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000



View Profile WWW
June 04, 2011, 12:03:53 PM
 #235

Do a "screen -r stream" and see if it's still downloading.  AMD servers were exceptionally slow last night.  Took 20+ minutes to download.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
darkpandora
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
June 04, 2011, 12:05:59 PM
 #236

i did, still nothing happns. when i enter that code, nothing happens. do u think i should reinstall ubuntu? freshinstall.

K U R D I  S T A N
K U R D I S T A N
K U R D I S T A N
Inaba (OP)
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000



View Profile WWW
June 04, 2011, 12:14:09 PM
 #237

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). 

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
darkpandora
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
June 04, 2011, 12:15:50 PM
 #238

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.

K U R D I  S T A N
K U R D I S T A N
K U R D I S T A N
Inaba (OP)
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000



View Profile WWW
June 04, 2011, 12:22:21 PM
 #239

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.

If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
darkpandora
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
June 04, 2011, 12:55:06 PM
Last edit: June 04, 2011, 01:36:26 PM by darkpandora
 #240

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?

K U R D I  S T A N
K U R D I S T A N
K U R D I S T A N
Pages: « 1 2 3 4 5 6 7 8 9 10 11 [12] 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 »
  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!