Page 1 of 1

[SOLVED] Setting up cgmner on Mageia 4

PostPosted: Feb 14th, '14, 03:19
by linuxdad
Has anyone endeavored to compile cgminer on Mageia 4?

I finally have the cgminer compiled, but running it produces the following:

Code: Select all
[root@Radeon-R9 cgminer-3.7.2]# cgminer --ndevs --scrypt
No protocol specified
 [2014-02-14 01:11:04] CL Platform 0 vendor: Advanced Micro Devices, Inc.                   
 [2014-02-14 01:11:04] CL Platform 0 name: AMD Accelerated Parallel Processing                   
 [2014-02-14 01:11:04] CL Platform 0 version: OpenCL 1.2 AMD-APP (1348.5)                   
 [2014-02-14 01:11:04] Error -1: Getting Device IDs (num)                   
 [2014-02-14 01:11:04] clDevicesNum returned error, no GPUs usable                   
 [2014-02-14 01:11:04] 0 GPU devices max detected           



0 GPU devices is not a good thing.

If you got it setup, what did you do with the fglrx utilities installed?

Thank you.

Re: Setting up cgmner on Mageia 4

PostPosted: Feb 14th, '14, 20:48
by doktor5000
linuxdad wrote:[root@Radeon-R9 cgminer-3.7.2]# cgminer --ndevs --scrypt
No protocol specified


You usually get that when DISPLAY is not set.
Maybe $DISPLAY is not present or set properly in your root session? And why start it as root in the first place?
Also, which graphics card and driver do you use currently?
Code: Select all
lspcidrake -v | grep VGA
grep -i driver /var/log/Xorg.0.log

Re: Setting up cgmner on Mageia 4

PostPosted: Feb 15th, '14, 05:49
by linuxdad
Thank you Doctor, it was the DISPLAY. I only have this issue when connecting to the servers via my Mac. Go figure.

Re: [SOLVED] Setting up cgmner on Mageia 4

PostPosted: Feb 16th, '14, 17:52
by linuxdad
Following up on this issue a little further. After downloading XQuartz - http://support.apple.com/kb/ht5293 and then modifying my startup of ssh connections to be:

ssh -X {user}@{hostname}

Everything works as anticipated.

Re: [SOLVED] Setting up cgmner on Mageia 4

PostPosted: Feb 16th, '14, 18:16
by doktor5000
You could just add an alias for ssh to call ssh -X. That's the same I do for sudo, because since quite some time you have to pass -E or otherwise it will strip away some envionment variables, including DISPLAY. Then you would only need to alter it in one place and your ssh connections could stay like they are.

Although ultimately the proper place for this would be ~/.ssh/config
Code: Select all
    ForwardX11 = yes

In there you can also easily limit different options to a set of hosts or domains if you don't want it globally enabled. For more information check
Code: Select all
man ssh_config

Re: [SOLVED] Setting up cgmner on Mageia 4

PostPosted: Feb 17th, '14, 23:55
by linuxdad
I already had the ForwardX11 = yes in the /etc/ssh/ssh_config file. However, in Mac OS, this would stip the Display variable off, which is also why I needed to install the XQuartz software (or XMing on WIndows) for the Display environment variable.

Yes, I also set the ssh_config in the BSD OS (MAC), however, something else seemed to require the ssh -X when I made connections, only from the Mac.

Best Regards,