[SOLVED] Setting up cgmner on Mageia 4

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Setting up cgmner on Mageia 4

Postby linuxdad » Feb 14th, '14, 03:19

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.
Last edited by linuxdad on Feb 15th, '14, 05:49, edited 2 times in total.
Albert E. Whale, CEH CHS CISA CISSP
President - Chief Security Officer
IT Security, Inc. - http://www.IT-Security-inc.com
Pittsburgh, PA
Email: Albert.Whale@IT-Security-inc.com
linuxdad
 
Posts: 123
Joined: Nov 17th, '13, 21:14

Re: Setting up cgmner on Mageia 4

Postby doktor5000 » Feb 14th, '14, 20:48

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18073
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Setting up cgmner on Mageia 4

Postby linuxdad » Feb 15th, '14, 05:49

Thank you Doctor, it was the DISPLAY. I only have this issue when connecting to the servers via my Mac. Go figure.
Albert E. Whale, CEH CHS CISA CISSP
President - Chief Security Officer
IT Security, Inc. - http://www.IT-Security-inc.com
Pittsburgh, PA
Email: Albert.Whale@IT-Security-inc.com
linuxdad
 
Posts: 123
Joined: Nov 17th, '13, 21:14

Re: [SOLVED] Setting up cgmner on Mageia 4

Postby linuxdad » Feb 16th, '14, 17:52

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.
Albert E. Whale, CEH CHS CISA CISSP
President - Chief Security Officer
IT Security, Inc. - http://www.IT-Security-inc.com
Pittsburgh, PA
Email: Albert.Whale@IT-Security-inc.com
linuxdad
 
Posts: 123
Joined: Nov 17th, '13, 21:14

Re: [SOLVED] Setting up cgmner on Mageia 4

Postby doktor5000 » Feb 16th, '14, 18:16

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18073
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] Setting up cgmner on Mageia 4

Postby linuxdad » Feb 17th, '14, 23:55

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,
Albert E. Whale, CEH CHS CISA CISSP
President - Chief Security Officer
IT Security, Inc. - http://www.IT-Security-inc.com
Pittsburgh, PA
Email: Albert.Whale@IT-Security-inc.com
linuxdad
 
Posts: 123
Joined: Nov 17th, '13, 21:14


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest