Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: Charles999 on May 26, 2013, 01:05:47 AM



Title: CGMINER Running on Ubuntu 12.04 - Require GUI?
Post by: Charles999 on May 26, 2013, 01:05:47 AM
Do you need to install the GUI version of Ubuntu 12.04 to run Cgminer?  I can't seem to get my card to detect properly.

When I run cgminer -n to test i get the following:

[2013-05-25 18:05:04] CL Platform 0 vendor: Advanced Micro Devices, Inc.                   
 [2013-05-25 18:05:04] CL Platform 0 name: AMD Accelerated Parallel Processing                   
 [2013-05-25 18:05:04] CL Platform 0 version: OpenCL 1.2 AMD-APP (1113.2)                   
 [2013-05-25 18:05:04] Error -1: Getting Device IDs (num)                   
 [2013-05-25 18:05:04] clDevicesNum returned error, no GPUs usable                   
 [2013-05-25 18:05:04] 0 GPU devices max detected 

when I run :  sudo aticonfig --lsa
I get this:

[sudo] password for administrator:
* 0. 01:00.0 AMD Radeon HD 7900 Series
  1. 02:00.0 AMD Radeon HD 7900 Series

It seems to see the two 7950 cards but cgminer doesn't like.  Can someone assist please.

Thank you


Title: Re: CGMINER Running on Ubuntu 12.04 - Require GUI?
Post by: optimator on May 26, 2013, 02:09:06 AM
I had trouble getting the Server version of Ubuntu to run. I installed the desktop version of Ubuntu and followed this guide: https://docs.google.com/document/d/1Gw7YPYgMgNNU42skibULbJJUx_suP_CpjSEdSi8_z9U/preview?sle=true

Worked like a charm.



Title: Re: CGMINER Running on Ubuntu 12.04 - Require GUI?
Post by: turtle83 on May 26, 2013, 08:58:38 AM
Run.
Code:
aticonfig --odgt

If that shows your cards and cgminer doesnt then u have a problem.

If the aticonfig --odgt runs with sudo then u need to run cgminer with sudo.

How i have it setup, is to install the desktop version of ubuntu (no need to have monitor after installation). Set to autologin to the user.

And then you can run the aticonfig or cgminer by prepending them with DISPLAY=:0.0

Code:
DISPLAY=:0.0 aticonfig --odgt
DISPLAY=:0.0 cgminer [...]

Basically, if u can get "aticonfig --odgt" to work, cgminer should work also.


Title: Re: CGMINER Running on Ubuntu 12.04 - Require GUI?
Post by: Charles999 on May 26, 2013, 05:13:40 PM
Basically, I need the Desktop version?  Darn, gotta reinstall.  Any other input before I have to reinstall the desktop version?


Title: Re: CGMINER Running on Ubuntu 12.04 - Require GUI?
Post by: turtle83 on May 26, 2013, 05:23:22 PM
Basically, I need the Desktop version?  Darn, gotta reinstall.  Any other input before I have to reinstall the desktop version?

Short answer yes.

Long answer, not really, but you need some sort of x-server running since its Xorg that loads the fglrx module. I too started with a minimal server install, spent time to figure out the xorg relation. If i had spent some more time i could perhaps get it working without full blown desktop install. Its on my todo list to have a minimal live USB build... since the ancient HDD on the mining box is showing signs of dieing.

You need to make sure that your user is auto-logged in. Its an option during installing, easiest to set it there. I did not do that initially, needed to hook in monitor on each reboot to login. Now that ive set it to autologin, i dont need a monitor at all.



Title: Re: CGMINER Running on Ubuntu 12.04 - Require GUI?
Post by: optimator on May 26, 2013, 05:23:57 PM
Basically, I need the Desktop version?  Darn, gotta reinstall.  Any other input before I have to reinstall the desktop version?

I know! For mine I was trying to use a USB stick so I think I had downloaded 4 ISOs and flashed my USB stick about 10 times before I got it working... But then again, I'm kinda slow...

Yes - the Desktop is what you want. I followed the google doc guide I don't recall doing anything else special.

I would recommend creating a bash script to launch cgminer from within byobu. The benefit there is it makes it easier to specify different cgminer config files for testing or whatever.

good luck!


Title: Re: CGMINER Running on Ubuntu 12.04 - Require GUI?
Post by: Charles999 on May 26, 2013, 05:56:47 PM
Thanks for all your inputs guys.  I will try reinstall this again on Tuesday.

Thanks


Title: Re: CGMINER Running on Ubuntu 12.04 - Require GUI?
Post by: servicelabs on June 17, 2013, 09:07:39 AM
No, please refer to the article http://www.service-labs.com/installing-cgminer-on-ubuntu.html


Title: Re: CGMINER Running on Ubuntu 12.04 - Require GUI?
Post by: Charles999 on June 18, 2013, 11:31:14 PM
No, please refer to the article http://www.service-labs.com/installing-cgminer-on-ubuntu.html
Very useful.  thanks