Bitcoin Mining For Ubuntu – This guide describes the steps you need to take to install a miner on Linux, in particular, Ubuntu. It is intended to install AMD SDK version 2.1 or 2.4. All commands are entered into the console.
Using the terminal window or SSH connections, the following commands are executed:
1. sudo add-apt-repository ppa: ubuntu-x-swat / x-updates
2. Enter your password if requested by the system.
3. sudo apt-get update
4. sudo apt-get install screen
5. First, we will install the packages we need. To parallel installation we could download a few files, run the installation using the command screen:
screen -S the update sudo the apt-the get the install the fglrx vim The openssh-server g ++ libboost-all-dev a subversion the git-core for python-numpy
This command will create a separate console window where updates will be performed.
6. When the updates start to install, press CTRL-A, then “d”. This will disconnect from the window created using the screen command and return you to your command prompt.
7. wget http://download2-developer.amd.com/amd/Stream20GA/icd-registration.tgz
For version 2.4, you do not need to download this archive, since it will be located inside the archive, which will be downloaded further.
8. wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz
9. Download the SDK application:For a 32-bit system, execute:
If you install the AMD SDK version 2.1:
wget http : //download2-developer.amd/amd/Stream20GA/ati-stream-sdk-v2.1-lnx32.tgz
if 2.4, then execute :
wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx32.tgz
For a 64-bit system, do this:
Version 2.1:
wget http: // download2-developer. amd.com/amd/Stream20GA/ati-stream-sdk-v2.1-lnx64.tgz
Version 2.4:
wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4 -lnx64.tgz
And wait for the download to complete.
10. If the 32-bit version is downloaded:
2.1:
sudo tar xvfz ati-stream-sdk-v2.1-lnx32.tgz -C / opt
2.4:
sudo tar xvfz AMD-APP-SDK-v2.4-lnx32.tgz – C / opt
For 64-bit:
2.1:
sudo tar xvfz ati-stream-sdk-v2.1-lnx64.tgz -C / opt
2.4:
sudo tar xvfz AMD-APP-SDK-v2.4-lnx64.tgz -C / opt
11. Unpack icd-registration.tgz. As the path, specify the / – root directory, then the folder with configs will be added to / etc. For program version 2.1:
sudo tar xvfz icd-registration.tgz -C /
For 2.4:
sudo tar xvfz /opt/AMD-APP-SDK-v2.4-lnx32/icd-registration.tgz -C /
or, depending on the program
bits : sudo tar xvfz /opt/AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz -C /
12. sudo tar zxfv pyopencl-0.92.tar.gz -C / opt
13. screen -r update
13a. If you get the message “There is no screen to be resumed” go to the next step. Otherwise, wait until the update is complete. When it is over, press Ctrl + d to delete the created screen.
14. wget https://eclipsemc.com/files/python-jsonrpc.tar.gz
15. sudo tar xvfz python-jsonrpc.tar.gz -C / opt
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 /opt/pyopencl-0.92
21. In the case of 32-bit:
For program version 2.1:
sudo sh -c ‘echo “/opt/ati-stream-sdk-v2.1-lnx32/lib/x86/” >> /etc/ld.so.conf .d / local.conf ‘
./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
Version 2.4:
sudo sh -c ‘echo “/opt/AMD-APP-SDK-v2.4-lnx32/lib/x86/” >> / etc / ld. so.conf.d / local.conf ‘
./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
64-bit:
For program version 2.1:
sudo sh -c ‘echo “/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64 / “>> /etc/ld.so.conf.d/local.conf ‘
./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
Version 2.4:
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
22. sudo ldconfig
23. source ~ / .bashrc
24. make -j3
25. sudo make install
26. cd ../python-jsonrpc
27. sudo python setup.py install
28. cd ~
29. chmod + x phoenix / phoenix.py poclbm / poclbm.py
30. sudo aticonfig –initial -f –adapter = all
31. Restart the computer:
sudo reboot
That’s all. Now you have a fully working Phoenix miner with poclbm installed. To check the performance you should go to the poclbm directory:
cd poclbm
and run poclbm:
./poclbm.py
You should see your CPU and your graphics availability graphical cores.
There are some more useful commands for working with video cards:
To display temperatures on your cores , run:
aticonfig –odgt –adapter = all
To display the clock frequency on your cores:aticonfig –odgc –adapter = all
Display or set the rotation speed of the cooler.
Show cooler rotation speed:
aticonfig –pplib-cmd “get fanspeed 0”
Set the rotational speed of the cooler 100%:
aticonfig –pplib-cmd “set fanspeed 0 100”
Show the speed of the cooler on the second map:
export DISPLAY =: 0.1; aticonfig –pplib-cmd “get fanspeed 0”
You can replace 1 with 2, 3, etc. in accordance with the number of video cards in the system.
Clock change. To set the core clock frequency level of 900MHz and the memory clock frequency of 1000MHz on all cards (you can change according to your desire):
aticonfig –od-setclocks = 900,1000 –adapter = all
To set these values for a single card, change –adapter = all to the number of the adapter, the change in which you want to make.