Author

Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.0 - page 710. (Read 5805728 times)

sr. member
Activity: 274
Merit: 250
I made cgm.sh file in cgminer direcotry, where is command line.
Than i`m just runnind # DISPLAY=:0 ./cgm.sh from cgminer dir.
Dont have to export - I`m not a linux expert (noob i think i am Tongue)

When i was using -k phatk -w 256 -v 2 -q3 it was slower than AUTO mode and crashes from time to time.
Even now i think it`s a bit slower for me than phoenix 1.7 with phatk2.
Tested on my Fenix rig (4x5870+5970), Zombie rig (2x5870, 5850 + 6970) and Zulus rig (2x5970 + 5850)
all of them on xubuntu 11.04 + sdk 2.4 + cat 11.06
hero member
Activity: 518
Merit: 500
, and basically the " ./ " in front of the command seemed to be the only thing i was missing.  

Been there, done that. Its a bit weird in linux, but by default the current directory is not in the path, meaning if you try to execute a command or program from the command line, it will look for that command everywhere in the path, but not in the directory you are currently in. "./" means the current directory. Took me a while to get used to that.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
this cgminer is incredible.  it's so interactive for being a command line interface.
Thanks, glad you like it Smiley

In my experience, 99% of the time, command line interface applications are far more powerful than their GUI counterparts.
legendary
Activity: 1190
Merit: 1000
www.bitcointrading.com
yup, i seem to have that strange USB booting issue, where 50% of the time it can't see the USB device and i need to turn off the computer to get it working again.  at first i thought i borked the USB stick somehow and i didn't test it for another hour or so, just before i was going to format it and try it again i figured it was worth a shot and it worked perfectly.  and then every like 2 restarts it needs to sleep for a second and it goes.  

i know i should have posted in an ubuntu forum for the shortcut aspect of this, but i knew you guys would have the answer in like 2 seconds.  this has been highly educational, i did as much work as possible before asking questions, and basically the " ./ " in front of the command seemed to be the only thing i was missing.  and i printed out the instructions from the thread on how to install cgminer from USB, and on the next page of the instructions it says "export DISPLAY=:0 before running cgminer" ... if i only had read it.

following your advice, i'm now attempting the shortcut!

thx guys Cheesy
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Heh - missed all this.
Also note: there is one other thing that I guess I should actually write in there one day:
Depending upon your motherboard and BIOS, sometimes when you boot USB it may fail to boot.
It's an MB/BIOS/USB issue not a linux/xbunutu issue.
If that happens you have to simply power it off (for the usual 10 seconds) and then it should reboot fine.

I guess I should also add on the end some time in the future how to do the HDD install - it's pretty similar but sometimes you need to "sudo apt-get update"
(well I needed to with 11.10)
and yeah "export DISPLAY=:0" is in there

For a desktop shortcut ... right click on the desktop and select "Create Launcher..."
Make sure it has the correct directory and also select "Run in terminal"
full member
Activity: 373
Merit: 100
Try playing around with the intensity if you'd like more speed. However, with that kind of a difference I'd simply wait a little for the averaging process to see where it'll end up

also: is there a way in linux to make a command string attached to a shortcut, like windows?

You'll really want to search an Ubuntu forum for that info. In general, there are two options I'd pursue:
a) create a little shell script that'll set any environment variables and call cgminer with the necessary options
b) create a file "~/.cgminer/cgminer.conf" (IIRC) with all the options.

There's also the possibility to create a desktop shortcut to start cgminer for you, but personally I'd find that a little cumbersome. But that may just be me. (... and I don't know how to do that in XFCE...)
legendary
Activity: 1190
Merit: 1000
www.bitcointrading.com
this cgminer is incredible.  it's so interactive for being a command line interface.

is it normal that my speeds are lower than what they were in windows using guiminer 8/24?  

5870 @ 910MHz I was getting around 410ish and now i'm getting 395ish MH/s, which is pretty close.  edit: y'know nevermind this is working pretty good as it is!

also: is there a way in linux to make a command string attached to a shortcut, like windows?

edit: basically i want to be able to click a button and have it do the 'export DISPLAY=:0' and then the login string all in 1 click.  possible?
legendary
Activity: 1190
Merit: 1000
www.bitcointrading.com
1 quick google, and i found this post in this thread:

https://bitcointalksearch.org/topic/m.652180

so now after telling it

export DISPLAY=:0

it shows 2 gpu devices, right on!


aahhhhhhhhh my password was typed in wrong!  duh!  so now it's WORKING!  this is awesome!  i can now make my computers boot from USB and i have HDD's to spare!

awesome, thx for the pointers guys, now i am playing with POWWWAAAARRRRRRR!!

legendary
Activity: 1190
Merit: 1000
www.bitcointrading.com
do i have to install the cgminer, or just leave it in the folder? in the instructions there was something about a 'make' command.

"Installation" usually means putting the binary and support files somewhere they can be used and configuring the environment to be able to use them. Some programs, like cgminer, don't care where they are, so putting them in any old directory is an "installation". (in short: saying "installing" is just marketing)

i tried with the ./ in front and got the same error.

CGMINER: command not found.

If that error message was copy & pasted:
In Linux, case matters; make sure you don't capitalise stuff that you shouldn't.

You can launch cgminer from anywhere if you specify the whole path when running it, in you case "~/mining/cgminer " should do that.

is there a reason why it would only say 1 GPU is ready instead of 2?

That probably means it can only use one.

thx for the heads up on the case-senstitivity of linux, i've been using it for all of a few minutes, and that's good to know. 

ok so i'm getting more success this time when i try, it keeps telling me my username/password for the pool is wrong, which means it's 99% of the way there!

here's a screen so far.  not sure why it wont accept my logon info though.

http://img267.imageshack.us/img267/2478/screen2hb.jpg
rjk
sr. member
Activity: 448
Merit: 250
1ngldh
In Linux, case matters; make sure you don't capitalise stuff that shouldn't be.
Good catch...
full member
Activity: 373
Merit: 100
do i have to install the cgminer, or just leave it in the folder? in the instructions there was something about a 'make' command.

"Installation" usually means putting the binary and support files somewhere they can be used and configuring the environment to be able to use them. Some programs, like cgminer, don't care where they are, so putting them in any old directory is an "installation". (in short: saying "installing" is just marketing)

i tried with the ./ in front and got the same error.

CGMINER: command not found.

If that error message was copy & pasted:
In Linux, case matters; make sure you don't capitalise stuff that you shouldn't.

You can launch cgminer from anywhere if you specify the whole path when running it, in you case "~/mining/cgminer " should do that.

is there a reason why it would only say 1 GPU is ready instead of 2?

That probably means it can only use one.
legendary
Activity: 1190
Merit: 1000
www.bitcointrading.com
ok i'll boot back into xubuntu and try it now.  is there a reason why it would only say 1 GPU is ready instead of 2?
rjk
sr. member
Activity: 448
Merit: 250
1ngldh
do i have to install the cgminer, or just leave it in the folder? in the instructions there was something about a 'make' command.

i tried with the ./ in front and got the same error.
It should work from any directory. Since you were able to get it to say "1 device found", that sounds like it is already compiled and should be working. Were you in the directory that contained the cgminer binary when you issued that command? It would only work from within the folder.
oh from any directory, thats awesome.  i didn't.. compile anything, and i have 2 cards in the system which i thought it should be seeing.  if i go 'sudo aticonfig --lsa' it shows both the cards and the temperatures on each.
Sorry!!  Embarrassed What I meant was, you should be able to move the binary to somewhere else, no need to "install" it as such. I was mixing 2 trains of thought there.
legendary
Activity: 1190
Merit: 1000
www.bitcointrading.com
do i have to install the cgminer, or just leave it in the folder? in the instructions there was something about a 'make' command.

i tried with the ./ in front and got the same error.
It should work from any directory. Since you were able to get it to say "1 device found", that sounds like it is already compiled and should be working. Were you in the directory that contained the cgminer binary when you issued that command? It would only work from within the folder.
oh from any directory, thats awesome.  i didn't.. compile anything, and i have 2 cards in the system which i thought it should be seeing.  if i go 'sudo aticonfig --lsa' it shows both the cards and the temperatures on each.
rjk
sr. member
Activity: 448
Merit: 250
1ngldh
do i have to install the cgminer, or just leave it in the folder? in the instructions there was something about a 'make' command.

i tried with the ./ in front and got the same error.
It should work from any directory. Since you were able to get it to say "1 device found", that sounds like it is already compiled and should be working. Were you in the directory that contained the cgminer binary when you issued that command? It would only work from within the folder.
legendary
Activity: 1190
Merit: 1000
www.bitcointrading.com
PLEASE help, shed a little light, im moments away from success!  i anxiously await reply.
Instead of
Code:
cgminer -o http://us.eclipsemc.com:8337 -u username -p password
use
Code:
./cgminer -o http://us.eclipsemc.com:8337 -u username -p password

The ./ means look in the current folder (which it does not do by default, unlike Windows).
do i have to install the cgminer, or just leave it in the folder? in the instructions there was something about a 'make' command.

i tried with the ./ in front and got the same error.
rjk
sr. member
Activity: 448
Merit: 250
1ngldh
PLEASE help, shed a little light, im moments away from success!  i anxiously await reply.
Instead of
Code:
cgminer -o http://us.eclipsemc.com:8337 -u username -p password
use
Code:
./cgminer -o http://us.eclipsemc.com:8337 -u username -p password

The ./ means look in the current folder (which it does not do by default, unlike Windows).
legendary
Activity: 1190
Merit: 1000
www.bitcointrading.com
i wonder if someone could please help me set up cgminer with ubuntu.

i'm a total linux n00b, but i'm pretty clever, and i'm at a wall right now which is extremely frustrating because i'm like moments away from success.

so i followed this tutorial:

https://bitcointalksearch.org/topic/m.426741

FANTASTIC tutorial, seriously, I haven't used linux EVER and after downloading the ISO, booting from USB, bam.  good to go.

i got the ATI drivers installed, OpenCL installed, good to go.

now step 13: is sorta like.. easy to understand if you are a linux pro, but i had a hard enough time changing directories in the terminal. 

so i..

sudo apt-get install curl

and then it installs that.

i got the linux binary

and then its a random file compression thing ive never heard of.  i assume i put this somewhere? so i create a folder called mining, put it in there, take the files out of the subfolder it created and put them right in the /mining/ folder.

and so if i right click on "mining" and tell it to open a terminal here, pops up a terminal, and then i type ./cgminer -n and it says "1 GPU Device found"

great, so then can i start mining now?  i dont know exactly what command string to use.  in the 1st post there are some examples there, let's try...

cgminer -o http://pool:port -u username -p password

so i change it to

cgminer -o http://us.eclipsemc.com:8337 -u username -p password

^ and i changed username to be the worker name, right?

and i get the error

CGMINER: command not found.

PLEASE help, shed a little light, im moments away from success!  i anxiously await reply.
donator
Activity: 1218
Merit: 1079
Gerald Davis
Got an update from Symantec Antivirus last night and it told me cgmimer was a trojan.  Huh

Anybody else have this experience.

No but I use a real anti-virus.  You do have a virus on your system though ... Symantec.

No false + with Avast.
Jump to: