Pages:
Author

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

newbie
Activity: 18
Merit: 0


But now, although aticonfig sees all 3 6990 cards, poclbm does not see any of them , just the cpu. I puzzled as to why that should be.

Any suggestions?



I'm in the exact same boat as you, everything seemingly is installed correctly, but clinfo / poclbm only sees my CPU. My setup is Ubuntu 11.04 (though I also tried 10.04 and 10.10 previously with the same results) with the 2.4 sdk, and 11.5 catalyst drivers.
sr. member
Activity: 286
Merit: 251
I have followed these instructions and had quite a few problems (some due to the peculiariteis of ubuntu 11.04).

First problem is that after last boot, X doesnt come up and this also prevents sshd  from working. It is possible to get a working system by holding the shift key and selecting recovery and restart the x server. I presume this is caused by some incompatibility between Ubuntu 11.04 and the xorg.conf generated by ati-config.

I have not solved this yet.

Next problem is as I am using 6990's I need sdk 2.4, but gave an error when poclbm was run, it is necessary to change the contents of /etc/OpenCL/vendors/atiocl32.icd, to make it the same as the biggest library name in the sdk.

But now, although aticonfig sees all 3 6990 cards, poclbm does not see any of them , just the cpu. I puzzled as to why that should be.

Any suggestions?

legendary
Activity: 1260
Merit: 1000
Yeah I totally agree.  I will try to make it a priority asap.  I've not had good luck in the past with running Linux from a USB for anything that requires reliability though.  Probably a failing on my part, but it is what it is Smiley
full member
Activity: 174
Merit: 100
Well whenever you get the time to do that I would greatly appreciate it! Not having to buy hard drives for each machine would lower power consumption and usb drives are cheaper.
legendary
Activity: 1260
Merit: 1000
This guide doesn't work with Live installs.  It's intended for full installs.  The Live installs are missing all sorts of needed things.

Could it be made to work?  Probably, but I've not tried it.  If I get some time, I will try to get it figured out, but my time is pretty limited at the moment, so it would be at least a few days if not more before I was able to get to it.
full member
Activity: 174
Merit: 100
Did you choose to encrypt your home directory when installing?  It is an install option.

No, but I never "installed" I just downloaded Ubuntu from http://www.ubuntu.com/download/ubuntu/download and then used unetbootin on the downloaded ISO to put it on a USB drive and add persistence. Then I loaded it up and followed the guide here.
legendary
Activity: 1260
Merit: 1000
Did you choose to encrypt your home directory when installing?  It is an install option.
full member
Activity: 174
Merit: 100
At what point do you get the Authentication Failure?

I have updated the guide to differentiate where you need to change things for 32bit vs 64bit

I'm running the 64-bit version of ubuntu and using that version of your guide, and I get the Authentication Failure around 10 seconds after the boot loader screen when it's loading up the OS.

I've never seen that error before, but it sounds like maybe you encrypted your home directory and it can't find the authorization keys now?  Dunno on that one...

Fixed the problems with the markup junk and the extra 5.

I didn't encrypt anything or really do much outside of your guide.
legendary
Activity: 1260
Merit: 1000
At what point do you get the Authentication Failure?

I have updated the guide to differentiate where you need to change things for 32bit vs 64bit

I'm running the 64-bit version of ubuntu and using that version of your guide, and I get the Authentication Failure around 10 seconds after the boot loader screen when it's loading up the OS.

I've never seen that error before, but it sounds like maybe you encrypted your home directory and it can't find the authorization keys now?  Dunno on that one...

Fixed the problems with the markup junk and the extra 5.
newbie
Activity: 14
Merit: 0

      1. sudo add-apt-repository ppa:ubuntu-x-swat/x-updates [/li][/list]
      2. sudo apt-get update [/li][/list]

      ....

      30. chmod +x phoenix/phoenix.py poclbm/poclbm.py5. sudo aticonfig --initial -f --adapter=all


      The first and second points have some markup leftovers and the 30th point should end with poclbm.py, but it currently has some garbage appended.
      full member
      Activity: 174
      Merit: 100
      At what point do you get the Authentication Failure?

      I have updated the guide to differentiate where you need to change things for 32bit vs 64bit

      I'm running the 64-bit version of ubuntu and using that version of your guide, and I get the Authentication Failure around 10 seconds after the boot loader screen when it's loading up the OS.
      legendary
      Activity: 1260
      Merit: 1000
      At what point do you get the Authentication Failure?

      I have updated the guide to differentiate where you need to change things for 32bit vs 64bit
      full member
      Activity: 174
      Merit: 100
      I just followed the whole guide while setting this up on my USB drive, and after everything appeared to install ok and completing all 32 steps/restarting I get "Authentication Failure" on bootup. What went wrong?
      newbie
      Activity: 14
      Merit: 0
      I'm trying to get auto-start working
      How to set up automining in ubuntu

      1. make script file (miner1.sh):
      Code:
      source /home/user/.bashrc
      aticonfig --pplib-cmd "set fanspeed 0 100"
      cd /home/user/poclbm
      ./poclbm.py ------- some parameters------

      2. go to
      System -> preferences-> Startup Applications

      3. Add for each mining script line like this
      gnome-terminal -e "bash --rcfile /home/user/miner1.sh"

      4. Set up autologin

      5. reboot and enjoy
      hero member
      Activity: 714
      Merit: 500
      the install went good, but at the end i realised, that my system 32bit, and not 64. but should i rewrite?

      Yes. Remove the files you just installed and start over with the search-and-replaced Inaba guide below:

      Here are the steps you need to take to get mining on Ubuntu's latest 32-bit 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:

      [b]sudo apt-get install openssh-server[/b]

      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.

      Code:
      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
      9. screen -d -m -S stream wget http://download2-developer.amd.com/amd/Stream20GA/ati-stream-sdk-v2.1-lnx32.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 ati-stream-sdk-v2.1-lnx32.tgz -C /opt
      12. sudo tar xvfz icd-registration.tgz -C /
      13. sudo tar xvfz ati-stream-sdk-v2.1-lnx32.tgz -C /opt
      14. tar zxfv pyopencl-0.92.tar.gz
      15. echo export DISPLAY=:0 >> .bashrc
      16. echo export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx32/lib/x86/:$LD_LIBRARY_PATH >> .bashrc
      17. source .bashrc
      18. screen -r update
      18a. 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.
      19. svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
      20. svn checkout http://svn3.xp-dev.com/svn/phoenix-miner/trunk
      21. git clone git://github.com/m0mchil/poclbm poclbm
      22. mv trunk phoenix
      23. cd pyopencl-0.92
      24. ./configure.py --cl-inc-dir=/opt/ati-stream-sdk-v2.1-lnx32/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.1-lnx32/lib/x86
      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.py5. sudo aticonfig --initial -f --adapter=all
      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


      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.
      member
      Activity: 82
      Merit: 10
      Will this guide work for Ubuntu installed on a usb flash drive?

      It seems like there must be some way, but I was unable to in my attempt (make sure you enable the universe repository if you attempt it at least, that was one of my mistakes)
      newbie
      Activity: 12
      Merit: 0
      ok, i am noob. now it is ok. thx for the guide sir!
      newbie
      Activity: 12
      Merit: 0
      hi,

      my error looks like..:

      Traceback (most recent call last):
        File "./poclbm.py", line 3, in
          import pyopencl as cl
        File "/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl/__init__.py", line 3, in
          import pyopencl._cl as _cl
      ImportError: libOpenCL.so.1: cannot open shared object file: No such file or directory

      the install went good, but at the end i realised, that my system 32bit, and not 64. but should i rewrite?

      thx.

      Gedeon
      full member
      Activity: 174
      Merit: 100
      Will this guide work for Ubuntu installed on a usb flash drive?
      legendary
      Activity: 1260
      Merit: 1000
      I'm trying to get auto-start working for myself but have run into an issue, basically my thought was to make a startup launcher that ran a bash file, I think I got it mostly correct but now I'm getting this error

      phatk1.bash
      Code:
      #!/bin/bash

      cd /home/arc/phoenix
      python phoenix.py -u http://uname:[email protected]:8332/ -k phatk VECTORS BFI_INT AGGRESSION=13 WORKSIZE=256 DEVICE=1

      error
      Code:
      Traceback (most recent call last):
        File "phoenix.py", line 123, in
          miner.start(options)
        File "/home/arc/phoenix/Miner.py", line 75, in start
          self.kernel = self.options.makeKernel(KernelInterface(self))
        File "phoenix.py", line 111, in makeKernel
          kernelModule = imp.load_module(module, file, filename, smt)
        File "kernels/phatk/__init__.py", line 23, in
          import pyopencl as cl
        File "/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-x86_64.egg/pyopencl/__init__.py", line 3, in
          import pyopencl._cl as _cl
      ImportError: libOpenCL.so: cannot open shared object file: No such file or directory

      You need to export your LD_LIBRARY_PATH and DISPLAy variables in the script. 
      Pages:
      Jump to: