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.
Optional First Step (Skip this if you don't care about SSH):From here on out, the steps should be conducted either in a terminal window or an SSH session.
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
That's it, you're done.
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
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
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
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
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 speedaticonfig --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