Inaba (OP)
Legendary
Offline
Activity: 1260
Merit: 1000
|
|
May 07, 2011, 09:40:52 PM Last edit: September 01, 2011, 07:43:23 PM by Inaba |
|
Bitcoin Mining for Ubuntu Natty Narwhal (Ubuntu v11.04)
You can use this guide with this mining pool perfectly: https://eclipsemc.comHere are the steps you need to take to get mining on Ubuntu's latest OS: This guide is for installing AMD SDK v2.1. If you want to install v2.4 for 6xxxx series cards, please see the next post with instructions for v2.4.If you find this guide useful, please consider donating. Donation address: 168Bgg6HL6bLiUxQDBbdmHRbXtSsMixYCTFirst, install Natty on the HD or USB stick 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. 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 https://eclipsemc.com/files/python-jsonrpc.tar.gz
32-bit 9. screen -d -m -S stream wget http://download2-developer.amd.com/amd/Stream20GA/ati-stream-sdk-v2.1-lnx32.tgz or 64-bit 9. screen -d -m -S stream wget http://download2-developer.amd.com/amd/Stream20GA/ati-stream-sdk-v2.1-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 ati-stream-sdk-v2.1-lnx??.tgz -C /opt 12. sudo tar xvfz 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/ati-stream-sdk-v2.1-lnx32/lib/x86/" >> /etc/ld.so.conf.d/local.conf' 32-bit 22. ./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 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/ati-stream-sdk-v2.1-lnx64/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.1-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.pyIt 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=allTo 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=allTo 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.
|
|
|
Inaba (OP)
Legendary
Offline
Activity: 1260
Merit: 1000
|
|
May 07, 2011, 09:41:53 PM Last edit: September 01, 2011, 07:43:42 PM by Inaba |
|
Bitcoin Mining for Ubuntu Natty Narwhal (Ubuntu v11.04) This guide is for v2.4 of AMD's SDK which supports 6xxxx series cards. If you wish to install v2.1, please see the previous post.If you find this guide useful, please consider donating. Donation address: 168Bgg6HL6bLiUxQDBbdmHRbXtSsMixYCT Here are the steps you need to take to get mining on Ubuntu's latest OS: First, install Natty on the HD or USB stick 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. 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 https://eclipsemc.com/files/python-jsonrpc.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 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-lnx32/include/ --cl-lib-dir=/opt/AMD-APP-SDK-v2.4-lnx32/lib/x86 or 64-bit 21. sudo sh -c 'echo "/opt/AMD-APP-SDK-v2.4-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.pyIt 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=allTo 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=allTo 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.
|
|
|
gusta
Newbie
Offline
Activity: 8
Merit: 0
|
|
May 07, 2011, 10:21:32 PM |
|
Wow cool. Gonna try this out.
|
|
|
|
Spirals
Newbie
Offline
Activity: 15
Merit: 0
|
|
May 07, 2011, 10:57:04 PM |
|
Great guide. I just went through all this on my own yesterday before you posted this. The only major difference with my process for 11.04 (besides running 32-bit) is that I did use the 2.4 AMD ATI SDK, and have seen 5-10% better performance than that shown for my card with the 2.1 SDK on the https://en.bitcoin.it/wiki/Mining_hardware_comparison page. I get 83 Mhash/s, not 78 Mhash/s as shown on the wiki for the ATI 4870. Otherwise, these steps are more or less exactly what I followed!
|
|
|
|
Inaba (OP)
Legendary
Offline
Activity: 1260
Merit: 1000
|
|
May 07, 2011, 10:59:36 PM |
|
I tried 2.4 and got about 10% less performance out of 2.4, so I went back to 2.1. The difference you are probably seeing in the guide is the difference between the modern miner and the one the guide was put together with. Your extra hashes are about what you'd see with the BF_INT performance enhancement introduced into the miners recently.
|
If you're searching these lines for a point, you've probably missed it. There was never anything there in the first place.
|
|
|
jondecker76
|
|
May 09, 2011, 02:24:20 AM |
|
I just followed these steps verbatim, but I get an error trying to run poclbm: jondecker76@miner1:~/poclbm$ ./poclbm.py 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 jondecker76@miner1:~/poclbm$ cd /usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl/ jondecker76@miner1:/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl$ ls array.py clmath.pyc clrandom.py elementwise.py __init__.pyc version.py array.pyc _cl.py clrandom.pyc elementwise.pyc tools.py version.pyc clmath.py _cl.pyc _cl.so __init__.py tools.pyc jondecker76@miner1:/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl$
pyopencl made just fine, and its installed apparently. Any ideas?
|
|
|
|
marcus_of_augustus
Legendary
Offline
Activity: 3920
Merit: 2349
Eadem mutata resurgo
|
|
May 09, 2011, 02:58:42 AM |
|
I think you may need a step after 12. 12a. echo export ATISTREAMSDKROOT=/opt/ati-stream-sdk-v2.1-lnx64 >> .bashrc As per the ATI documentation. The miner will run fine without it but later upgrades, builds, etc may need this variable. Also, I have a recollection that "python-jsonrpc" is no longer necessary to be installed ... but icbw.
|
|
|
|
Inaba (OP)
Legendary
Offline
Activity: 1260
Merit: 1000
|
|
May 09, 2011, 03:14:23 AM |
|
I just followed these steps verbatim, but I get an error trying to run poclbm: jondecker76@miner1:~/poclbm$ ./poclbm.py 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 jondecker76@miner1:~/poclbm$ cd /usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl/ jondecker76@miner1:/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl$ ls array.py clmath.pyc clrandom.py elementwise.py __init__.pyc version.py array.pyc _cl.py clrandom.pyc elementwise.pyc tools.py version.pyc clmath.py _cl.pyc _cl.so __init__.py tools.pyc jondecker76@miner1:/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl$
pyopencl made just fine, and its installed apparently. Any ideas? This problem is almost <i>always</i> related to the fact that the /opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64 environment variable isn't set. What does this command return: echo $PATH Also, make sure you've done steps 11 - 13 properly, as that's where it gets set. As per the ATI documentation. The miner will run fine without it but later upgrades, builds, etc may need this variable.
Also, I have a recollection that "python-jsonrpc" is no longer necessary to be installed ... but icbw. I will add that additional env var if it ever becomes necessary. No sense in setting it if it's not used at the moment. I'll also check into the python-jsonrpc thing and see if that's the case and remove it if so. Thanks for the tips!
|
If you're searching these lines for a point, you've probably missed it. There was never anything there in the first place.
|
|
|
billywilly
Newbie
Offline
Activity: 15
Merit: 0
|
|
May 09, 2011, 06:21:26 AM |
|
When executing this sudo aticonfig --initial -f --adapter=all have this back sudo aticonfig --initial -f --adapter=all Uninitialised file found, configuring. Fail to link to fglrx-libglx.so, please check whether driver is installed correctly Using /etc/X11/xorg.conf Saving back-up to /etc/X11/xorg.conf.fglrx-1
don't know how to fix this, can someone help me?, have 2x6990's in a non crossfire motherboard, but already achieved in windows to got it working (3 cores bug)
|
|
|
|
Inaba (OP)
Legendary
Offline
Activity: 1260
Merit: 1000
|
|
May 09, 2011, 06:46:25 AM |
|
I just recently started getting that error as well, but it doesn't seem to affect anything. I will investigate further as to why it's showing up, but you can ignore it for now.
|
If you're searching these lines for a point, you've probably missed it. There was never anything there in the first place.
|
|
|
Artefact2
|
|
May 09, 2011, 06:50:41 AM |
|
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 fglrx 4. sudo apt-get install g++ libboost-all-dev subversion git-core python-numpy 5. sudo aticonfig --initial -f --adapter=all 6. sudo reboot 7. wget http://download2-developer.amd.com/amd/Stream20GA/ati-stream-sdk-v2.1-lnx64.tgz 8. wget http://download2-developer.amd.com/amd/Stream20GA/icd-registration.tgz 9. sudo tar xvfz ati-stream-sdk-v2.1-lnx64.tgz -C /opt 10. sudo tar xvfz icd-registration.tgz -C / 11. echo export DISPLAY=:0 >> .bashrc 12. echo export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH >> .bashrc 13. source .bashrc 14. wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz 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. tar zxfv pyopencl-0.92.tar.gz 20. cd pyopencl-0.92 21. ./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 22. make -j3 23. sudo make install 24. cd ../python-jsonrpc 25. sudo python setup.py install 26. cd ~ 27. chmod +x phoenix/phoenix.py poclbm/poclbm.py On ArchLinux (yes, this OS is better, just look how simple it is !) : 1. Install catalyst and amdstream from the AUR. 2. Install python2-pyopencl from the official packages and python2-jsonrpc-svn from the AUR. 3. Run your miner. And Ubuntu is supposed to be noob-friendly ? I can't believe it ! Never mind the fact that the "Ubuntu-way" is a real pain to keep updated too.
|
A pool-biased blockchain representation, by me: pident (WTFPL)
|
|
|
|
Spirals
Newbie
Offline
Activity: 15
Merit: 0
|
|
May 09, 2011, 07:42:47 PM |
|
I just followed these steps verbatim, but I get an error trying to run poclbm: jondecker76@miner1:~/poclbm$ ./poclbm.py 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 jondecker76@miner1:~/poclbm$ cd /usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl/ jondecker76@miner1:/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl$ ls array.py clmath.pyc clrandom.py elementwise.py __init__.pyc version.py array.pyc _cl.py clrandom.pyc elementwise.pyc tools.py version.pyc clmath.py _cl.pyc _cl.so __init__.py tools.pyc jondecker76@miner1:/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl$
pyopencl made just fine, and its installed apparently. Any ideas? Did you configure pyopencl with explicit directions to find the AMD APP SDK? I tried initially leaving off the explicit --cl-inc-dir and --cl-lib-dir and I got the same error you had. This fixed it: ./configure.py --cl-inc-dir=/path/to/AMD-APP-SDK-v2.4-lnx32/include --cl-lib-dir=/path/to/AMD-APP-SDK-v2.4-lnx32/lib/x86
|
|
|
|
uck
Member
Offline
Activity: 94
Merit: 10
|
|
May 09, 2011, 11:34:46 PM |
|
might be $LD_LIBRARY_PATH is blank (?)
|
|
|
|
marcus_of_augustus
Legendary
Offline
Activity: 3920
Merit: 2349
Eadem mutata resurgo
|
|
May 10, 2011, 03:27:02 AM |
|
export ATISTREAMSDKROOT=/opt/ati-stream-sdk-v2.1-lnx64 and export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH set these yet?
|
|
|
|
sniper_sniperson
|
|
May 10, 2011, 01:12:17 PM |
|
I just recently started getting that error as well, but it doesn't seem to affect anything. I will investigate further as to why it's showing up, but you can ignore it for now.
I confirm this error too on Xubuntu 11.04 AMD64
|
|
|
|
Inaba (OP)
Legendary
Offline
Activity: 1260
Merit: 1000
|
|
May 10, 2011, 02:38:08 PM |
|
I just recently started getting that error as well, but it doesn't seem to affect anything. I will investigate further as to why it's showing up, but you can ignore it for now.
I confirm this error too on Xubuntu 11.04 AMD64 Is it preventing you from mining? export ATISTREAMSDKROOT=/opt/ati-stream-sdk-v2.1-lnx64 and export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH set these yet? Who is this directed at?
|
If you're searching these lines for a point, you've probably missed it. There was never anything there in the first place.
|
|
|
sniper_sniperson
|
|
May 10, 2011, 05:01:08 PM |
|
I can't start the miner. Just getting non-stop Error: unable to open display (null) when fglrxinfo is called. Driver is installed correctly ... I think root@toor-desktop:~# aticonfig --list-adapters * 0. 02:00.0 ATI Radeon HD 5800 Series
* - Default adapter
|
|
|
|
Spirals
Newbie
Offline
Activity: 15
Merit: 0
|
|
May 10, 2011, 08:50:57 PM |
|
I can't start the miner. Just getting non-stop Error: unable to open display (null) when fglrxinfo is called. Driver is installed correctly ... I think root@toor-desktop:~# aticonfig --list-adapters * 0. 02:00.0 ATI Radeon HD 5800 Series
* - Default adapter Did you set your display env variable? echo export DISPLAY=:0 >> .bashrc source .bashrc
Also, if you're running the miner as root, run the miner as a non-privileged user and see if the error persists. There's no need to be root for it.
|
|
|
|
Vasili Sviridov
|
|
May 10, 2011, 10:12:33 PM |
|
Btw, instead of exporting your library path, it's probably better to add the config file for those paths to /etc/ld.so.conf.d, then they are applied globally to all accounts.
|
1JHYtsmsGq2McwGHmWayVjVtHds8rp1R5
|
|
|
|