Author

Topic: Setting up miner on mac ??? (Read 1005 times)

sr. member
Activity: 456
Merit: 250
May 08, 2013, 01:48:52 PM
#12
I suggest you use ubuntu 12.04  Roll Eyes

That's true. If you set up Linux or even Windows with Boot Camp, you'll find precompiled binaries for a lot more of the mining tools. Also, if you do start using cgminer, you'll find that you get way better GPU hash rates under Linux or Windows. CPUminer will be the same on any operating system, though.

Alright, fair game, I'll look into it.. I've been hating the fact that I have a mac recently but I forgot that I had that option..


Um.. you say GPU hashrate, but I have CPU ? D: Im sorry, im still new to all this tech lingo, and the way I see GPU is better than CPU ...
But if there is better hashrate of GPU there would also be better CPU hashrate as well under Linux and Windows ?



The CPU hashrate should be about the same. cgminer and most other miners do better on GPUs under Windows and Linux than they do on OS X.
newbie
Activity: 3
Merit: 0
May 08, 2013, 01:40:03 PM
#11
what is it?
newbie
Activity: 16
Merit: 0
May 08, 2013, 01:30:58 PM
#10
I suggest you use ubuntu 12.04  Roll Eyes

That's true. If you set up Linux or even Windows with Boot Camp, you'll find precompiled binaries for a lot more of the mining tools. Also, if you do start using cgminer, you'll find that you get way better GPU hash rates under Linux or Windows. CPUminer will be the same on any operating system, though.

Alright, fair game, I'll look into it.. I've been hating the fact that I have a mac recently but I forgot that I had that option..


Um.. you say GPU hashrate, but I have CPU ? D: Im sorry, im still new to all this tech lingo, and the way I see GPU is better than CPU ...
But if there is better hashrate of GPU there would also be better CPU hashrate as well under Linux and Windows ?

sr. member
Activity: 456
Merit: 250
May 08, 2013, 07:28:39 AM
#9
I suggest you use ubuntu 12.04  Roll Eyes

That's true. If you set up Linux or even Windows with Boot Camp, you'll find precompiled binaries for a lot more of the mining tools. Also, if you do start using cgminer, you'll find that you get way better GPU hash rates under Linux or Windows. CPUminer will be the same on any operating system, though.
newbie
Activity: 14
Merit: 0
May 08, 2013, 05:46:37 AM
#8
I suggest you use ubuntu 12.04  Roll Eyes
newbie
Activity: 16
Merit: 0
May 07, 2013, 03:04:54 PM
#7
Yeah, thanks to you Cheesy

Oh ok, I get it, thanks for the explanation Smiley

Yeah, I guess I wont bother with setting that up just yet, maybe teach myself a little more about all this first then give it a go xD

Thanks again for helping Cheesy
sr. member
Activity: 456
Merit: 250
May 07, 2013, 12:16:52 PM
#6
Well, when i usually use minerd, i use my litecoin-cfg.json file to make it work and it works no problem, i can usually expect a (yay!!) message Tongue

OMG! I just tried what you said and it worked Cheesy Sweet Cheesy Thanks so much Cheesy Cheesy

also:
Shirazs-MacBook-397:cgminermac shiraz_$ ./cgminer -n
Illegal instruction


nothing comes up..

but yeah, thanks for your help Cheesy I guess i dont need cgminer now anyway Cheesy



If you dont mind could I ask you a couple more questions please?

Would you know how to set Stratum proxy(Huh) on a mac? Wemineltc.com requires it, but i dont even know what it is lol ?

Great, glad you got it working!

There are two protocols for connecting to mining servers: Longpoll and Stratum. Stratum is newer and tends to work a lot better. Stratum proxy is a program that runs in the background on your computer and accepts Longpoll connections, translates them to Stratum, and forwards them to a pool that uses Stratum. It's meant to be used with miners that only support Longpoll (like minerd).

There's no official mac binary. It might be worth looking through the forums to see if someone's put together an unofficial binary, but otherwise you would have to build it from the source code on Github (https://github.com/bandroidx/stratum-mining-proxy), following the Linux instructions.
newbie
Activity: 16
Merit: 0
May 07, 2013, 09:43:18 AM
#5
Well, when i usually use minerd, i use my litecoin-cfg.json file to make it work and it works no problem, i can usually expect a (yay!!) message Tongue

OMG! I just tried what you said and it worked Cheesy Sweet Cheesy Thanks so much Cheesy Cheesy

also:
Shirazs-MacBook-397:cgminermac shiraz_$ ./cgminer -n
Illegal instruction


nothing comes up..

but yeah, thanks for your help Cheesy I guess i dont need cgminer now anyway Cheesy



If you dont mind could I ask you a couple more questions please?

Would you know how to set Stratum proxy(Huh) on a mac? Wemineltc.com requires it, but i dont even know what it is lol ?
sr. member
Activity: 456
Merit: 250
May 07, 2013, 08:39:39 AM
#4
Okay, I've spotted a couple of problems.

First, minerd doesn't take a config file (sorry, I should have noticed that right away). You pass it all the information it needs on the command line when you run it, like this:

Code:
./minerd --url : --userpass :

So, for example, if you were mining from waycoolpool.com on port 8333, and your worker's username was ghzworker and its password was foo, you'd run this:

Code:
./minerd --url http://waycoolpool.com:8333 --userpass ghzworker:foo

There are some other command line options you can pass in to tweak cpuminer, but that should work for most setups. More information on cpuminer is here: https://bitcointalksearch.org/topic/an-even-more-optimized-version-of-cpuminer-poolers-cpuminer-cpu-only-55038


Second, it sounds like your cgminer is corrupt, or there's something wrong with your cgminer configuration. Do you see a list of your GPU device(s) if you type "./cgminer -n" ?
newbie
Activity: 16
Merit: 0
May 07, 2013, 08:16:37 AM
#3
Lol, ok so, my bad, late 2008 mac ** sorry,

Also, im pretty sure the miner and json are in the same directory, Ive kept them in the same directory all the times ive tried...

Ive copied all my json files in the cgminer directory (using finder! xD cuz i wouldnt know how to do it on terminal if my life depended on it lol.) and i tried again.. it keeps telling me illegal instruction... D:

./cgminer -c litepool.json

thats what i type in after i do cd, but it tells me Illegal instruction..ii tried with the config that usually works but that also tells me illegal instruction..

when i do it in minerd it tells me that it failed and then gives me a huge list of controls that i dont know how to use:


[2013-05-07 14:11:07] JSON decode of litecoin.json failed
minerd version 2.1.2

Usage:   minerd [options]

Supported options:
--help
(-h) Display this help text

--config FILE
(-c FILE) Load a JSON-format configuration file

--algo XXX
(-a XXX) Specify the algorithm to use (default: scrypt)

--quiet
(-q) Disable per-thread hashmeter output

--debug
(-D) Enable debug output

--no-longpoll
Disable X-Long-Polling support

--protocol-dump
(-P) Verbose dump of protocol-level activities

--retries N
(-r N) Number of times to retry if JSON-RPC call fails
   (default: retry indefinitely)

--retry-pause N
(-R N) Number of seconds to pause between retries (default: 30)

--scantime N
(-s N) Upper bound on time spent scanning current work, in seconds
   (default: 5)

--timeout N
(-T N) Connection timeout, in seconds (default: 180)

--syslog
Use system log for output messages (default: standard error)

--threads N
(-t N) Number of miner threads (default: number of processors)

--url URL
(-o URL) URL for JSON-RPC server (default: http://127.0.0.1:9332/)

--userpass USERNAME:PASSWORD
(-O USERNAME:PASSWORD) Username:Password pair for JSON-RPC server

--user USERNAME
(-u USERNAME) Username for JSON-RPC server

--pass PASSWORD
(-p PASSWORD) Password for JSON-RPC server





and when i do -c FILE it tells me command not found


D:

sr. member
Activity: 456
Merit: 250
May 07, 2013, 06:56:33 AM
#2
You should be able to create JSON files in any text editor, so I doubt that that's the problem. The first thing I would try is making sure that your JSON file is in the same directory as minerd. If it's not, you can move or copy it there using the terminal or in Finder, whichever you prefer.

FWIW, I don't think cgminer will run on a 2002 Mac.
newbie
Activity: 16
Merit: 0
May 07, 2013, 04:47:49 AM
#1
Hey there,

Im pretty new to all this btc stuff and all the tech talk that comes with it... Ive gotten into LTC mining, thanks to the help of someone I met on a random chat, they helped walk me through it (on minerd).. I've been trying to set up my miner with another pool, but its not working? Ive downloaded ANOTHER miner (cgminer), to see how it goes with that, but thats not working either o.o

I use a late 2008 mac, and I usually user Terminal(command line interface) to start my miner up. The only reason Im able to do this on terminal is because i know how to cd to where my miner is and then i know what to type in to configure it (vocab ??) [ ./minerd -c FILE ]

Ive tried making other .json files for the other pools ive tried joining, putting them in the same directory as the miner and starting them up in the same way, but i keep getting 'no such file or directory'

The way im making these .json is by just changing the extension. Should I be getting software for this?

Im so lost :C Im really noob right now, but I really do want to at least get the basics of all this and sort of manage to find my way on my own..

Help please ?
Jump to: