Bitcoin Forum
December 10, 2016, 01:11:16 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
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 32 »
  Print  
Author Topic: Ubuntu Natty Narwhal 11.04 Mining Guide / HOWTO  (Read 270938 times)
JorgePasada
Member
**
Offline Offline

Activity: 61


View Profile
May 22, 2011, 09:59:28 PM
 #81

At 900, that's about the right MH rate.  You need to raise your clock more if you want to raise your hash rate.

I'm working on putting together my slightly modified version of this guide to work with SDK 2.4

 Should have a little addendum in a day or two here for that purpose, hopefully.
1481332276
Hero Member
*
Offline Offline

Posts: 1481332276

View Profile Personal Message (Offline)

Ignore
1481332276
Reply with quote  #2

1481332276
Report to moderator
1481332276
Hero Member
*
Offline Offline

Posts: 1481332276

View Profile Personal Message (Offline)

Ignore
1481332276
Reply with quote  #2

1481332276
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
de4l
Member
**
Offline Offline

Activity: 83


View Profile
May 23, 2011, 01:26:11 AM
 #82

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:pass@deepbit.net: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 <module>
    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 <module>
    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 <module>
    import pyopencl._cl as _cl
ImportError: libOpenCL.so: cannot open shared object file: No such file or directory
SchizophrenicX
Full Member
***
Offline Offline

Activity: 126

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


View Profile
May 23, 2011, 02:15:21 AM
 #83

Hi tread starter. I hope you don't mind me linking my tread to yours. I'm consolidating build discussions Smiley

Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
May 23, 2011, 02:28:40 AM
 #84

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:pass@deepbit.net: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 <module>
    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 <module>
    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 <module>
    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. 

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

Activity: 174



View Profile
May 23, 2011, 08:50:59 AM
 #85

Will this guide work for Ubuntu installed on a usb flash drive?
gedeon
Newbie
*
Offline Offline

Activity: 12


View Profile
May 23, 2011, 12:06:08 PM
 #86

hi,

my error looks like..:

Traceback (most recent call last):
  File "./poclbm.py", line 3, in <module>
    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 <module>
    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
gedeon
Newbie
*
Offline Offline

Activity: 12


View Profile
May 23, 2011, 03:44:49 PM
 #87

ok, i am noob. now it is ok. thx for the guide sir!
de4l
Member
**
Offline Offline

Activity: 83


View Profile
May 23, 2011, 05:04:07 PM
 #88

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

Activity: 714



View Profile WWW
May 23, 2011, 05:11:30 PM
 #89

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.
biochem
Newbie
*
Offline Offline

Activity: 14


View Profile
May 23, 2011, 06:21:36 PM
 #90

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
Internet151
Full Member
***
Offline Offline

Activity: 174



View Profile
May 23, 2011, 09:01:30 PM
 #91

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?
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
May 23, 2011, 09:22:01 PM
 #92

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

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

Activity: 174



View Profile
May 23, 2011, 10:37:06 PM
 #93

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.
Strom
Newbie
*
Offline Offline

Activity: 14


View Profile
May 24, 2011, 06:18:17 PM
 #94


      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.

      Donations: 1yR1bEDbF5YJAfwJSyi7vDm8S9mAf9KA6
      Inaba
      Legendary
      *
      Offline Offline

      Activity: 1260



      View Profile WWW
      May 24, 2011, 08:16:25 PM
       #95

      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.

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

      Activity: 174



      View Profile
      May 25, 2011, 01:17:13 AM
       #96

      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.
      Inaba
      Legendary
      *
      Offline Offline

      Activity: 1260



      View Profile WWW
      May 25, 2011, 02:02:31 AM
       #97

      Did you choose to encrypt your home directory when installing?  It is an install option.

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

      Activity: 174



      View Profile
      May 25, 2011, 04:36:45 AM
       #98

      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.
      Inaba
      Legendary
      *
      Offline Offline

      Activity: 1260



      View Profile WWW
      May 25, 2011, 05:09:06 AM
       #99

      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.

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

      Activity: 174



      View Profile
      May 25, 2011, 12:30:51 PM
       #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.
      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 32 »
        Print  
       
      Jump to:  

      Sponsored by , a Bitcoin-accepting VPN.
      Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!