Install CGMINER Latest – Ubuntu
-
- 帖子: 3
- 注册时间: 2008-10-25 17:47
Install CGMINER Latest – Ubuntu
有谁用UBUNTU挖LTC的帮我看看那里出问题了
教程是在国外网站找的
有翻译的是用GOOGLE翻译的 不是很准
原教程是没有第24步 我自己添加的 不然无法继续
Install CGMINER Latest – Ubuntu
1. 安装依赖
$ sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config libtool yasm autogen automake
2. 列出你的ATI/ AMD显卡,所以你可以看到他们
$ sudo aticonfig --lsa
输出应该是类似的。
$ sudo aticonfig --lsa
[sudo] password for user:
* 0. 01:00.0 ATI Radeon HD 5700 Series
* - Default adapter
3. 配置您的显卡
$ sudo aticonfig --adapter=all --initial
4. 重新启动使更改生效
$ sudo reboot
5. 请检查显卡是否都可以访问
$ sudo aticonfig --adapter=all --odgt
输出应该是类似的
$ sudo aticonfig --adapter=all --odgt
Adapter 0 - ATI Radeon HD 5700 Series
Sensor 0: Temperature - 67.00 C
6. 进入tmp目录
$ cd /tmp
7. 成为超级用户
$ sudo su
输入root密码。
8. 下载AMD-APP-SDK
注:下载该文件,你要同意在这里了AMD许可协议http://developer.amd.com/amd-license-agreement/
对于只有32位
# wget http://developer.amd.com/wordpress/medi ... -lnx32.tgz
对于只有64位
# wget http://developer.amd.com/wordpress/medi ... -lnx64.tgz
9. 解压文件
对于只有32位
# tar -xvzf AMD-APP-SDK-v2.8-lnx32.tgz
这会给你两个tar文件。
a. AMD-APP-SDK-v2.8-RC-lnx32.tgz
b. icd-registration.tgz
对于只有64位
# tar -xvzf AMD-APP-SDK-v2.8-lnx64.tgz
这会给你两个。tar文件。
a. AMD-APP-SDK-v2.8-RC-lnx64.tgz
b. icd-registration.tgz
10. 解压AMD-APP-SDK-V2.8-RC文件
对于只有32位
# tar -xvzf AMD-APP-SDK-v2.8-RC-lnx32.tgz
对于只有64位
# tar -xvzf AMD-APP-SDK-v2.8-RC-lnx64.tgz
11. Enter the new directory
对于只有32位
# cd AMD-APP-SDK-v2.8-RC-lnx32
对于只有64位
# cd AMD-APP-SDK-v2.8-RC-lnx64
12. 复制库文件。
对于只有32位
# cp -pv lib/x86/* /usr/lib/
对于只有64位
# cp -pv lib/x86_64/* /usr/lib/
13. 包含文件复制到硬盘驱动器
对于32位或64位
# rsync -avl include/CL/ /usr/include/CL/
14. Navigate back to /tmp directory
# cd ..
15. Untar icd-registration.tgz
# tar -xvzf icd-registration.tgz
16. Copy OpenCL files to your hard drive
# rsync -avl etc/OpenCL/ /etc/OpenCL/
17. Set up the symbolic links
# ldconfig
18. Reboot your system.
# reboot
You should now have OpenCL enabled on your system
19. Download CGMINER
$ wget -O cgminer-master.zip https://github.com/ckolivas/cgminer/archive/master.zip
20. Download ADL_SDK_5.0
This will add ADL support for cgminer
$ wget http://www.files.distrogeeks.com/ADL_SDK_5.0.zip
21. Unzip ADL_SDK_5.0
$ unzip ADL_SDK_5.0
22. Unzip CGMiner
$ unzip cgminer-master.zip
23. Enter cgminer-master Directory
$ cd cgminer-master
24. New ADL_SDK Folder
$ mkdir ADL_SDK
25. Copy ADL_SDK include files
$ cp ../include/* ADL_SDK/
26. Run autogen.sh script
$ ./autogen.sh --enable-scrypt
You should get this……
Configuration Options Summary:
curses.TUI...........: FOUND: -lncurses
OpenCL...............: FOUND. GPU mining support enabled
scrypt...............: Enabled
ADL..................: SDK found, GPU monitoring support enabled
BitForce.FPGAs.......: Disabled
Icarus.FPGAs.........: Disabled
ModMiner.FPGAs.......: Disabled
Ztex.FPGAs...........: Disabled
Compilation............: make (or gmake)
CPPFLAGS.............:
CFLAGS...............: -g -O2
LDFLAGS..............: -lpthread
LDADD................: -ldl -lcurl compat/jansson/libjansson.a -lpthread -lOpenCL -lm
Installation...........: make install (as root if needed, with 'su' or 'sudo')
prefix...............: /usr/local
27. Install CGMiner
$ sudo make install
28. Exit Super User
$ exit
29. Navigate back to root directory
$ cd
30. Start CGMiner
$ cgminer
Your should get this…
[2013-02-10 02:01:42] Started cgminer 2.10.4
[2013-02-10 02:01:43] Need to specify at least one pool server.
Input server details.
URL:
Congratulations you have installed CGMINER in Ubuntu