Author

Topic: Building a rock solid multi-gpu linux mining rig with CEntOS 6.0 (Read 49597 times)

hero member
Activity: 924
Merit: 501
With that post I am locking this thread.  I agree that Centos is no longer the best or perhaps even a viable solution. 
member
Activity: 101
Merit: 10
Miner / Engineer
FYI, I am returning here to say I gave up and just went with LTCRabbit.  Loaded the USB stick up and booted and the damn thing started mining within 2 minutes of boot up!  At 690 khash/s per 280x no less!  Seriously, I didn't touch anything and it started mining (to the author's pool no less, but that's normal until you configure it to use your pool).  It was plug-boot-and play litterly.  Yeah, don't frack with CentOS - just use LTCRabbit.

I then went with BAMT Scrypt version; but, I noticed why LTCRabbit has in their release notes "fixed a number of bugs in BAMT."  Hehe.  It didn't feel as refined and didn't work out of the box.  I had to tweak their version of the 'default' cgminer.conf file.  

I went back to LTCRabbit and am just dumdfounded how rock-solid from boot.  Then again, I already had 280x GPUs so if you have anything else, it will require you to tinker with the cgminer.conf file (and will lockup if you have lower-end GPUs - just edit-and-break the cgminer.conf within the first 20s of boot - because you have 20 seconds of delay before it starts mining).

Im looking to build my first rig
Im getting 4 - SAPPHIRE AMD ATI Radeon HD 7990 6GB GDDR5 21207-00-43G
Im not sure what motherboard i can use for all 4 cards nor where to go from there in terms of flashing bios and software support

any help will be appreciated
Thanks in advance  

This is getting off-topic as this thread is about building for CentOS.

But, any motherboard that supports 4 PCIe slots will do.  There are plenty out there, search around for cheapest posted in Bitcointalk.

Also note that each of those 7990s will draw close to 400 to 450w (500-550 if you push them hard with I 20).  Running 4 in a single rig is going to require two PSUs, and a 20A circuit to feed both PSUs (or two dedicated 15A circuits).

If you feel it's too complicated and a waste since you can't run that many, hit me up in PM - I'll buy the 7990s from ya!  Hehe
newbie
Activity: 2
Merit: 0
Im looking to build my first rig
Im getting 4 - SAPPHIRE AMD ATI Radeon HD 7990 6GB GDDR5 21207-00-43G
Im not sure what motherboard i can use for all 4 cards nor where to go from there in terms of flashing bios and software support

any help will be appreciated
Thanks in advance 
full member
Activity: 140
Merit: 101
One tip with LTCRabbit, make sure to use at least a 4GB thumbdrive.  Even though it's <2 GB distro, it seemed to choke when put on anything smaller than a 4GB thumbdrive.  Not really sure why, maybe swap space or some other non-sense.  But the fact is I couldn't get it to boot and run reliably on anything smaller than 4GB.
member
Activity: 101
Merit: 10
Miner / Engineer
I've had great luck on more modern cards using the distro from LTCRabbit.  I know that doesn't help your problem, but when we moved to the R9 290x we couldn't make it work under CentOS and ended up changing distros.  Prior to that time we have been mining with 6870x2's.

The nice thing about the LTCRabbit distro is that it "just works".  No fiddling around with anything other than a couple of config files (to make it mine anywhere else other than LTCRabbit).

Thank you for this.  I first tried Ubuntu but since I was using it mainly for Nvidia (successfully) I ran into lots of drivers and display issues when I swapped in AMD gpus (I am all headless on my boxes here).  I decided that if i was going to format to wipe Nvidia, I'd try something more known to work smoothly.  This CentOS setup sounded like the key - but, doh!

If I didn't find a solution today, and opening it to the community didn't resolve it, I was going to give Rabbit or BAMT a try tonight.

full member
Activity: 140
Merit: 101
I've had great luck on more modern cards using the distro from LTCRabbit.  I know that doesn't help your problem, but when we moved to the R9 290x we couldn't make it work under CentOS and ended up changing distros.  Prior to that time we have been mining with 6870x2's.

The nice thing about the LTCRabbit distro is that it "just works".  No fiddling around with anything other than a couple of config files (to make it mine anywhere else other than LTCRabbit).
member
Activity: 101
Merit: 10
Miner / Engineer
Got a problem...  It may be because I am using the latest 2.9 SDK and 13.12 drivers.

I have a collection of GPUs, so I was thinking of using the latest drivers as it seems the ones in the guide is quite old.

R9 280x
R9 290
HD 7970

CentOS 6.0
Using my local user account, not a separate user 'miner' (added myself as sudoers as well, so shouldn't be a problem using sudo).


Things were humming along nicely until I got to the AMD driver install (after the SDK install and reboot).  I try to run this:

Code:
(as root)
[root@miner01 miningpacks]# sh amd-catalyst-13.12-linux-x86.x86_64.run

And I get this error almost immediately:

Code:
=====================================================================
 AMD Catalyst(TM) Proprietary Driver Installer/Packager
=====================================================================

error: Detected X Server version 'XServer _64a' is not supported. Supported versions are X.Org 6.9 or later, up to XServer 1.10 (default:v2:x86_64:lib:XServer _64a:none:2.6.32-431.3.1.el6.x86_64:)
Installation will not proceed.

Removing temporary directory: fglrx-install.LqjBJn

During the guide, when the author says to replace the CentOS-Base.repo with his own, I got a lot of 404s and "No more mirros to try." So i reverted back to the one that came with CentOS.  Maybe this is the reason?  It installed a newer version of X by using the default repos?

EDIT: I'll try to uninstall x11 and look for other mirrors per the comments (now that I re-read the script file) /EDIT

Also, I noticed that the author said it was ok to have multiple devel kernels' loaded.  Humm.  I could not find a matching -devel kernel to match my kernel.  So it looks like I installed two kernels?

Code:
[root@miner01 ~]$ sudo yum list installed | grep kernel-*
[sudo] password for eric:
dracut-kernel.noarch                004-32.el6                         installed
kernel.x86_64                       2.6.32-71.el6                      installed
kernel.x86_64                       2.6.32-431.3.1.el6                 @updates
kernel-devel.x86_64                 2.6.32-431.3.1.el6                 @updates
kernel-firmware.noarch              2.6.32-431.3.1.el6                 @updates
kernel-headers.x86_64               2.6.32-431.3.1.el6                 @updates

As of now, I'm stuck.  I tried downgrading, but yum only downgrades to known packages (all still 13.*).

Code:
[user@miner01 miningpacks]# yum downgrade xorg-x11-server* xorg-x11-drv*
Loaded plugins: fastestmirror, refresh-packagekit
Setting up Downgrade Process
Loading mirror speeds from cached hostfile
 * base: centos.unmeteredvps.net
 * extras: mirror.ash.fastserv.com
 * updates: centosb5.centos.org
No Match for available package: xorg-x11-server-Xdmx-1.13.0-23.el6.centos.x86_64
No Match for available package: xorg-x11-server-Xephyr-1.13.0-23.el6.centos.x86_64
No Match for available package: xorg-x11-server-Xnest-1.13.0-23.el6.centos.x86_64
Only Upgrade available on package: xorg-x11-server-Xorg-1.13.0-23.el6.centos.x86_64
No Match for available package: xorg-x11-server-Xvfb-1.13.0-23.el6.centos.x86_64
Only Upgrade available on package: xorg-x11-server-common-1.13.0-23.el6.centos.x86_64
No Match for available package: xorg-x11-server-devel-1.13.0-23.el6.centos.i686
No Match for available package: xorg-x11-server-devel-1.13.0-23.el6.centos.x86_64
No Match for available package: xorg-x11-server-source-1.13.0-23.el6.centos.noarch
Only Upgrade available on package: xorg-x11-server-utils-7.5-13.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-acecad-1.5.0-6.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-aiptek-1.4.1-4.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-apm-1.2.5-5.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-ast-0.97.0-2.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-ati-7.1.0-3.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-ati-firmware-7.1.0-3.el6.noarch
Only Upgrade available on package: xorg-x11-drv-cirrus-1.5.1-2.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-dummy-0.3.6-2.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-elographics-1.4.1-2.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-evdev-2.7.3-5.el6.x86_64
No Match for available package: xorg-x11-drv-evdev-devel-2.7.3-5.el6.i686
No Match for available package: xorg-x11-drv-evdev-devel-2.7.3-5.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-fbdev-0.4.3-2.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-fpit-1.4.0-5.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-glint-1.2.8-3.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-hyperpen-1.4.1-4.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-i128-1.3.6-3.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-i740-1.3.4-5.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-intel-2.21.12-2.el6.x86_64
No Match for available package: xorg-x11-drv-intel-devel-2.21.12-2.el6.i686
No Match for available package: xorg-x11-drv-intel-devel-2.21.12-2.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-keyboard-1.6.2-7.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-mach64-6.9.3-4.1.el6_4.x86_64
Only Upgrade available on package: xorg-x11-drv-mga-1.6.1-10.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-modesetting-0.5.0-1.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-mouse-1.8.1-7.el6.x86_64
No Match for available package: xorg-x11-drv-mouse-devel-1.8.1-7.el6.i686
No Match for available package: xorg-x11-drv-mouse-devel-1.8.1-7.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-mutouch-1.3.0-4.el6.x86_64
Only Upgrade available on package: 1:xorg-x11-drv-nouveau-1.0.1-4.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-nv-2.1.20-4.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-openchrome-0.3.0-3.20120806git.el6.x86_64
No Match for available package: xorg-x11-drv-openchrome-devel-0.3.0-3.20120806git.el6.i686
No Match for available package: xorg-x11-drv-openchrome-devel-0.3.0-3.20120806git.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-penmount-1.5.0-4.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-qxl-0.1.0-7.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-r128-6.9.1-1.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-rendition-4.2.5-2.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-s3virge-1.10.6-2.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-savage-2.3.6-2.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-siliconmotion-1.7.7-2.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-sis-0.10.7-2.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-sisusb-0.9.6-2.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-synaptics-1.6.2-13.el6.x86_64
No Match for available package: xorg-x11-drv-synaptics-devel-1.6.2-13.el6.i686
No Match for available package: xorg-x11-drv-synaptics-devel-1.6.2-13.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-tdfx-1.4.5-2.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-trident-1.3.6-4.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-v4l-0.2.0-6.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-vesa-2.3.2-4.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-vmmouse-12.9.0-10.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-vmware-12.0.2-3.20120718gite5ac80d8f.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-void-1.4.0-3.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-voodoo-1.2.5-3.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-wacom-0.16.1-4.el6.x86_64
No Match for available package: xorg-x11-drv-wacom-devel-0.16.1-4.el6.i686
No Match for available package: xorg-x11-drv-wacom-devel-0.16.1-4.el6.x86_64
Only Upgrade available on package: xorg-x11-drv-xgi-1.6.0-18.20121114git.el6.x86_64
Nothing to do


EDIT 2:

Ok, I'm trying to force an install of x11 1.7, but yum is not being cooperative. 

It seems the only x11 available by yum is 1.13.  So I downloaded 1.7 directly from the mirrors and try running:


Code:
yum localinstall xorg-x11-server-Xorg-1.7.7-26.el6_0.3.x86_64.rpm

It seems Yum does version checks, and wants to install what it knows is online:

Code:
Dependencies Resolved

============================================================================================================================
 Package                             Arch                 Version                               Repository             Size
============================================================================================================================
Installing for dependencies:
 hal                                 x86_64               0.5.14-11.el6                         base                  375 k
 hal-info                            noarch               20090716-3.1.el6                      base                   56 k
 pm-utils                            x86_64               1.2.5-10.el6                          base                  108 k
 system-setup-keyboard               x86_64               0.7-4.el6                             base                   11 k
 xorg-x11-drv-evdev                  x86_64               2.7.3-5.el6                           base                   40 k
 xorg-x11-drv-vesa                   x86_64               2.3.2-4.el6                           base                   20 k
 xorg-x11-drv-void                   x86_64               1.4.0-3.el6                           base                   11 k
 xorg-x11-server-Xorg                x86_64               1.13.0-23.1.el6.centos                updates               1.3 M

Transaction Summary
============================================================================================================================
Install       8 Package(s)
Upgrade       0 Package(s)

Total download size: 1.9 M
Installed size: 5.2 M
Is this ok [y/N]:

hero member
Activity: 924
Merit: 501
The problem has never been cgminer, it's been Centos.
legendary
Activity: 3416
Merit: 1912
The Concierge of Crypto
Is this updated? Latest cgminer that does GPUs is 3.7.2 I think.
legendary
Activity: 4284
Merit: 1316
I don't use it for anything else either.  I will bump it up to 14 to see how that goes. 

Rebooting fixed the GUI although I am just sshing in still.

If I have time in a bit, I'll try to re-work the instructions in those two spots.  I was just re-arranging the order there I believe and correcting that one typo.

Thanks!


Yea, that's why I do that. You could just give miner a password at the end of the process and then you can log in as miner and use it without needing to sudo.  

Great advice and suggestions.  I'll re-work the instructions just as soon as I can.  (Unless you who just did this want to make the changes necessary, I'll just copy and paste your code).  

Thanks again!

ps. I run at I=14 since I don't use the box for anything else.
hero member
Activity: 924
Merit: 501
Yea, that's why I do that. You could just give miner a password at the end of the process and then you can log in as miner and use it without needing to sudo.  

Great advice and suggestions.  I'll re-work the instructions just as soon as I can.  (Unless you who just did this want to make the changes necessary, I'll just copy and paste your code).  

Thanks again!

ps. I run at I=14 since I don't use the box for anything else.
legendary
Activity: 4284
Merit: 1316
Hi,
I think I would prefer to run it as a dedicated user vs root  (I didn't run cgminer using sudo yet, but will try it).

It is mining with your test now, so you should see some coins.  I need to adjust the aggressiveness a bit.

It does appear that the GUI is not working right now, but I'm okay with that.  ;-)  I'm not messing with things at the moment.



AHHH, nice.  I could never figure out how to run it as sudo.  I run as a dedicated user.  NICE FIND!

For me the error cleans up when I run the same:
export DISPLAY=:0

as the dedicated user, so your solution makes alot of sense.


Oh, you are golden now.  
legendary
Activity: 4284
Merit: 1316
1. One thing I'd emphasize by the yum update section is to not do any GUI updates either.

2. The only issue I am having now is that if I am running as the user "miner" e.g.:
su -l miner 

Then it is not working.

If I am running as root with your example here (to say thanks):
./cgminer -o stratum+tcp://mining.eligius.st:3334 -u 1NQc6tCtRmT8zBeLKNpboFaUBMLcxDwUm6 -p x0 -I 9 --per-device-stats 2>logfile.txt

then it is mining.

So the only remaining hitch is to figure out why it is running okay as root, but not as the miner user:


-rwxrwxr-x.  1 miner miner 1010558 May 28 14:15 cgminer



So, if others have problems, here are two things to try:
sudo DISPLAY=:0 fglrxinfo

And as root try running cgminer.

e.g.
cd /home/miner/cgminer
./cgminer  -n



Thanks for the tips.

hero member
Activity: 924
Merit: 501
AHHH, nice.  I could never figure out how to run it as sudo.  I run as a dedicated user.  NICE FIND!

For me the error cleans up when I run the same:
export DISPLAY=:0

as the dedicated user, so your solution makes alot of sense.


Oh, you are golden now.  
legendary
Activity: 4284
Merit: 1316
j.
lsmod | grep fglrx
fglrx                2763401  225

I did this:
sudo DISPLAY=:0 fglrxinfo


And NOW I got this:

cgminer -n
 [2013-05-28 14:56:54] CL Platform 0 vendor: Advanced Micro Devices, Inc.                   
 [2013-05-28 14:56:54] CL Platform 0 name: AMD Accelerated Parallel Processing                   
 [2013-05-28 14:56:54] CL Platform 0 version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)                   
 [2013-05-28 14:56:54] Platform 0 devices: 6                   
 [2013-05-28 14:56:54]    0   Cayman                   
 [2013-05-28 14:56:54]    1   Cayman                   
 [2013-05-28 14:56:54]    2   Cayman                   
 [2013-05-28 14:56:54]    3   Cayman                   
 [2013-05-28 14:56:54]    4   Cayman                   
 [2013-05-28 14:56:54]    5   Cayman                   
 [2013-05-28 14:56:54] GPU 0 AMD Radeon HD 6990 hardware monitoring enabled                   
 [2013-05-28 14:56:54] GPU 1 AMD Radeon HD 6990 hardware monitoring enabled                   
 [2013-05-28 14:56:54] GPU 2 AMD Radeon HD 6990 hardware monitoring enabled                   
 [2013-05-28 14:56:54] GPU 3 AMD Radeon HD 6990 hardware monitoring enabled                   
 [2013-05-28 14:56:54] GPU 4 AMD Radeon HD 6990 hardware monitoring enabled                   
 [2013-05-28 14:56:54] GPU 5 AMD Radeon HD 6990 hardware monitoring enabled                   
 [2013-05-28 14:56:54] 6 GPU devices max detected   


Fingers crossed that I can mine now.  ;-)

legendary
Activity: 4284
Merit: 1316
1. After going through it again, perhaps just moving this to the later section after the git command would be enough:

cp /home/miner/miningpacks/ADL-SDK-3point0-temp/include/*.h /home/miner/cgminer/ADL_SDK
rm -rf /home/miner/ADL-SDK-3point0-temp


2. I did reinstall it all from the live CD, and no luck.  I made sure there were no updates by from yum at all.  

a. Now the kernels look identical to yours:
yum list installed | grep kernel-*
dracut-kernel.noarch                004-32.el6                         installed
kernel.x86_64                       2.6.32-71.el6                      installed
kernel-devel.x86_64                 2.6.32-71.el6                      @base    
kernel-devel.x86_64                 2.6.32-71.29.1.el6                 @updates
kernel-firmware.noarch              2.6.32-71.el6                      installed
kernel-headers.x86_64               2.6.32-71.29.1.el6                 @updates


b.
aticonfig --list-adapters
* 0. 13:00.0 AMD Radeon HD 6990
  1. 12:00.0 AMD Radeon HD 6990
  2. 0b:00.0 AMD Radeon HD 6990
  3. 0a:00.0 AMD Radeon HD 6990
  4. 07:00.0 AMD Radeon HD 6990
  5. 06:00.0 AMD Radeon HD 6990

c.
ps aux | grep X
root      3417  3.6 16.9 216720 314916 tty1    Ss+  14:04   0:47 /usr/bin/Xorg :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-4iMIIH/database -nolisten tcp vt1

d. locate fglrx64
looks identical to yours

e. uname -r
2.6.32-71.el6.x86_64


f.  lspci -nn | grep VGA
07:00.0 VGA compatible controller [0300]: ATI Technologies Inc Device [1002:671d]
0b:00.0 VGA compatible controller [0300]: ATI Technologies Inc Device [1002:671d]
13:00.0 VGA compatible controller [0300]: ATI Technologies Inc Device [1002:671d]

g.
env DISPLAY=:0.0 aticonfig --pplib-cmd "set fanspeed 0 100"
PPLIB command execution is Successful!
(and the fan revs up)

h.
glxgears
44174 frames in 5.0 seconds = 8834.614 FPS
44441 frames in 5.0 seconds = 8888.093 FPS

i.
export DISPLAY=:0
./cgminer -n
No protocol specified
 [2013-05-28 14:39:08] CL Platform 0 vendor: Advanced Micro Devices, Inc.                    
 [2013-05-28 14:39:08] CL Platform 0 name: AMD Accelerated Parallel Processing                    
 [2013-05-28 14:39:08] CL Platform 0 version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)                    
 [2013-05-28 14:39:08] Error -1: Getting Device IDs (num)                    
 [2013-05-28 14:39:08] clDevicesNum returned error, no GPUs usable                    
 [2013-05-28 14:39:08] 0 GPU devices max detected        


hero member
Activity: 924
Merit: 501
I do not know if this is important but  my results differ from yours very slightly:


Code:
 yum list installed | grep kernel-*
dracut-kernel.noarch                004-32.el6                         installed
kernel.x86_64                       2.6.32-71.el6                      installed
kernel-devel.x86_64                 2.6.32-71.el6                      @base
kernel-devel.x86_64                 2.6.32-71.29.1.el6                 @updates
kernel-firmware.noarch              2.6.32-71.el6                      installed
kernel-headers.x86_64               2.6.32-71.29.1.el6                 @updates
legendary
Activity: 4284
Merit: 1316
Yeah, just bizarre. I believe I did, but did it twice.  I will re-try one more time.  ;-)


$ ./cgminer -n
No protocol specified
 [2013-05-28 11:05:26] CL Platform 0 vendor: Advanced Micro Devices, Inc.                   
 [2013-05-28 11:05:26] CL Platform 0 name: AMD Accelerated Parallel Processing                   
 [2013-05-28 11:05:26] CL Platform 0 version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)                   
 [2013-05-28 11:05:26] Error -1: Getting Device IDs (num)                   
 [2013-05-28 11:05:26] clDevicesNum returned error, no GPUs usable                   
 [2013-05-28 11:05:26] 0 GPU devices max detected 
 

and
.cgminer -n

just fails, huh?

That's what I was getting before I wrote the script.  Did you absolutely make sure you cut off the yum upgrades?  Because yum is not friendly for this, if you did not modify the yum conf file before running a yum update/upgrade that will break it.


hero member
Activity: 924
Merit: 501
and
.cgminer -n

just fails, huh?

That's what I was getting before I wrote the script.  Did you absolutely make sure you cut off the yum upgrades?  Because yum is not friendly for this, if you did not modify the yum conf file before running a yum update/upgrade that will break it.

legendary
Activity: 4284
Merit: 1316
Hi,
I am ssh'ing in right now, but can go to it if needed.  It has been running nicely for about 2 years now until I decided to "upgrade" on Friday.  3 AMD Radeon HD 6990s.  2 GB RAM.  500GB HDD.

Thanks for the reply, regarding your questions:

1.
$ glxgears
49458 frames in 5.0 seconds = 9891.541 FPS
49647 frames in 5.0 seconds = 9929.385 FPS
49683 frames in 5.0 seconds = 9936.522 FPS
...


2.
env DISPLAY=:0.0 aticonfig --pplib-cmd "set fanspeed 0 100"
PPLIB command execution is Successful!

3.
env DISPLAY=:0.1 aticonfig --pplib-cmd "set fanspeed 0 100"
PPLIB command execution is Successful!



Beautiful and I will incorporate your changes asap. 

Can you see glxgears?

$ glxgears
6564 frames in 5.0 seconds = 1312.776 FPS
39798 frames in 5.0 seconds = 7959.491 FPS

Are you at the head?  Or remote?  What's your setup?

let me know what this returns:

env DISPLAY=:0.0 aticonfig --pplib-cmd "set fanspeed 0 100"

or

env DISPLAY=:0.1 aticonfig --pplib-cmd "set fanspeed 0 100"


hero member
Activity: 924
Merit: 501
Beautiful and I will incorporate your changes asap. 

Can you see glxgears?

$ glxgears
6564 frames in 5.0 seconds = 1312.776 FPS
39798 frames in 5.0 seconds = 7959.491 FPS

Are you at the head?  Or remote?  What's your setup?

let me know what this returns:

env DISPLAY=:0.0 aticonfig --pplib-cmd "set fanspeed 0 100"

or

env DISPLAY=:0.1 aticonfig --pplib-cmd "set fanspeed 0 100"

legendary
Activity: 4284
Merit: 1316
I do see this too:

$lspci -nn | grep VGA
07:00.0 VGA compatible controller [0300]: ATI Technologies Inc Device [1002:671d]
0b:00.0 VGA compatible controller [0300]: ATI Technologies Inc Device [1002:671d]
13:00.0 VGA compatible controller [0300]: ATI Technologies Inc Device [1002:671d]


$ps aux | grep X
root      3333  0.2 10.1 182620 188628 tty1    Ss+  11:42   0:06 /usr/bin/Xorg :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-BjwGpq/database -nolisten tcp vt1


sudo DISPLAY=:0 fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon HD 6990
OpenGL version string: 4.1.10666 Compatibility Profile Context



display: :0.0  screen: 1
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon HD 6990
OpenGL version string: 4.1.10666 Compatibility Profile Context



display: :0.0  screen: 2
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon HD 6990
OpenGL version string: 4.1.10666 Compatibility Profile Context



display: :0.0  screen: 3
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon HD 6990
OpenGL version string: 4.1.10666 Compatibility Profile Context



display: :0.0  screen: 4
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon HD 6990
OpenGL version string: 4.1.10666 Compatibility Profile Context



display: :0.0  screen: 5
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: AMD Radeon HD 6990
OpenGL version string: 4.1.10666 Compatibility Profile Context
legendary
Activity: 4284
Merit: 1316
Hi,
I had a couple of comments on the guide, if you are looking for feedback.  I don't think it is my error,
but if so, my apologies!  (I was using the instructions on page 1, note later in the thread, hope that was the current one).

This has been helpful, although I am not yet successful in running it yet - I went from Ubuntu 10.10 to upgrade from getwork thinking it would not be difficult as it was not when I set up 10.10 several years ago, but this has been frustrating.  (With Ubunutu I was not having success getting the drivers etc set, so thought I'd try CentOS 6.0 ).

I'm hoping I'll have some success shortly, but am stuck right now.


=====================================================================
1.  Looks like a typo:

At one point you have "3point0" and then later reference "5point0".  Just FYI:
cp /home/miner/miningpacks/ADL-SDK-3point0-temp/include/*.h /home/miner/cgminer/ADL_SDK
rm -rf /home/miner/ADL-SDK-3point0-temp

cd /home/miner/cgminer/ADL_SDK
cp /home/miner/miningpacks/ADL-SDK-5point0-temp/include/*.h .
rm -rf /home/miner/miningpacks/ADL-SDK-5point0-temp/



=====================================================================
2.
Also in one spot, you need to add a mkdir to make:
mkdir /home/miner/cgminer/
mkdir /home/miner/cgminer/ADL_SDK

before doing this:
cp /home/miner/miningpacks/ADL-SDK-3point0-temp/include/*.h /home/miner/cgminer/ADL_SDK
rm -rf /home/miner/ADL-SDK-3point0-temp



BUT later, if you do that git will complain that the cgminer directory exists.



=====================================================================
3. Regarding the installation path for the ATI Catalyst driver install in Step 6, the default is /
Is that what you had used for the installation path?

Just notes for some others:
You want "Package Generation " and "RedHat Packages" and then "RedHat/RHEL6_64a" (you need to hit SPACE to select it in the terminal (not running it in the GUI, but ssh'd in, then return).

Then you want "Generate Distribution Specific Driver Package" (not Install Driver 8.841 on X.Org 6.9 or later 64-bit".)

         


=====================================================================
4. What I am seeing right now, I think it is the kernel issue you had mentioned about non-matching
kernels maybe, but I am attempting to figure out how to fix it:

#aticonfig --list-adapters
* 0. 13:00.0 AMD Radeon HD 6990
  1. 12:00.0 AMD Radeon HD 6990
  2. 0b:00.0 AMD Radeon HD 6990
  3. 0a:00.0 AMD Radeon HD 6990
  4. 07:00.0 AMD Radeon HD 6990
  5. 06:00.0 AMD Radeon HD 6990
 
 
$yum list installed | grep kernel-*
dracut-kernel.noarch                004-33.2.el6_0                     @updates
kernel.x86_64                       2.6.32-71.el6                      installed
kernel.x86_64                       2.6.32-71.29.1.el6                 @updates
kernel-devel.x86_64                 2.6.32-71.29.1.el6                 @updates
kernel-firmware.noarch              2.6.32-71.29.1.el6                 @updates
kernel-headers.x86_64               2.6.32-71.29.1.el6                 @updates

$ uname -r
2.6.32-71.29.1.el6.x86_64




$./cgminer -n
No protocol specified
 [2013-05-28 11:05:26] CL Platform 0 vendor: Advanced Micro Devices, Inc.                   
 [2013-05-28 11:05:26] CL Platform 0 name: AMD Accelerated Parallel Processing                   
 [2013-05-28 11:05:26] CL Platform 0 version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)                   
 [2013-05-28 11:05:26] Error -1: Getting Device IDs (num)                   
 [2013-05-28 11:05:26] clDevicesNum returned error, no GPUs usable                   
 [2013-05-28 11:05:26] 0 GPU devices max detected 
 
 
 
hero member
Activity: 924
Merit: 501
see if you have any problems during the driver creation phase, look for error messages...
newbie
Activity: 46
Merit: 0
okay thanks for that! I'm defiantly running the 64 bit version, I'll try and reinstall the driver again then try the locate command.
thanks!
hero member
Activity: 924
Merit: 501
> when i try and run   yum -y install fglrx64_p_i_c-* --nogpgcheck
>it no package found?
>any ideas what i've done wrong?

The file fglrx64 is a file generated when you install the driver.  This is a machine specific file that was built just for your machine.  It appears to be missing.  One possible cause of that is that your machine is not running at 64 bits.  If you have a 32 bit machine (pretty common) your file *might* be named fglrx32 or fglrx.

After "making" the machine specific driver do an "ls" command to see what is in the directory.  

I'm guessing:
1) you don't have a 64 bit machine so it didn't build correctly, maybe not at all
2) you are in the wrong directory, the files is somewhere else
3) you built a different version of the driver that has some other name


useful commands at this time are:
ls

The "ls" command "lists" what is in the current directory.

you may also want to run this as root:
updatedb

then run:
locate fglrx64

On my machine the output looks like this:
Code:
[root@localhost ~]# locate fglrx64
/home/miner/miningpacks/fglrx64_p_i_c-8.841-1.x86_64.rpm
/root/rpmbuild/RPMS/x86_64/fglrx64_p_i_c-8.841-1.x86_64.rpm
/var/lib/yum/yumdb/f/8db4396703e2b87f70da7cd1caa8aeb876ca07cf-fglrx64_p_i_c-8.841-1-x86_64
/var/lib/yum/yumdb/f/8db4396703e2b87f70da7cd1caa8aeb876ca07cf-fglrx64_p_i_c-8.841-1-x86_64/checksum_data
/var/lib/yum/yumdb/f/8db4396703e2b87f70da7cd1caa8aeb876ca07cf-fglrx64_p_i_c-8.841-1-x86_64/checksum_type
/var/lib/yum/yumdb/f/8db4396703e2b87f70da7cd1caa8aeb876ca07cf-fglrx64_p_i_c-8.841-1-x86_64/command_line
/var/lib/yum/yumdb/f/8db4396703e2b87f70da7cd1caa8aeb876ca07cf-fglrx64_p_i_c-8.841-1-x86_64/from_repo
/var/lib/yum/yumdb/f/8db4396703e2b87f70da7cd1caa8aeb876ca07cf-fglrx64_p_i_c-8.841-1-x86_64/from_repo_revision
/var/lib/yum/yumdb/f/8db4396703e2b87f70da7cd1caa8aeb876ca07cf-fglrx64_p_i_c-8.841-1-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/f/8db4396703e2b87f70da7cd1caa8aeb876ca07cf-fglrx64_p_i_c-8.841-1-x86_64/reason
/var/lib/yum/yumdb/f/8db4396703e2b87f70da7cd1caa8aeb876ca07cf-fglrx64_p_i_c-8.841-1-x86_64/releasever
[root@localhost ~]#


clearly I have "located" the file I need in the correct directory here:
/home/miner/miningpacks/fglrx64_p_i_c-8.841-1.x86_64.rpm

newbie
Activity: 46
Merit: 0
Thanks for this guide its really useful!

one thing, I've got to the stage where
Quote
####  Install generated package
cd /home/miner/miningpacks/
yum -y install fglrx64_p_i_c-* --nogpgcheck
aticonfig --adapter=all --initial --force
reboot
when i try and run

yum -y install fglrx64_p_i_c-* --nogpgcheck

it no package found?

any ideas what i've done wrong?
hero member
Activity: 924
Merit: 501
cool, lemme know if you have any trouble.
hero member
Activity: 686
Merit: 500
Shame on everything; regret nothing.
Use the one in the tutorial, that one worked for me.  

Made a bootable usd with the cent os iso nd the program in the guide.
Will try to boot it up now... the usb is also 8gb so should be enuff space...


Edit: Still the same result...

Boot failed, no root device found
Sleep forever

Dont know what to do now...

Edit 2:

Cant get it to work, will just run with win7  Sad

What brand mobo you using?  If it's Gigabyte, they are infamous for having random sudden problems booting from USB ...

hey Viceroy, +1 for this guide; I burnt my CentOS 6 iso to cd just now and am going to give it a go after next payout  Cheesy
hero member
Activity: 924
Merit: 501
sorry you are having trouble boss.  I've used the tool in the guide a bunch of times and have not had any problem.  You could go old-school and burn a cd or DVD. 

you could also go back to ubuntu and just unpack the catalyst drivers as I have recommended.  For your purposes the main difference between ubutnu and centos is the way you update.  ubuntu uses apt-get whereas centos uses yum.  otherwise either will work for basic mining.  centos seems to be the only solution for dual gpu cards, though.
newbie
Activity: 28
Merit: 0
Use the one in the tutorial, that one worked for me.  

Made a bootable usd with the cent os iso nd the program in the guide.
Will try to boot it up now... the usb is also 8gb so should be enuff space...


Edit: Still the same result...

Boot failed, no root device found
Sleep forever

Dont know what to do now...

Edit 2:

Cant get it to work, will just run with win7  Sad
hero member
Activity: 924
Merit: 501
Use the one in the tutorial, that one worked for me. 
newbie
Activity: 28
Merit: 0
It is not recognizing your flash drive.  Or it is saying it is bad.  Try booting without the flash drive... does it go to ubuntu?  If so reinstall the ISO on the drive.  Did you use penlinux?

The ssd is erased. Nothing on there anymore.

I used unetbootin. Thougt it woulnt matter, but will try with penlinux!
hero member
Activity: 924
Merit: 501
It is not recognizing your flash drive.  Or it is saying it is bad.  Try booting without the flash drive... does it go to ubuntu?  If so reinstall the ISO on the drive.  Did you use penlinux?
newbie
Activity: 28
Merit: 0
Ok, i have a usb flash drive where i have a .iso of CentOS 6.0 LiveCD.
When i boot it up with the usb i get the error after the logo and spinning circle i get this error:
"Root device not found
Sleep forever"

I have booted both ubuntu, win8, magicpartion (?) with this mobo.
Havent changed anything since i installed ubuntu on the machine.

Have a ssd connected to the mobo with sata & no extra usb/ssd/hdds connected.

Dont know what to do...  Embarrassed
hero member
Activity: 924
Merit: 501
Live long Bitcoin and Centos![/b] Cheesy

Do what he said, papa and YES YES YES.  ;-)
legendary
Activity: 1124
Merit: 1013
ParalleCoin's ruler from the shadow
Hi,

I am using the Centos 6.4 on 3 rigs, not burned iso to a usb but installed using normal install process using virtual machine to an 8gb usb, it can be done also on pc without hard drive. I made one final solution and clone usb.

It is working flawless, I do not understand why would anyone use live version burned to usb, it is not faster but much slower on starting.  Huh

It is little bit slow on the usb 2.0 when starting but if you make a script for autostart on restart you can use rig without a screen (just first time insert a usb).

My 3 rigs (2rigs 4x7870+ 1rig 7950 = 4GH/s avg) on Centos  are monitored on 4th pc also on the Centos Smiley which is web server with Anubis on an old Atlon, to which is forwarded port 80 from router so I can access it from anywhere.


I have test many linux distributions, and the Centos is by my experience best os for web server and mining.


Live long Bitcoin and Centos!
Cheesy
sr. member
Activity: 462
Merit: 250
Free World
I think it is only LIVECD..

Code:
login as: centoslive
[email protected]'s password:
Last login: Thu Apr 25 08:29:04 2013 from 192.168.1.7
[centoslive@livecd ~]$ su
Password:
[root@livecd centoslive]# fglrxinfo
Error: unable to open display (null)
[root@livecd centoslive]#

and yes catalyst is there..



very cool.

Ok, so what happens if you go to the top right menu and go to the ati program, can you see that?  (I think it's under 'system')

Any user should be able to see Catalyst.

what happens when you type fglrxinfo on a command line?

is centos actually *installed* on the usb or is it just the same as the live cd?  
hero member
Activity: 924
Merit: 501
very cool.

Ok, so what happens if you go to the top right menu and go to the ati program, can you see that?  (I think it's under 'system')

Any user should be able to see Catalyst.

what happens when you type fglrxinfo on a command line?

is centos actually *installed* on the usb or is it just the same as the live cd? 
sr. member
Activity: 462
Merit: 250
Free World
Yes.. everything is on USB stick and not on any drive... the PC got no drive...

so you make these changes on the usb stick right?  then you reboot and the ati drivers work from the usb?

so you have a
/home/miner

on the usb and not on any drive?  do you have a drive?
hero member
Activity: 924
Merit: 501
so you make these changes on the usb stick right?  then you reboot and the ati drivers work from the usb?

so you have a
/home/miner

on the usb and not on any drive?  do you have a drive?
sr. member
Activity: 462
Merit: 250
Free World
well.. because I think it is cheaper than buying hdd... and also easier to duplicate.. if ever I decide to increase the number of rigs...

hero member
Activity: 924
Merit: 501
That's a nice box and exactly how I would build if building from scratch.

>>my monitor goes into a KVM SWITCH... then from KVM SWITCH goes into the gpu...

that should not matter


* Viceroy scratches head

I wonder if this is because of the live usb. 

What are you doing with the USB?
sr. member
Activity: 462
Merit: 250
Free World
I did a little google search and found this:

Quote
Re: No GPUs detected!
« Reply #2 on: April 16, 2013, 04:31:17 am »
Thankyou very much for the reply.

I am - I actually managed to get it sorted by booting the system with a monitor connected to the graphics card (Ubuntu 12.04 Desktop). I was using the onboard port out of habit and I had read that *nix didn't require dummy plugs or additional monitors so I hadn't actually thought to test that. It's repeatable - if I boot the system without anything plugged into the graphics card, no dice. Boot with a monitor plugged in and it recognises the cards just fine.


Where you able to read that my monitor was not "DIRECTLY" connected to one of my gpu?

my monitor goes into a KVM SWITCH... then from KVM SWITCH goes into the gpu...


I also saw this images:



they have to put dummy plugs to the gpus...

sr. member
Activity: 462
Merit: 250
Free World
still the same... but was able to make user miners file accessible to newguy1

Code:
[root@livecd Desktop]# cd /home/miner
[root@livecd miner]# chmod a+rx *
[root@livecd miner]# su -l newguy1
[newguy1@livecd ~]$ cd /home/miner/cgminer
[newguy1@livecd cgminer]$ ./cgminer -n
-bash: ./cgminer: is a directory
[newguy1@livecd cgminer]$ ls
ADL_SDK  cgminer
[newguy1@livecd cgminer]$ cd cgminer
[newguy1@livecd cgminer]$ ./cgminer -n
No protocol specified
 [2013-04-25 09:17:16] CL Platform 0 vendor: Advanced Micro Devices, Inc.       
 [2013-04-25 09:17:16] CL Platform 0 name: AMD Accelerated Parallel Processing 
 [2013-04-25 09:17:16] CL Platform 0 version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)
 [2013-04-25 09:17:16] Error -1: Getting Device IDs (num)
 [2013-04-25 09:17:16] clDevicesNum returned error, no GPUs usable             
 [2013-04-25 09:17:16] 0 GPU devices max detected
[newguy1@livecd cgminer]$


btw.. i have uploaded a screenshot about opening a terminal on user newguy1.. is this correct? and yeah.. i am doing all the work via remote sshd...
as root/miner/centoslive/newguy



hero member
Activity: 924
Merit: 501
$ cd /home/miner/cgminer
-bash: cd: /home/miner/cgminer: Permission denied

hold tight....

become root
su -l miner
cd /home
chmod a+rx *
#ignore warnings


 try again as newguy
hero member
Activity: 924
Merit: 501
x is x-windows operating system
it is the software required to run graphics on the linux machine

*** I do all this stuff remotely with putty

do this as root...
make a new user...

adduser newguy
passwd newguy  
#pick a password


then log into that machine as that user


as that user open a terminal window by using the pull down menu
in that terminal window do this, as user newguy

cd /home/miner/cgminer
./cgminer -n

sr. member
Activity: 462
Merit: 250
Free World

In the guide. open terminal on top left..

so I click -> applications -> system tools -> terminal

then terminal opens right? it login as centoslive

is this right? or X is a actually a different user? centoslive user is the main user when I first started... and just added the miner user...







Quote
and if I still get:
 [2013-04-25 10:22:41] Error -1: Getting Device IDs (num)

It's because I haven't started X as the user (by opening an xterm window as user at the head).
fwiw I do not run the program as miner, I have another user ... my "main"... who actually has a password.
hero member
Activity: 924
Merit: 501
so that is exactly what I get before I set display.  

using other drivers from AMD I get that problem before AND after the set display.

So I logged into remote machine with putty (not through kvm)

I get this:

$ ./cgminer -n
 [2013-04-25 10:22:41] CL Platform 0 vendor: Advanced Micro Devices, Inc.      
 [2013-04-25 10:22:41] CL Platform 0 name: AMD Accelerated Parallel Processing  
 [2013-04-25 10:22:41] CL Platform 0 version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)
 [2013-04-25 10:22:41] Error -1: Getting Device IDs (num)
 [2013-04-25 10:22:41] clDevicesNum returned error, no GPUs usable              
 [2013-04-25 10:22:41] 0 GPU devices max detected


I set display
$ export DISPLAY=:0
 and voila:

$ ./cgminer -n
 [2013-04-25 10:23:19] CL Platform 0 vendor: Advanced Micro Devices, Inc.      
 [2013-04-25 10:23:19] CL Platform 0 name: AMD Accelerated Parallel Processing  
 [2013-04-25 10:23:19] CL Platform 0 version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)
 [2013-04-25 10:23:19] Platform 0 devices: 2
 [2013-04-25 10:23:19]  0       Barts
 [2013-04-25 10:23:19]  1       Barts
 [2013-04-25 10:23:19] GPU 0 AMD Radeon HD 6800 Series hardware monitoring enabled
 [2013-04-25 10:23:19] GPU 1 AMD Radeon HD 6800 Series hardware monitoring enabled
 [2013-04-25 10:23:19] 2 GPU devices max detected

and if I still get:
 [2013-04-25 10:22:41] Error -1: Getting Device IDs (num)

It's because I haven't started X as the user (by opening an xterm window as user at the head).
fwiw I do not run the program as miner, I have another user ... my "main"... who actually has a password.

sr. member
Activity: 462
Merit: 250
Free World
ah okay.. now im back to this display protocol problem... but hey.. cgminer was installed... Cheesy

Code:
[miner@livecd cgminer]$ ./cgminer -n
No protocol specified
 [2013-04-25 08:10:48] CL Platform 0 vendor: Advanced Micro Devices, Inc.       
 [2013-04-25 08:10:48] CL Platform 0 name: AMD Accelerated Parallel Processing 
 [2013-04-25 08:10:48] CL Platform 0 version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10)
 [2013-04-25 08:10:48] Error -1: Getting Device IDs (num)
 [2013-04-25 08:10:48] clDevicesNum returned error, no GPUs usable             
 [2013-04-25 08:10:48] 0 GPU devices max detected
[miner@livecd cgminer]$

Quote

keep going....


 in cgminer directory:
as user: make
as root: make install
as user: ./cgminer -n
hero member
Activity: 924
Merit: 501
btw.. do you know how to make this OS boot at persistent mode? It is defaulted to live mode... and when i make changes they are not saved..

I did put 4gb persistence on this thumb drive when I burnt the .iso

I do not, that would be a nice thing to be able to do.  Just change grub.conf?  I don't know.
hero member
Activity: 924
Merit: 501
it downloads and installs

and now I got 2 makes?
Code:
make[2]: Leaving directory `/home/miner/cgminer/cgminer'
make[1]: Leaving directory `/home/miner/cgminer/cgminer'
[miner@livecd cgminer]$

what happens with this command as root?

yum install libcurl-devel


Is what I get (i think) ...

?did you run this as root?
yum -y install gcc rpm-build git wget make kernel-devel python python-libs numpy openssl openssl-devel ncurses ncurses-devel ncurses-libs autoconf automake m4 pkgconfig libcurl-devel libtool libudev libusb glx-utils libX11 libstdc++ compat-libstdc++*   
?

keep going....


 in cgminer directory:
as user: make
as root: make install
as user: ./cgminer -n
sr. member
Activity: 462
Merit: 250
Free World
it downloads and installs

and now I got 2 makes?
Code:
make[2]: Leaving directory `/home/miner/cgminer/cgminer'
make[1]: Leaving directory `/home/miner/cgminer/cgminer'
[miner@livecd cgminer]$

what happens with this command as root?

yum install libcurl-devel


btw.. do you know how to make this OS boot at persistent mode? It is defaulted to live mode... and when i make changes they are not saved..

I did put 4gb persistence on this thumb drive when I burnt the .iso
hero member
Activity: 924
Merit: 501
this line *should* have taken care of that

Code:
#### if you see an error about yum being locked be patient it will unlock in a minute
yum -y install gcc rpm-build git wget make kernel-devel python python-libs numpy openssl openssl-devel ncurses ncurses-devel ncurses-libs autoconf automake m4 pkgconfig libcurl-devel libtool libudev libusb glx-utils libX11 libstdc++ compat-libstdc++*

what happens with this command as root?

yum install libcurl-devel
hero member
Activity: 924
Merit: 501
Yes.. I used the old school drivers like the tutorial said...

i think i messed up with basic libraries.. i also can't install cgminer properly.

Code:
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBCURL... no
checking for LIBCURL... no
configure: error: Missing required libcurl dev >= 7.18.2
[miner@livecd cgminer]$

If I re-do everything.. it will be my 5th time.. lol..

so it is good that you see the gpus you are very close.  you need to be able to use fglrx as well.  you are using the drivers from the guide, not the latest drivers right?

do not rebuild.  hold tight.
hero member
Activity: 924
Merit: 501
ok, Im at my head... let's get this chumpy working....  logging in

sr. member
Activity: 462
Merit: 250
Free World
btw...

if I do this properly on this thumb drive...

can I just copy the entire thumb drive and paste it into another thumb drive and it is going to be a clone?

or I have to re-do everything on each thumb drive?

sr. member
Activity: 462
Merit: 250
Free World
Yes.. I used the old school drivers like the tutorial said...

i think i messed up with basic libraries.. i also can't install cgminer properly.

Code:
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBCURL... no
checking for LIBCURL... no
configure: error: Missing required libcurl dev >= 7.18.2
[miner@livecd cgminer]$

If I re-do everything.. it will be my 5th time.. lol..

so it is good that you see the gpus you are very close.  you need to be able to use fglrx as well.  you are using the drivers from the guide, not the latest drivers right?
hero member
Activity: 924
Merit: 501
so it is good that you see the gpus you are very close.  you need to be able to use fglrx as well.  you are using the drivers from the guide, not the latest drivers right?
sr. member
Activity: 462
Merit: 250
Free World
I already did this.. but no success...

also my current setup is with 2 pc.. 1 monitor/1keyboard/1mouse... and using KVM to switch to different pc/monitor...

but I can already see all 2 gpus...

Code:
[root@livecd ~]# aticonfig --lsa
No protocol specified
* 0. 01:00.0 AMD Radeon HD 6900 Series
  1. 02:00.0 AMD Radeon HD 6900 Series

* - Default adapter


ok, you look awfully close to success....

What I do, and I cannot explain why this works, is I go to the machine directly (the head) and I log in as a regular user.  Then I open a "terminal window" by pulling down from the menu on the top left.    This must cause the X system to turn on as that user because doing that step then allows me to log in remotely and set my display (export DISPLAY=:0).  Once that is done I can use all the X tools. 

If I use xming on my PC the gears pop up on my local (remotely connected) machine.  IF I am at the head, or am not using an x-windows emulator on my pc the gears program pops up on the "head" of the linux box.

If you can see the gears, you can probably mine.
hero member
Activity: 924
Merit: 501
ok, you look awfully close to success....

What I do, and I cannot explain why this works, is I go to the machine directly (the head) and I log in as a regular user.  Then I open a "terminal window" by pulling down from the menu on the top left.    This must cause the X system to turn on as that user because doing that step then allows me to log in remotely and set my display (export DISPLAY=:0).  Once that is done I can use all the X tools. 

If I use xming on my PC the gears pop up on my local (remotely connected) machine.  IF I am at the head, or am not using an x-windows emulator on my pc the gears program pops up on the "head" of the linux box.

If you can see the gears, you can probably mine.
sr. member
Activity: 462
Merit: 250
Free World
uhmmm stuck again.. lol

Quote
[root@livecd miningpacks]# export DISPLAY=:0
[root@livecd miningpacks]# glxgears
No protocol specified
Error: couldn't open display :0
[root@livecd miningpacks]#
hero member
Activity: 924
Merit: 501
all tar stuff is as root.  if you did the previous section all the stuff should be in /home/miner so that looks ok.  looks like you are trying to over write existing files.  go back to the top where it shows the directories to remove for a clean install

I'd like to see you remove the /opt/ amd directories and try that part again.  or perhaps you are trying to tar as a user other than root ... that could be the problem.   the  idea is to store the packages in the user directory and actually run the program as a user.  but some of The stuff like installing drivers or compiling the mining program require you to be root.
sr. member
Activity: 462
Merit: 250
Free World
Hi,


the reason why I got stucked in section 2 7a. was because of auto eth0... and I cannot seemed to find it or over ride it... but I was able to just use it as it is... and not create eth0 anymore..

anyway...
I was able to get up to Section 4...

we're supposed to uncompress 2.4 right? and this tutorial:


### old school style SDK install
cd /opt
tar -xf /home/miner/miningpacks/AMD-APP-SDK*
cd /
tar xf /opt/AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz
ln -sf /opt/AMD-APP-SDK-v2.4-lnx64/include/CL /usr/include
ln -sf /opt/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/* /usr/lib/
ldconfig
reboot

#### echo AMDAPPSDKROOT=/root/AMD-APP-SDK-v2.4-lnx64 >> .bashrc
#### echo AMDAPPSDKSAMPLESROOT=/root/AMD-APP-SDK-v2.4-lnx64 >> .bashrc
#### echo LD_LIBRARY_PATH=/root/AMD-APP-SDK-v2.4-lnx64/lib/x86_64 >> .bashrc


is this supposed to be a root user or miner?

I cannot seem to follow the glowing text above...
and when I do:

tar -xf /home/miner/miningpacks/AMD-APP-SDK-v2.4-lnx64.tgz


im getting these:

Code:
tar: AMD-APP-SDK-v2.4-lnx64/Makefile: Cannot open: File exists
tar: AMD-APP-SDK-v2.4-lnx64: Cannot utime: Read-only file system
tar: AMD-APP-SDK-v2.4-lnx64: Cannot change ownership to uid 0, gid 0: Read-only file system
tar: AMD-APP-SDK-v2.4-lnx64: Cannot change mode to rwxr-xr-x: Read-only file system
tar: Exiting with failure status due to previous errors
[root@centos6 opt]#

hero member
Activity: 924
Merit: 501
The guide is designed to install centos and the drivers on a fresh machine.  If you intend to follow the guide you will be over-writing your hard drive.  You asked if you could use centos on a USB, yes.  But I have no idea how to build an executable centos miner on a usb.  This guide does not do that.
sr. member
Activity: 462
Merit: 250
Free World
lol.. this is harder than I thought..

i am stuck at section 2 - 7a

plus.. all the changes I make on the OS.. does not get saved when rebooted... (which is good coz I know i messed up... lol)


Sad
hero member
Activity: 924
Merit: 501
have you tried using 3 or quad hd 7970 on this setup?

I have six AX6870x2's they are dual gpu cards.  When I try to run three of them I have heat problems.  I can only run two per motherboard.
sr. member
Activity: 462
Merit: 250
Free World
Yeah.. i know it is slow.. i just tried it last night with ubuntu from kano's tutorial on cgminer... I did see some advice on getting a faster thumb drive.. like the patriot supersonic boost XT usb 3.0... i am currently heading to the store to get 2... and will try it with centos 6..

Yea, when you put the "LIVE" CD or DVD on a thumb drive you can launch and run from that.  There is no reason to install the OS to the hard drive if you do not want to.  The flash drive is slower than the hard drive though.
sr. member
Activity: 462
Merit: 250
Free World
kool..

thanks a lot for the howto...

will try doing it later... i have 2 pc doing nothing... and has hd 6870 x2 and hd 6950 x2... i just hope the mobo have pcie x1 so i can just buy risers to x16 and get more gpu's..

have you tried using 3 or quad hd 7970 on this setup?
hero member
Activity: 924
Merit: 501
Yea, when you put the "LIVE" CD or DVD on a thumb drive you can launch and run from that.  There is no reason to install the OS to the hard drive if you do not want to.  The flash drive is slower than the hard drive though.
sr. member
Activity: 462
Merit: 250
Free World
have you tried running centos 6 on thumb drive is it possible?

hero member
Activity: 924
Merit: 501
You happen to have a good link to vanilla Centos6.0x64?  All the ones I've tried say its deprecated and point to a newer version.  The link in your howto doesn't work...

The vault appears to be down right now.  It is the place to get this.

Here's the google mirror of the centos vault Smiley

http://webcache.googleusercontent.com/search?q=cache:http://vault.centos.org/6.0/isos/x86_64/

Unfortunately the individual links appear down.  I'm certain it will be back shortly.

edit:
it came back

member
Activity: 86
Merit: 10
You happen to have a good link to vanilla Centos6.0x64?  All the ones I've tried say its deprecated and point to a newer version.  The link in your howto doesn't work...

edit: n/m finally found one.  http://mirrors.usc.edu/pub/linux/distributions/centos/6.0/isos/x86_64/
hero member
Activity: 924
Merit: 501
5.9 didn't work for me either. For the record I've now installed Doze 7 and am mining like a champ.  I hate windows especially for a machine that I plan on running 24/7, but oh well.  I'm installing cygwin now to make it at least easier to manage remotely.  

I just completed my install with centos 6.0 and after locking up yum it works exactly as expected....

Code:
---------------------------------------------------------------------------
 [P]ool management [G]PU management [S]ettings [D]isplay options [Q]uit
 GPU 0:                | 335.0M/285.1Mh/s | A:1 R:0 HW:0 U: 1.25/m I:12
 GPU 1:                | 295.1M/285.1Mh/s | A:3 R:0 HW:0 U: 3.75/m I:12
 GPU 2:                | 374.0M/285.1Mh/s | A:2 R:0 HW:0 U: 2.50/m I:12
 GPU 3:                | 350.7M/285.1Mh/s | A:3 R:0 HW:0 U: 3.75/m I:12
---------------------------------------------------------------------------

Give it a try if you like, here's the update directions... gonna clean it up and repost, but here it is for now...


Code:
#############################################################
####
####  Installing mining Software on CEntOS or Fedora based distributions
####  
####  Currently 2 GPU's working under Centos 6.4 w/SDK 12.7 & Driver 12.3
####  Currently 4 GPU's working under Centos 6.0 w/SDK 12.4 & Driver 11.4
####
####  testing to increase GPU's per motherboard
####  
####  by:  Viceroy who accepts tips at   144RtpxYKbigosiqTyXNwzwtH6Z7s96xUx
####
#############################################################
####
#############################################################
####  Section 0 - Table of Contents
#############################################################
####
####  Section 0 Table of Contents
####  Section 1 Disclaimers
####  Section 2 Setting up CentOS
####  Section 3 Setting up Base Packages
####  Section 4        Installing ATI Development Kit (SDK)  
####  Section 5         Installing ATI Catalyst Drivers
####  Section 6         Testing ATI Catalyst Drivers
####
#############################################################
####  Section 1 - Disclaimers
#############################################################
####
####  I am not responsible for you using these instructions.  
####
####  If you choose to follow anything you read here that is
####  your problem, not mine.  I have written these instructions
####  for my personal use for my particular machine in an effort
####  to help me mine bitcoin.  If you follow these instructions
####  you may or may not have success, neither of which are any
####  concern of mine because you are the fool who followed me
####  off the bridge.  I did not push you.
####
####  I am proposing here to build a TOTALLY INSECURE HIGH
####  POWERED PASSWORD CRACKING MACHINE which MAY OR MAY NOT
####  BE LEGAL TO POSESS WHERE YOU LIVE.  If the policeman
####  puts you in jail because you followed what I wrote here
####  that is your fault, not mine.  You need to be aware of
####  local, national and international laws before you decide
####  to build a high powered password cracker.  If this gets
####  into the wrong hands and it starts a nuclear war and
####  and some hostile government decides to end the world
####  guess what... that's not my fault either.  
####
####  Be responsible, do no let Kim Jong Un get this machine
####  http://en.wikipedia.org/wiki/Kim_Jong-un
####
#############################################################
####  Section 2 - Setting up Centos
#############################################################
####
####  While at your windows desktop machine you need to
####  download the ISO from http://vault.centos.org/6.0/isos/
####
####  (I will be using the 64 bit OS from here on out)
####
####  The ISO can be burned to CD, DVD or USB
####
####  (I will burn the ISO to a 2GB+ USB flash drive)
####
####  Download the ISO from:
####  http://vault.centos.org/6.0/isos/x86_64/CentOS-6.0-x86_64-LiveCD.iso
####
####  Download and install Pendrivelinux Windows Software:
####  http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
####
####  0. Plug in your flash drive and wait for it to register
####
####  1. start pendrivelinux universal USB installer
####  2. selects CentOS from "other distros alphabetically"
####  3. select the CentOS LIVE iso you downloaded
####     (CentOS-6.0-x86_64-LiveCD.iso)
####  4. select your drive letter and format the drive
####  5. safely remove flash drive and plug into new machine
####  6. boot up and install CentOS with the menus
####  7. after intallation log in as root (or su) and:
#### 7a. set up network so IP is fixed so you can log in remotely
#### 7b. turn on the SSH daemon so you can log in (service sshd start)
#### 7c. make sshd starts each time you boot (chkconfig sshd on)
####  8. now I like to go back to my nice desk and chair
####    8a. dowload and install putty so you can talk to your box
####    http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
####    using a new ssh connection, connect to your machine as the
####    user you set up during installation.  (it's a bad idea to log
####    in as root from a remote location).
####   9. while you are sitting there at your desk download and install
####    xming windows xwindow emulator from here:
####    http://sourceforge.net/project/downloading.php?group_id=156984&filename=Xming-6-9-0-31-setup.exe
####  10. modify yum
####
####  cut and paste one command at a time
####

####  become root user
su -

#### change directory to yum repo directory
cd /etc/yum.repos.d

#### move original file to backup
mv -f CentOS-Base.repo CentOS-Base.repo.old

# COPY the following into your buffer
## (in windows you use ctrl-c)
##
## start copy ---->>

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the #mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://vault.centos.org/6.0/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://vault.centos.org/6.0/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://vault.centos.org/6.0/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://vault.centos.org/6.0/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://vault.centos.org/6.0/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

## <<----  end copy
##
## then using the built in world processor in linux type

vi CentOS-Base.repo

# while in Vi hit [insert key]
# then paste the contents of your buffer with the right mouse button
# then hit the escape key
# hit :
# then hit x
# then hit the [enter key]
# this will save the file and exit

# test out your changes

yum check-update



#############################################################
####  Section 3 - Setting up Base Packages
#############################################################

####  become root user
su -

yum -y groupinstall x11

#### if you see an error about yum being locked be patient it will unlock in a minute
yum -y install gcc rpm-build git wget make kernel-devel python python-libs numpy openssl openssl-devel ncurses ncurses-devel ncurses-libs autoconf automake m4 pkgconfig libcurl-devel libtool libudev libusb glx-utils libX11 libstdc++ compat-libstdc++*

####  create new user or place all items in personal home directory
useradd miner

####  become prefered user (no password needed)
su -l miner

####  create a directory to hold all the packages
cd ~
mkdir miningpacks
cd miningpacks

####  download all driver package as user "miner"
####
####       wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgz
####       wget http://www2.ati.com/drivers/linux/amd-driver-installer-12-3-x86.x86_64.run
####
####  goin old-school - working version is best ...
####  note:  modern versions may break other things
####
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-4-x86.x86_64.run

####chmod a+x amd-driver-*
chmod a+x ati-driver-*


exit #go back to being root user

#############################################################
####  Section 4 - Installing ATI Development Kit (SDK)
#############################################################
####
####
####  Install this BEFORE you install the drivers
####
#############################################################
####
####
####  preparing the machine for a new SDK install
####
####
####  First Seek and Destroy ALL Existing ATI Drivers:
####      only needed if you are rebuilding.  If fresh
####      install this command will fail, no directory.
####
cd /usr/share/ati
./amd-uninstall.sh --force

#### more cleaning to be sure
####
#rm -Rf /etc/ati
#rm -Rf /usr/lib/fglrx
#rm -Rf /usr/share/ati
#rm -Rf /opt/AMD*
#reboot  #HIGHLY RECOMMENDED IF YOU REMOVED FILES

####
####  installing the new SDK install
####

####  become root user
su -  

####  become prefered user (no password needed)
su -l miner

####  move to directory to where you are holding the packages
cd ~
cd miningpacks

####  download SDK
####    
####     wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx32.tgz
####     wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.6-lnx32.tgz
####     wget http://developer.amd.com/wordpress/media/2012/11/AMD-APP-SDK-v2.8-lnx64.tgz
####
####  again, oldschool because working beats not-working:
##
wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgz


exit #go back to being root user

#### newer style SDK install
####
#### cd /home/miner/miningpacks/
#### mkdir APP-SDK-2point7-temp
#### cd APP-SDK-2point7-temp
#### cp ../AMD-APP-SDK-v2.7-lnx64.tgz .
#### tar xzf AMD-APP-SDK-v2.7-lnx64.tgz
#### ./Install-AMD-APP.sh
#### cd ..
#### rm -rf APP-SDK-2point7-temp
#### #reboot

### old school style SDK install
cd /opt
tar -xf /home/miner/miningpacks/AMD-APP-SDK*
cd /
tar xf /opt/AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz
ln -sf /opt/AMD-APP-SDK-v2.4-lnx64/include/CL /usr/include
ln -sf /opt/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/* /usr/lib/
ldconfig
reboot

#### echo AMDAPPSDKROOT=/root/AMD-APP-SDK-v2.4-lnx64 >> .bashrc
#### echo AMDAPPSDKSAMPLESROOT=/root/AMD-APP-SDK-v2.4-lnx64 >> .bashrc
#### echo LD_LIBRARY_PATH=/root/AMD-APP-SDK-v2.4-lnx64/lib/x86_64 >> .bashrc


#############################################################
####  Section 5 - Installing ATI Catalyst Drivers for linux
#############################################################
####
####
####  Install this AFTER you install the SDK
####
#############################################################

####  become root user
su -

##
## important note on installing AMD Drivers under linux:
##
## be certain you have the kernel-devel for YOUR kernel
yum list installed | grep kernel-*

##
## output should look like this
#dracut-kernel.noarch                004-32.el6                         installed
#kernel.x86_64                       2.6.32-71.el6                      installed
#kernel-devel.x86_64                 2.6.32-71.29.1.el6                 @updates
#kernel-firmware.noarch              2.6.32-71.el6                      installed
#kernel-headers.x86_64               2.6.32-71.29.1.el6                 @updates
#[root@localhost ~]#
#
#  notice that I DO NOT have a matched kernel and kernel-devel version.  
#  they must match EXACTLY or you will not be successful in the
#  next steps.  I have:
#     kernel.x86_64                       2.6.32-71.el6                      installed
#       and
#     kernel-devel.x86_64                 2.6.32-71.29.1.el6                 @updates
#
#  the difference is so slight you may have missed it
#     my subversion  32-71.29.1.el6 does NOT match 32-71.el6

##
## check your distribution
uname -r

##
## you can have multiple kernel-devel's that is not a problem
## if you are lucky this command works
yum install kernel-devel-$(uname -r)

#### if this was successful move on to the next section
####     proceed to package generation


####******#*#*#*#*#*##*#*####******#*#*#*#*#*##*#*
####
####  optional section if kernels do not match
####
####
#### You will need to find another "kernel" with
###  a matching "kernel-devel" package
####
#### yum --showduplicates list kernel-devel
####
#### to download a specific package just add
#### the version to the name, for example if
#### I want kernel-devel 2.6.32-358.el6 I
#### just add a hyphen
####
#### yum install kernel-devel-2.6.32-358.el6
####
####
####******#*#*#*#*#*##*#*####******#*#*#*#*#*##*#*


#############################################################
####  Generate a Distribution Specific Package of fglrx
#############################################################

# as root

####  Move to package directory
####    using menus generate RPM package for your OS
####    (generate centos 64 packages)
####
cd /home/miner/miningpacks/

####  chmod u+x *-driver-installer*  #step taken earlier
####  //alternative:// sh amd-driver-installer  
sh ati-driver-installer-*

#### (file was downloaded above)
####
####
####  Install generated package
cd /home/miner/miningpacks/
yum -y install fglrx64_p_i_c-* --nogpgcheck
aticonfig --adapter=all --initial --force
reboot


#############################################################
####  Section 6 - Testing ATI Catalyst Drivers
#############################################################


#### check installation by reading output from
more /usr/share/ati/fglrx-install.log

#### further testing SHOULD be done at this time against this page:
####
#### http://wiki.cchtml.com/index.php/Frequently_Asked_Questions#How_do_I_know_fglrx_is_installed_correctly.3F


#### one possible error
####
####[Message] Kernel Module : Precompiled kernel module version mismatched.
####[Error] Kernel Module : Kernel module build environment not found - please consult readme.
####
####
####  This error indicated you do not have the correct kernel-devel libs to match your kernel
####     (I told you it wouldn't work).
####
####  with xming installed on my pc when I use putty I don't even need to
####  export my display.  I can just start playing with opencl and opengl
####  libraries and samples.  But only if I did everything correctly
####  and there were no hardware issues along the way.
####
####  my machines 'hello world' test passed with flying colors
####
aticonfig --lsa

## output looks like this:
#* 0. 0e:00.0 AMD Radeon HD 6800 Series
#  1. 0f:00.0 AMD Radeon HD 6800 Series
#  2. 07:00.0 AMD Radeon HD 6800 Series
#  3. 06:00.0 AMD Radeon HD 6800 Series
#
#* - Default adapter
#
# which is EXACTLY what I want!!!

glxgears

## Segmentation fault
##
## uh-oh I broke something!
## oh yea, I remember
##
## I forgot to log into the linux box.
## so here's what I need to make this work
## I go to the centos box and log in as my
## regular user in the graphical interface.
## then I pull down the menu and open a
## terminal window which must be 'turning
## x on for my local user'.  Once I open
## that terminal (xterm) I can walk away
## and do everything else remotely.  So
## here we go, let's have some fun...
##
glxgears

## Segmentation fault
## oh yea... duh
export DISPLAY=:0
glxgears

##40014 frames in 5.0 seconds = 8002.695 FPS
##40291 frames in 5.0 seconds = 8058.047 FPS
##40288 frames in 5.0 seconds = 8057.494 FPS
##40287 frames in 5.0 seconds = 8057.313 FPS
## ^C
##
## don't be hatin on me now...


#############################################################
####  Install ATI Display Library Development Kit (ADL SDK):
#############################################################

###wget http://developer.amd.com/wordpress/media/2012/11/AMD-APP-SDK-v2.8-lnx64.tgz
### cannot find APP without going through website license
### pain in the ass requires a browser download
###

####  become root user
su -

####  become prefered user (no password needed)
su -l miner

####  move to directory to where you are holding the packages
cd ~
cd miningpacks

####  place ADL zip in current directory

mkdir ADL-SDK-5point0-temp
cd ADL-SDK-5point0-temp
cp ../ADL_SDK_5.0.zip .
unzip ADL_SDK_5.0.zip



#############################################################
####  Install CGMiner
#############################################################

####  become root user
su -

####  become prefered user (no password needed)
su -l miner

####  move to home directory
cd ~

####  download CGMiner from author
git clone https://github.com/ckolivas/cgminer


####  copy ADL libraries to correct location
cd /home/miner/cgminer/ADL_SDK
cp /home/miner/miningpacks/ADL-SDK-5point0-temp/include/*.h .
rm -rf /home/miner/miningpacks/ADL-SDK-5point0-temp/
cd ..

./autogen.sh

make

exit #go back to being root user

cd /home/miner/cgminer/
make install

reboot #if you have not after changes to libraries

#if you did everything as I have above you are finished
#and can run cgminer.  test with  ./cgminer -n

#############################################################
####  The End
#############################################################
member
Activity: 86
Merit: 10
5.9 didn't work for me either. For the record I've now installed Doze 7 and am mining like a champ.  I hate windows especially for a machine that I plan on running 24/7, but oh well.  I'm installing cygwin now to make it at least easier to manage remotely. 
hero member
Activity: 924
Merit: 501
After a fresh install this seems to be working to block yum from upgrading outside the distro I'm using (centos 6.0 for test)


Code:
####  become root user
su -

#### change directory to yum repo directory
cd /etc/yum.repos.d

#### move original file to backup
mv -f CentOS-Base.repo CentOS-Base.repo.old

# COPY the following into your buffer
## (in windows you use ctrl-c)
##
## start copy ---->>

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the #mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://vault.centos.org/6.0/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://vault.centos.org/6.0/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://vault.centos.org/6.0/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://vault.centos.org/6.0/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://vault.centos.org/6.0/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

## <<----  end copy
##
## then using the built in world processor in linux type

vi CentOS-Base.repo

# while in Vi hit [insert key]
# then paste the contents of your buffer with the right mouse button
# then hit the escape key
# hit :
# then hit x
# then hit the [enter key]
# this will save the file and exit

# test out your changes

hero member
Activity: 924
Merit: 501
Cool, I'm downloading 5.9 now, we will see if it works.  Let me know how 6 goes. Also you can put an exclude line in your yum.conf to keep yum from trying to upgrade any important packages---of course this would require you to know what upgrade broke it previously. 

Example exclude line that would prevent mysql, bind, cups, gdm, and heartbeat from updating.
Quote
exclude=mysql* MySQL* bind* cups* gdm heartbeat*

STOP  5.9 won't work as well.. it doesnt' have a single LIVE cd.  You need to do 5.8 or 6.0.  Good news on 6.0 reinstall... I'm seeing both my cards and I'm predicting if I can lock the yum to base distro's I can get multi-gpu mining working again...
* Viceroy  exuding confidence

member
Activity: 86
Merit: 10
Cool, I'm downloading 5.9 now, we will see if it works.  Let me know how 6 goes. Also you can put an exclude line in your yum.conf to keep yum from trying to upgrade any important packages---of course this would require you to know what upgrade broke it previously. 

Example exclude line that would prevent mysql, bind, cups, gdm, and heartbeat from updating.
Quote
exclude=mysql* MySQL* bind* cups* gdm heartbeat*
hero member
Activity: 924
Merit: 501
I'm out of ideas here.  So you said Centos 5 did work?

It did, though I can't recall the subversion.  Centos 6 was working too, before the upgrade.  Whatever the upgrade was it was within the last 12 months.  What broke my system was doing a yum upgrade.  So I HIGHLY recommend starting with a CD and NOT contacting the latest repositories because that's what broke mine.  I'm trying to set up yum.comf so it only goes to the vault, not the new mirrors.  As soon as I yum upgraded I could no longer see more than 2 gpu's on my pci bus...   I've got the Centos 6.0 live iso.  I'm gonna try that WITHOUT upgrading beyond the vault.
member
Activity: 86
Merit: 10
Yeah aticonfig sets up virtually the same xorg.conf for me as well, but even if I have second monitor plugged in it still boots to a black screen and I can't do anything.  Can't even CTRL-ALT-F1 to a prompt.  The only difference between ours is the BUSID line is different and corresponds to the lspci output on my machine (as it should). 

I'm out of ideas here.  So you said Centos 5 did work?
hero member
Activity: 924
Merit: 501
I've never edited this file directly.  When X doesn't start and I'm stuck at login I will often rerun aticonfig --intial ...

I have two monitors, sometimes three.  I screw around with them furiously plugging them into various dvi ports until some unknown magic allows lspci to see multiple cards.  Then I never hard boot again.  The hard boot seems to effect lspic but soft boots do not.  I am suspicious that the problem is related to later versions of the OS.  Something "bad" happened recently when they removed the old Xorg and replaced it with a newer version.  I'm thinking Centos 5 is what we need here....  Per my message at the top... I wish I had my old working system and never began the update process to begin with UGH!


Code:
more xorg.conf
Section "ServerLayout"
        Identifier     "aticonfig Layout"
        Screen      0  "aticonfig-Screen[0]-0" 0 0
        Screen         "aticonfig-Screen[1]-0" RightOf "aticonfig-Screen[0]-0"
EndSection

Section "Module"
EndSection

Section "Monitor"
        Identifier   "aticonfig-Monitor[0]-0"
        Option      "VendorName" "ATI Proprietary Driver"
        Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
EndSection

Section "Monitor"
        Identifier   "aticonfig-Monitor[1]-0"
        Option      "VendorName" "ATI Proprietary Driver"
        Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]-0"
        Driver      "fglrx"
        BusID       "PCI:6:0:0"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[1]-0"
        Driver      "fglrx"
        BusID       "PCI:7:0:0"
EndSection

Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device     "aticonfig-Device[0]-0"
        Monitor    "aticonfig-Monitor[0]-0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Screen"
        Identifier "aticonfig-Screen[1]-0"
        Device     "aticonfig-Device[1]-0"
        Monitor    "aticonfig-Monitor[1]-0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection


member
Activity: 86
Merit: 10
Except if you look closely my output only shows one GPU with clinfo.  The other is the AMD CPU.  So it doesn't actually see the extra GPU available for use. 

Quote
# ./clinfo | grep CL_DEVICE
  Device Type:                CL_DEVICE_TYPE_GPU
  Device Type:                CL_DEVICE_TYPE_CPU

Any chance you could post your xorg.conf?  I'm curious how it looks. Whenever I create one with aticonfig --force --adapter=all --initial I can no longer boot into X and end up having to fix things in single user mode.  This is with two monitors even hooked up for testing, dummy plugs, only one monitor, etc. 

After compiling cgminer it only sees one usable card as well, which matches up with the clinfo output. I would love to see your Xorg.conf..... And do you have a second monitor hooked up?
hero member
Activity: 924
Merit: 501
The problem I've had running dual dual-gpu cards is that I cannot see the second card in lspci.  If I can see it there I can mine with it.

How do you get it to mine from there?  I've had no luck no matter what distro.  What does ./clinfo show you in the SDK?


Your output looks fine.  

Code:
$ ./clinfo | grep CL_DEVICE
  Device Type:                                   CL_DEVICE_TYPE_GPU
  Device Type:                                   CL_DEVICE_TYPE_GPU
  Device Type:          

$ aticonfig --lsa  #this is a dual gpu card but looks the same as having two graphics cards
* 0. 06:00.0 AMD Radeon HD 6800 Series
  1. 07:00.0 AMD Radeon HD 6800 Series

* - Default adapter

first check, I'm sure you did this...  
aticonfig --force --adapter=all --initial

I have never had to edit my Xorg, I just let the system generate it's own.  I presume you went to the ATI Linux Wiki for further testing.  I, honestly, don't see anything wrong with your output.

After compiling cgminer what happens when you run
./cgminer -n

Code:
$ cgminer -n
 [2013-04-11 09:33:14] CL Platform 0 vendor: Advanced Micro Devices, Inc.
 [2013-04-11 09:33:14] CL Platform 0 name: AMD Accelerated Parallel Processing
 [2013-04-11 09:33:14] CL Platform 0 version: OpenCL 1.2 AMD-APP (923.1)
 [2013-04-11 09:33:14] Platform 0 devices: 2
 [2013-04-11 09:33:14]  0       Barts
 [2013-04-11 09:33:14]  1       Barts
 [2013-04-11 09:33:14] GPU 0 AMD Radeon HD 6800 Series  hardware monitoring enabled
 [2013-04-11 09:33:14] GPU 1 AMD Radeon HD 6800 Series  hardware monitoring enabled
 [2013-04-11 09:33:14] 2 GPU devices max detected

The above allows me to mine on two GPU's with ./cgminer using a command like this:
./cgminer -o stratum+tcp://mining.eligius.st:3334 -u 1NQc6tCtRmT8zBeLKNpboFaUBMLcxDwUm6 -p x0 -I 12

#substitute your own address, obviously, unless you want to make ME coin  Smiley

>My belief is both GPUs aren't available for OpenCL mining is becuase only
>one is active.  Hence the need to 'activate' both via the Xorg.conf (like others have done). 
>Unfortunately that always leads to a dead screen upon reboot as mentioned earlier.

My experience has been that when " lspci -nn | grep VGA "  sees all your cards you should
be able to use them all during mining.

member
Activity: 86
Merit: 10
The problem I've had running dual dual-gpu cards is that I cannot see the second card in lspci.  If I can see it there I can mine with it.

How do you get it to mine from there?  I've had no luck no matter what distro.  What does ./clinfo show you in the SDK?
member
Activity: 86
Merit: 10
Yeah I've literally tried a dozen ways.  I followed your guide to a T (with SDK 2.7 and AMD 12.3) and still the same issue.  In all the linux variants I've tried though I can get both cards to show with lspci, however I can only mine on one of them (the active one).

So yeah with Centos6.4 I can see both cards, here is the output:

lspci sees both cards:
Quote
# lspci | grep -i VGA
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Cayman PRO [Radeon HD 6950]
02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Cayman PRO [Radeon HD 6950]
Quote
uname -ar
Linux tdavis-miner 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Notice the clinfo does NOT see two usable GPUs:
Quote
# ./clinfo | grep CL_DEVICE
  Device Type:                CL_DEVICE_TYPE_GPU
  Device Type:                CL_DEVICE_TYPE_CPU
aticonfig sees them though:
Quote
# aticonfig --list-adapters
* 0. 01:00.0 AMD Radeon HD 6900 Series
  1. 02:00.0 AMD Radeon HD 6900 Series

* - Default adapter
My belief is both GPUs aren't available for OpenCL mining is becuase only one is active.  Hence the need to 'activate' both via the Xorg.conf (like others have done).  Unfortunately that always leads to a dead screen upon reboot as mentioned earlier.

I've even tried creating a dummy DVI dongle to trick the damn thing into thinking everything is a-ok.  But still no luck......
hero member
Activity: 924
Merit: 501
Yep.  I'm testing different versions Centos kernels now.   I've used it for a long time and as far as I can tell it looks like something changes around centos 6.3 where the cards are no longer visable.  Are you saying you can actually see all your cards with lspci on Centos?  What distro? 

The problem I've had running dual dual-gpu cards is that I cannot see the second card in lspci.  If I can see it there I can mine with it.

Are you following this guide from the beginning?
member
Activity: 86
Merit: 10
Unfortunately, even with CentOs I get the same results as I get with Mint and Ubuntu regarding dual 6950s.  I can run one just fine, and the second GPU is visible in lspci, but as soon as I enable both GPUs in the xorg.conf (aticonfig --adapter=all --initial --force ) I can no longer boot into Gnome/Cinammon/X.  On Debian variants the system hangs entirely, and I end up having to live boot off a USB drive to mount the HD and restore the old xorg.conf.  At least on CentOS I can still SSH into the system and restore my old xorg.conf, Debian hasn't been so kind. 

If anyone has any ideas I'd be much obliged.  I just haven't been able to get dual GPUs to mine in Linux, no matter what Distro.  It seems that they must both be enabled in Xorg.conf in order to have the option of being addressable and usable, but by enabling both I always encounter failures to load the fglrx module of some sort or another---and I've tried about 10 different driver versions at this point (and multple SDKs).

If I install Doze temporarily I can mine like a champ, but doze sucks and I need a headless solution.  I'm running out of ideas. 
member
Activity: 98
Merit: 10
Mine hard!
For those that care, CentOS is binary-equivalent to RedHat. The only difference is that the RH logos are not included in the CentOS distro Smiley

Thank you Open Source!

Oh, and no technical support for CentOS (unless you consider Google and forums support)
hero member
Activity: 924
Merit: 501
well, but I don't need to X server. your link show it.
Or you mean that Driver of ATI don't stay on console OS without X???

You cannot mine without X Server.  Must 'startx' to operate, yes.  ATI makes own X driver is called fglrx appears when you compile.  (####  "GENERATE DISTRIBUTION SPECIFIC PACKAGE" )
legendary
Activity: 2893
Merit: 1158
you have this: http://www.citrix.com/products/xenserver/overview.html

you can put centos on it, yes.  I do not know how.  start here maybe:
http://forums.citrix.com/thread.jspa?threadID=302677
well, but I don't need to X server. your link show it.
Or you mean that Driver of ATI don't stay on console OS without X???
hero member
Activity: 924
Merit: 501
you have this: http://www.citrix.com/products/xenserver/overview.html

you can put centos on it, yes.  I do not know how.  start here maybe:
http://forums.citrix.com/thread.jspa?threadID=302677
legendary
Activity: 2893
Merit: 1158
so, I have 2*7870, what I need to change? Could you change it for me please, just I bad understanding in it
2.6.32.12-0.7.1.xs6.0.2.553.170674xen #1 SMP Thu Jul 12 07:41:58 EDT 2012 i686 i686 i386 GNU/Linux

You are not running CEntOS. 

The way I install it is I download it onto a flash drive.  I like this one: 
http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/

I am testing different kernels right now.  You can probably use the latest kernel.  At the time of this posting the last LIVECD is CentOS-6.3-x86_64-LiveCD.iso which you can download here: http://mirror.liberty.edu/pub/CentOS/6.3/isos/x86_64/
so, it's very bad, because I have a XenServer 6.0.2 and I can't reinstall OS. Maybe I have a variant?
legendary
Activity: 2893
Merit: 1158
so, I have 2*7870, what I need to change? Could you change it for me please, just I bad understanding in it
2.6.32.12-0.7.1.xs6.0.2.553.170674xen #1 SMP Thu Jul 12 07:41:58 EDT 2012 i686 i686 i386 GNU/Linux
hero member
Activity: 850
Merit: 1000
Good for you man...thanks for posting. I've been considering a distro from that side of the house for a few weeks but haven't seen anything as comprehensive as this. I and several others have had problems with 2 of the same cards giving the full hash rate on Xubuntu. I was fortunate in that plugging in a monitor solved my problem, but for others, they're still looking for a solution. Maybe this will help.
legendary
Activity: 2198
Merit: 1019
Buzz App - Spin wheel, farm rewards
Thanks for posting Smiley

Haven't built a Linux miner yet but this time is rapidly approaching 8D 
hero member
Activity: 924
Merit: 501
WARNING WARNING WARNING

THIS TUTORIAL WILL NOT WORK WITH CGMINER BECAUSE KANO AND ckolivas HAVE DECIDED TO ABANDON SUPPORT FOR THEIR PRODUCT INSTEAD ONLY CHOOSING TO SUPPORT ASIC BITCOIN MINERS.  THEY HAVE ENDED ALL SUPPORT FOR GPU MINING AND ABANDONED THEIR COMMUNITY.  DO NOT USE CGMINER AS THE AUTHORS ARE TRAITORS AND JACKASSES.

WARNING WARNING WARNING


NEW PREFERRED MINER IS BFGMINER


DO NOT FOLLOW THIS TUTORIAL.




Current single GPU stable working version combination is SDK 12.7 and Catalyst Driver 12.3.
Current multi GPU stable with 6 GPU's working under Centos 6.0 w/SDK 12.4 & Driver 11.4  


Code:
--------------------------------------------------------------------------------
 [P]ool management [G]PU management [S]ettings [D]isplay options [Q]uit
 GPU  0:                | 310.2M/349.0Mh/s | A:3 R:0 HW:0 U:16.72/m I:12
 GPU  1:                | 309.0M/374.0Mh/s | A:2 R:0 HW:0 U:11.15/m I:12
 GPU  2:                | 277.9M/349.0Mh/s | A:0 R:0 HW:0 U: 0.00/m I:12
 GPU  3:                | 294.6M/374.0Mh/s | A:0 R:0 HW:0 U: 0.00/m I:12
 GPU  4:                | 271.4M/349.0Mh/s | A:2 R:0 HW:0 U:11.15/m I:12
 GPU  5:                | 311.8M/374.0Mh/s | A:2 R:0 HW:0 U:11.15/m I:12
--------------------------------------------------------------------------------


Why would you want to build a CEntOS based miner?

CEntOS is the "Community ENTerprise Operating System".  What happened about 15 years ago is that many many people using Linux were using RedHat based distributions like Fedora (free desktop version) and the "commercial" version called RedHat Linux.  Then, all of a sudden, RedHat decided they wanted to charge $1000 plus per machine for the commercial version and it made people mad.  So the mad people went off and created a mirror of the RedHat Linux system and they call it CEntOS.  

The beauty of this OS over other choices is that it is designed to operate in a production environment.  You can even buy commercial software to run on these servers from suppliers like Oracle and Adobe.  Because of the planned cycles the software is stable, unlike most other flavors of linux who are trying to constantly do the "latest" thing people who run enterprise software on their systems are much more interested in reliability.  These distributions (Centos, Fedora, Redhat, Scientific Linux) are the best choice for multiple-gpu cards and multiple-gpu systems, especially when there are only windows drivers available for the video card you own.

Here's the instruction sheet.  Let me know what can be improved.  


Code:
#############################################################
####
####  Installing mining Software on CEntOS or Fedora based distributions
####  
####  Currently 2 GPU's working under Centos 6.4 w/SDK 12.7 & Driver 12.3
####  Currently 4 GPU's working under Centos 6.0 w/SDK 12.4 & Driver 11.4
####
####  testing to increase GPU's per motherboard
####  
####  by:  Viceroy who accepts tips at   144RtpxYKbigosiqTyXNwzwtH6Z7s96xUx
####
#############################################################
####
#############################################################
####  Section 0 - Table of Contents
#############################################################
####
####  Section 0 Table of Contents
####  Section 1 Disclaimers
####  Section 2 Setting up CentOS
####  Section 3 Setting up Base Packages
####  Section 4        Installing ATI Development Kit (SDK)  
####  Section 5         Installing ATI Catalyst Drivers
####  Section 6         Testing ATI Catalyst Drivers
####
#############################################################
####  Section 1 - Disclaimers
#############################################################
####
####  I am not responsible for you using these instructions.  
####
####  If you choose to follow anything you read here that is
####  your problem, not mine.  I have written these instructions
####  for my personal use for my particular machine in an effort
####  to help me mine bitcoin.  If you follow these instructions
####  you may or may not have success, neither of which are any
####  concern of mine because you are the fool who followed me
####  off the bridge.  I did not push you.
####
####  I am proposing here to build a TOTALLY INSECURE HIGH
####  POWERED PASSWORD CRACKING MACHINE which MAY OR MAY NOT
####  BE LEGAL TO POSESS WHERE YOU LIVE.  If the policeman
####  puts you in jail because you followed what I wrote here
####  that is your fault, not mine.  You need to be aware of
####  local, national and international laws before you decide
####  to build a high powered password cracker.  If this gets
####  into the wrong hands and it starts a nuclear war and
####  and some hostile government decides to end the world
####  guess what... that's not my fault either.  
####
####  Be responsible, do no let Kim Jong Un get this machine
####  http://en.wikipedia.org/wiki/Kim_Jong-un
####
#############################################################
####  Section 2 - Setting up Centos
#############################################################
####
####  While at your windows desktop machine you need to
####  download the ISO from http://vault.centos.org/6.0/isos/
####
####  (I will be using the 64 bit OS from here on out)
####
####  The ISO can be burned to CD, DVD or USB
####
####  (I will burn the ISO to a 2GB+ USB flash drive)
####
####  Download the ISO from:
####  http://vault.centos.org/6.0/isos/x86_64/CentOS-6.0-x86_64-LiveCD.iso
####
####  Download and install Pendrivelinux Windows Software:
####  http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
####
####  0. Plug in your flash drive and wait for it to register
####
####  1. start pendrivelinux universal USB installer
####  2. selects CentOS from "other distros alphabetically"
####  3. select the CentOS LIVE iso you downloaded
####     (CentOS-6.0-x86_64-LiveCD.iso)
####  4. select your drive letter and format the drive
####  5. safely remove flash drive and plug into new machine
####  6. boot up and install CentOS with the menus
####  7. after intallation log in as root (or su) and:
#### 7a. set up network so IP is fixed so you can log in remotely
#### 7b. turn on the SSH daemon so you can log in (service sshd start)
#### 7c. make sshd starts each time you boot (chkconfig sshd on)
####  8. now I like to go back to my nice desk and chair
####    8a. dowload and install putty so you can talk to your box
####    http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
####    using a new ssh connection, connect to your machine as the
####    user you set up during installation.  (it's a bad idea to log
####    in as root from a remote location).
####   9. while you are sitting there at your desk download and install
####    xming windows xwindow emulator from here:
####    http://sourceforge.net/project/downloading.php?group_id=156984&filename=Xming-6-9-0-31-setup.exe
####  10. modify yum
####
####  cut and paste one command at a time
####

####  become root user
su -

#### change directory to yum repo directory
cd /etc/yum.repos.d

#### move original file to backup
mv -f CentOS-Base.repo CentOS-Base.repo.old

# COPY the following into your buffer
## (in windows you use ctrl-c)
##
## start copy ---->>

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the #mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://vault.centos.org/6.0/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://vault.centos.org/6.0/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://vault.centos.org/6.0/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://vault.centos.org/6.0/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
baseurl=http://vault.centos.org/6.0/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

## <<----  end copy
##
## then using the built in world processor in linux type

vi CentOS-Base.repo

# while in Vi hit [insert key]
# then paste the contents of your buffer with the right mouse button
# then hit the escape key
# hit :
# then hit x
# then hit the [enter key]
# this will save the file and exit

# test out your changes

yum check-update



#############################################################
####  Section 3 - Setting up Base Packages
#############################################################

####  become root user
su -

yum -y groupinstall x11

#### if you see an error about yum being locked be patient it will unlock in a minute
yum -y install gcc rpm-build git wget make kernel-devel python python-libs numpy openssl openssl-devel ncurses ncurses-devel ncurses-libs autoconf automake m4 pkgconfig libcurl-devel libtool libudev libusb glx-utils libX11 libstdc++ compat-libstdc++*

####  create new user or place all items in personal home directory
useradd miner

####  become prefered user (no password needed)
su -l miner

####  create a directory to hold all the packages
cd ~
mkdir miningpacks
cd miningpacks

####  download all driver package as user "miner"
####
####       wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgz
####       wget http://www2.ati.com/drivers/linux/amd-driver-installer-12-3-x86.x86_64.run
####
####  goin old-school - working version is best ...
####  note:  modern versions may break other things
####
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-4-x86.x86_64.run

####chmod a+x amd-driver-*
chmod a+x ati-driver-*


exit #go back to being root user

#############################################################
####  Section 4 - Installing ATI Development Kit (SDK)
#############################################################
####
####
####  Install this BEFORE you install the drivers
####
#############################################################
####
####
####  preparing the machine for a new SDK install
####
####
####  First Seek and Destroy ALL Existing ATI Drivers:
####      only needed if you are rebuilding.  If fresh
####      install this command will fail, no directory.
####
cd /usr/share/ati
./amd-uninstall.sh --force

#### more cleaning to be sure
####
#rm -Rf /etc/ati
#rm -Rf /usr/lib/fglrx
#rm -Rf /usr/share/ati
#rm -Rf /opt/AMD*
#reboot  #HIGHLY RECOMMENDED IF YOU REMOVED FILES

####
####  installing the new SDK install
####

####  become root user
su -  

####  become prefered user (no password needed)
su -l miner

####  move to directory to where you are holding the packages
cd ~
cd miningpacks

####  download SDK
####    
####     wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx32.tgz
####     wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.6-lnx32.tgz
####     wget http://developer.amd.com/wordpress/media/2012/11/AMD-APP-SDK-v2.8-lnx64.tgz
####
####  again, oldschool because working beats not-working:
##
wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgz


exit #go back to being root user

#### newer style SDK install
####
#### cd /home/miner/miningpacks/
#### mkdir APP-SDK-2point7-temp
#### cd APP-SDK-2point7-temp
#### cp ../AMD-APP-SDK-v2.7-lnx64.tgz .
#### tar xzf AMD-APP-SDK-v2.7-lnx64.tgz
#### ./Install-AMD-APP.sh
#### cd ..
#### rm -rf APP-SDK-2point7-temp
#### #reboot

### old school style SDK install
cd /opt
tar -xf /home/miner/miningpacks/AMD-APP-SDK*
cd /
tar xf /opt/AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz
ln -sf /opt/AMD-APP-SDK-v2.4-lnx64/include/CL /usr/include
ln -sf /opt/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/* /usr/lib/
ldconfig
reboot

#### echo AMDAPPSDKROOT=/root/AMD-APP-SDK-v2.4-lnx64 >> .bashrc
#### echo AMDAPPSDKSAMPLESROOT=/root/AMD-APP-SDK-v2.4-lnx64 >> .bashrc
#### echo LD_LIBRARY_PATH=/root/AMD-APP-SDK-v2.4-lnx64/lib/x86_64 >> .bashrc


#############################################################
####  Section 5 - Installing ATI Catalyst Drivers for linux
#############################################################
####
####
####  Install this AFTER you install the SDK
####
#############################################################

####  become root user
su -

##
## important note on installing AMD Drivers under linux:
##
## be certain you have the kernel-devel for YOUR kernel
yum list installed | grep kernel-*

##
## output should look like this
#dracut-kernel.noarch                004-32.el6                         installed
#kernel.x86_64                       2.6.32-71.el6                      installed
#kernel-devel.x86_64                 2.6.32-71.29.1.el6                 @updates
#kernel-firmware.noarch              2.6.32-71.el6                      installed
#kernel-headers.x86_64               2.6.32-71.29.1.el6                 @updates
#[root@localhost ~]#
#
#  notice that I DO NOT have a matched kernel and kernel-devel version.  
#  they must match EXACTLY or you will not be successful in the
#  next steps.  I have:
#     kernel.x86_64                       2.6.32-71.el6                      installed
#       and
#     kernel-devel.x86_64                 2.6.32-71.29.1.el6                 @updates
#
#  the difference is so slight you may have missed it
#     my subversion  32-71.29.1.el6 does NOT match 32-71.el6

##
## check your distribution
uname -r

##
## you can have multiple kernel-devel's that is not a problem
## if you are lucky this command works
yum install kernel-devel-$(uname -r)

#### if this was successful move on to the next section
####     proceed to package generation


####******#*#*#*#*#*##*#*####******#*#*#*#*#*##*#*
####
####  optional section if kernels do not match
####
####
#### You will need to find another "kernel" with
###  a matching "kernel-devel" package
####
#### yum --showduplicates list kernel-devel
####
#### to download a specific package just add
#### the version to the name, for example if
#### I want kernel-devel 2.6.32-358.el6 I
#### just add a hyphen
####
#### yum install kernel-devel-2.6.32-358.el6
####
####
####******#*#*#*#*#*##*#*####******#*#*#*#*#*##*#*


#############################################################
####  Generate a Distribution Specific Package of fglrx
#############################################################

# as root

####  Move to package directory
####    using menus generate RPM package for your OS
####    (generate centos 64 packages)
####
cd /home/miner/miningpacks/

####  chmod u+x *-driver-installer*  #step taken earlier
####  //alternative:// sh amd-driver-installer  
sh ati-driver-installer-*

#### (file was downloaded above)
####
####
####  Install generated package
cd /home/miner/miningpacks/
yum -y install fglrx64_p_i_c-* --nogpgcheck
aticonfig --adapter=all --initial --force
reboot


#############################################################
####  Section 6 - Testing ATI Catalyst Drivers
#############################################################


#### check installation by reading output from
more /usr/share/ati/fglrx-install.log

#### further testing SHOULD be done at this time against this page:
####
#### http://wiki.cchtml.com/index.php/Frequently_Asked_Questions#How_do_I_know_fglrx_is_installed_correctly.3F


#### one possible error
####
####[Message] Kernel Module : Precompiled kernel module version mismatched.
####[Error] Kernel Module : Kernel module build environment not found - please consult readme.
####
####
####  This error indicated you do not have the correct kernel-devel libs to match your kernel
####     (I told you it wouldn't work).
####
####  with xming installed on my pc when I use putty I don't even need to
####  export my display.  I can just start playing with opencl and opengl
####  libraries and samples.  But only if I did everything correctly
####  and there were no hardware issues along the way.
####
####  my machines 'hello world' test passed with flying colors
####
aticonfig --lsa

## output looks like this:
#* 0. 0e:00.0 AMD Radeon HD 6800 Series
#  1. 0f:00.0 AMD Radeon HD 6800 Series
#  2. 07:00.0 AMD Radeon HD 6800 Series
#  3. 06:00.0 AMD Radeon HD 6800 Series
#
#* - Default adapter
#
# which is EXACTLY what I want!!!

#### if you are not seeing all your GPU's at this stage something is wrong.
#### first check lspci
lspci -nn | grep VGA

#### if that does not show all your cards you need to hard-boot your computer.
#### it make take several attempts and some plugging and unpluggging monitor
#### cables.  There seems to be little method to the madness but make sure
#### you can see all your GPU's now or you can't mine with them.  Even though
#### centos was designed to handle multiple GPU's off the bat I still find the
#### best way to 'light up' a port is to have a monitor plugged in during hard
#### boot.  I'm sure the resistor based dongle approach would work as well.
####
glxgears

## Segmentation fault
##
## uh-oh I broke something!
## oh yea, I remember
##
## I forgot to log into the linux box.
## so here's what I need to make this work
## I go to the centos box and log in as my
## regular user in the graphical interface.
## then I pull down the menu and open a
## terminal window which must be 'turning
## x on for my local user'.  Once I open
## that terminal (xterm) I can walk away
## and do everything else remotely.  So
## here we go, let's have some fun...
##
glxgears

## Segmentation fault
## oh yea... duh
export DISPLAY=:0
glxgears

##40014 frames in 5.0 seconds = 8002.695 FPS
##40291 frames in 5.0 seconds = 8058.047 FPS
##40288 frames in 5.0 seconds = 8057.494 FPS
##40287 frames in 5.0 seconds = 8057.313 FPS
## ^C
##
## don't be hatin on me now...


#############################################################
####  Install ATI Display Library Development Kit (ADL SDK):
#############################################################

###wget http://developer.amd.com/wordpress/media/2012/11/AMD-APP-SDK-v2.8-lnx64.tgz
### cannot find APP without going through website license
### pain in the ass requires a browser download
###

####  become root user
su -

####  become prefered user (no password needed)
su -l miner

####  move to directory to where you are holding the packages
cd ~
cd miningpacks

####  place ADL zip in current directory

wget http://download2-developer.amd.com/amd/GPU/zip/ADL_SDK_3.0.zip

#### unpack it and install it into the correct directory

mkdir ADL-SDK-3point0-temp
cd ADL-SDK-3point0-temp
cp ../ADL_SDK_3.0.zip .
unzip ADL_SDK_3.0.zip

cp /home/miner/miningpacks/ADL-SDK-3point0-temp/include/*.h /home/miner/cgminer/ADL_SDK
rm -rf /home/miner/ADL-SDK-3point0-temp



#############################################################
####  Install CGMiner
#############################################################

####  become root user
su -

####  become prefered user (no password needed)
su -l miner

####  move to home directory
cd ~

####  download CGMiner from author
git clone https://github.com/ckolivas/cgminer


####  copy ADL libraries to correct location
cd /home/miner/cgminer/ADL_SDK
cp /home/miner/miningpacks/ADL-SDK-5point0-temp/include/*.h .
rm -rf /home/miner/miningpacks/ADL-SDK-5point0-temp/
cd ..

./autogen.sh

make

exit #go back to being root user

cd /home/miner/cgminer/
make install

reboot #if you have not after changes to libraries

#if you did everything as I have above you are finished
#and can run cgminer.  test with  ./cgminer -n

####
#### Now test out your new miner for 24 hours and if you like all the time and effort I
#### put into this guide I encourage you to think about testing your new miner here:

./cgminer -o stratum+tcp://mining.eligius.st:3334 -u 1NQc6tCtRmT8zBeLKNpboFaUBMLcxDwUm6 -p x0 -I 9 --per-device-stats 2>logfile.txt

####
#### After 24hrs of burn in read the logfile.  Make sure nothing strange happened.  
#### Here's how you read the log:

more logfile.txt

#### If you don't see any errors set your miner to your favorite pool and off you go.
#### Then set that file aside so you can refer to it later.

cp logfile.txt burninlog.txt

#### in the future, unless you are having problems you can remove the --per-device-stats and the logging
#### from the command line, so it looks like this:  (don't forget to change the address!!)

./cgminer -o stratum+tcp://mining.eligius.st:3334 -u 1NQc6tCtRmT8zBeLKNpboFaUBMLcxDwUm6 -p x0 -I 9



#### Best of luck, greenhorn!

#############################################################
####  The End
#############################################################

Any comments in this thread should be related to this script and improvements.  Spam and
trolls (like kokjo) posts designed to do anything other than help people build and improve on
this script will be reported to admins.  Please be civil and contribute related info only. thx.

ps. Here's a cool command, in my case 4:
env DISPLAY=:0.0 aticonfig --pplib-cmd "set fanspeed 0 100"
env DISPLAY=:0.1 aticonfig --pplib-cmd "set fanspeed 0 100"
env DISPLAY=:0.2 aticonfig --pplib-cmd "set fanspeed 0 100"
env DISPLAY=:0.3 aticonfig --pplib-cmd "set fanspeed 0 100"
[/s]
Jump to: