Author Topic: Guide for CPU and GPU Peercoin Mining on Mac OS X - Tested  (Read 17061 times)

Offline scottialex

  • Jr. Member
  • **
  • Posts: 16
  • Karma: +1/-0
  • Hello I'm new here
  • Referrals: 0
    • View Profile
Guide for CPU and GPU Peercoin Mining on Mac OS X - Tested
« on: December 07, 2013, 01:28:52 am »
I worked with OSX 10.6.8, 10.8.5 and 10.9. I could not get anything to work on 10.6.8 and I did not try 10.7. Also, I didn't try solo mining. I used ppcoin.d7.lt pool mining.

Open an account at D7 and configure your CPU/GPU worker.

If you are GPU mining on an iMac computer, you want to download Macs Fan Control from:
https://www.macupdate.com/app/mac/47386/macs-fan-control
And set the ODD fan (closer to GPU) to "Sensor-based value" to GPU Diode and to start increasing speed at 60C degrees to a max. of 75C degrees. On my Imac, when I let the OSX system control the fan, the GPU Diode temp shoots up to 80C degrees and after enabling Macs Fan Control app the GPU Diode temp drops down to 64 degrees immediately.

If you are running OSX 10.6.8 you need to upgrade to OS X Mavericks 10.9, it's free from the Mac App Store. If you are running 10.7 or 10.8 you may not need to upgrade at all.

CPU mining:
Download MacMiner version 1.5.4 (or experiment with a newer version if available) from http://fabulouspanda.co.uk/macminer/downloads/ you MUST keep the App in the Applications folder.

Every time you open MacMiner, by default it opens the BFG miner, make sure you CLOSE IT every time and go to View menu --> Show CPUMiner. Once the small window opens, click on the gear button. On the following window, click the button "Edit pool settings" empty all the fields but fill out the LTC fields with the pool url of your choice, enter your user name and password or instead use the default in-app options and instructions given --> hit Save & start button to close this window. Now click on Start button and it should start CPU mining now.

GPU mining:
Download the full package of cgminer for Mac OS X version 3.7.2 from http://spaceman.ca/cgminer/

When you unzip the downloaded file, it gives you a folder that we don't need. Just move the App cgminer for Mac OS X to the Applications folder and DO NOT RENAME IT.

You MUST keep the App in the Applications folder and DO NOT OPEN THIS APP. It's not necessary and it didn't work for me anyways, we need the files only, not the interface.
Now control+click (right click) the app cgminer for Mac OS X and click --> Show Package Contents. Now navigate to Contents --> Resources folder and here you'll see a bunch of files, one of them being cgminer.

In this Resources folder, create a text file named mine with the extension .sh (mine.sh). You can use TextEdit.app for this. Inside the mine.sh file you will paste the following:

#!/bin/sh
export DISPLAY=:0
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
./cgminer -g 1 -o stratum+tcp://stratum.d7.lt:3333 -u YOURpoolUSERNAME -p YOURpoolPASSWORD --failover-only --intensity=0

If you know the shader value of your GPU then add it. I'm doing fine without it. Leave intensity at 0 to start, you can test higher values later.

Make sure that this mine.sh is saved in the Resources folder.

Now go to the Terminal.app (It's located in Applications/Utilities folder) and run the following command:

cd /
(hit enter)

Navigate to the Resources folder with this command:
cd ./Applications/cgminer\ for\ Mac\ OS\ X.app/Contents/Resources/
(hit enter)

Assign executable permissions to the file mine.sh with the following command:
chmod a+xrw mine.sh
(hit enter)

And finally run cgminer with this command:
./mine.sh
(hit enter)

Mining will begin as long as you have a decent GPU that supports Open CL.

Best,
Alejandro Scotti
« Last Edit: January 14, 2014, 01:17:40 am by scottialex »

Offline Ben

  • Volunpeer
  • Peercoin Vocalist
  • *****
  • Posts: 1014
  • Karma: +58/-0
  • Referrals: 0
    • View Profile
Re: Guide for CPU and GPU PPcoin Mining on Mac OS X - Tested
« Reply #1 on: December 07, 2013, 01:32:32 am »
Nice work, Scottialex.

I'l give this setup a try tomorrow on the MacMini that I've got sitting in the basement. Glad to see more Mac tutorials for Peercoin :)
Twitter: @b_rossi
Reddit & Bitcointalk: Mtinie
BM-2cSvefdSPtfzKLRmQVzcZ7EncEv4WoWYhJ

Offline scottialex

  • Jr. Member
  • **
  • Posts: 16
  • Karma: +1/-0
  • Hello I'm new here
  • Referrals: 0
    • View Profile
Re: Guide for CPU and GPU PPcoin Mining on Mac OS X - Tested
« Reply #2 on: December 07, 2013, 01:37:53 am »
I just hope that I can help out a little since I'm getting a lot of help from many of you.

GPU mining on my brand new MacMini Server didn't work, not a usable device. CPU worked fine :-)

Offline drahogerusiel

  • Jr. Member
  • **
  • Posts: 17
  • Karma: +0/-0
  • Hello I'm new here
  • Referrals: 0
    • View Profile
Re: Guide for CPU and GPU PPcoin Mining on Mac OS X - Tested
« Reply #3 on: December 08, 2013, 08:58:33 pm »
i want to try this out but im runnig 10.6.8  :-\

Offline BigKing

  • Jr. Member
  • **
  • Posts: 7
  • Karma: +1/-0
  • Hello I'm new here
  • Referrals: 0
    • View Profile
Re: Guide for CPU and GPU PPcoin Mining on Mac OS X - Tested
« Reply #4 on: December 10, 2013, 07:26:29 am »
are u sure that we still can use CPU to mine Peer coin,if  Yes, can i rent amazon 3Xlarge computer to mine the peer coin? thanks
please donation some.  i will try  my best to promote our prime coin and peer coin in china:

Peer coin: PVuKJBpwspVePj1n6jsutm2bHcdiPNiw7L
XPM:ASgEAFsWzHtBG2upmZSf82Z1BHdCsXynSE

Offline marvelman

  • Jr. Member
  • **
  • Posts: 4
  • Karma: +0/-0
  • Hello I'm new here
  • Referrals: 0
    • View Profile
Re: Guide for CPU and GPU PPcoin Mining on Mac OS X - Tested
« Reply #5 on: December 10, 2013, 10:29:51 pm »
Thanks!  Got CPU mining on the D7 pool up and working on my macbook pro.  Now to see if anything comes of it.

Offline ArpFlush

  • Jr. Member
  • **
  • Posts: 3
  • Karma: +0/-0
  • Hello I'm new here
  • Referrals: 0
    • View Profile
Re: Guide for CPU and GPU PPcoin Mining on Mac OS X - Tested
« Reply #6 on: December 15, 2013, 02:53:45 pm »
Hi,

New here and interested in mining PPC on my imac. Thx for the guide.

Question: is it better to use CPU or GPU power?

Thx

Offline DC_Litecoin

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
  • Hello I'm new here
  • Referrals: 0
    • View Profile
Re: Guide for CPU and GPU PPcoin Mining on Mac OS X - Tested
« Reply #7 on: December 17, 2013, 01:18:39 am »
scottialex,

Thx for the guide.  Helped a bunch.

Although I'm able to get 2kh/s with just the default settings compared to 600 mh/s running your custom mine.sh

i5 imac mid 2011 with Radeon 6750m 

Offline FuzzyBear

  • Forum Operator
  • Administrator
  • No life but Peercoin!!
  • *****
  • Posts: 1325
  • Karma: +76/-0
  • Referrals: 14
    • View Profile
    • Escrow PPC trades 1% fee
Re: Guide for CPU and GPU Peercoin Mining on Mac OS X - Tested
« Reply #8 on: December 17, 2013, 10:34:26 am »
good guide made topic sticky and changed PPCoin to Peercoin

Fuzzybear
BTC: 1FvMYwtkrQakoL8Zq1GjfKqTkm2a7TKt6N  |
PPC: PDtcFPhMa9Hc9zTfoRG7zcURCRpcpRdMym
PPC Escrow 1% fee

Offline kazem666

  • Jr. Member
  • **
  • Posts: 13
  • Karma: +0/-0
  • Hello I'm new here
  • Referrals: 1
    • View Profile
Re: Guide for CPU and GPU Peercoin Mining on Mac OS X - Tested
« Reply #9 on: December 17, 2013, 11:44:20 pm »
Just a question.  When I change the address url to the D7 mining pool I and hit start and save it says that it's configured but then when I start the miner it says this: The primary pool is set to http://pool.fabulouspanda.co.uk:9327 and the user is set to kazem666.1  Is that the way it is suppose to be?   
PPC: PJpAkpXEGCosVTQB9vmZQL81qYhLq9NkNd

Offline kazem666

  • Jr. Member
  • **
  • Posts: 13
  • Karma: +0/-0
  • Hello I'm new here
  • Referrals: 1
    • View Profile
Re: Guide for CPU and GPU Peercoin Mining on Mac OS X - Tested
« Reply #10 on: December 18, 2013, 01:54:37 am »
Ok.  I see what I did wrong.  I downloaded the wrong version of MacMiner (1.5 instead of 1.4.2.)  Seems to be working fine.  Time will tell.

Thanks.
PPC: PJpAkpXEGCosVTQB9vmZQL81qYhLq9NkNd

Offline FabulousPanda

  • Jr. Member
  • **
  • Posts: 3
  • Karma: +0/-0
  • Developer
  • Referrals: 0
    • View Profile
    • MacMiner Website
Re: Guide for CPU and GPU Peercoin Mining on Mac OS X - Tested
« Reply #11 on: December 23, 2013, 09:47:53 pm »
you can use the bfgminer window in MacMiner for GPU mining and the latest version only doesn't support CPU/GPU mining in cgminer, but you can still mine in cpuminer (which uses minerd) and bfgminer in the latest versions on CPU/GPU

to use the bfgminer window click the settings button and make sure enable gpu mining is checked before you start mining

If you DO download the old 1.4.20 version you can use the included cgminer window for GPU mining

To use bfgminer and cgminer you must set up your Peercoin pool as a BTC pool in pool settings and for cpuminer set it up as a litecoin pool, as cpuminer assumes you're mining litecoin despite PPC's sha-256 algorithm

You can also use the included bfgminer, cpuminer and in 1.4.20 cgminer binaries at the command line, like so:

cd /Applications/MacMiner.app/Contents/Resources/bfgminer/bin
./bfgminer -g 1 -o stratum+tcp://stratum.d7.lt:3333 -u YOURpoolUSERNAME -p YOURpoolPASSWORD

or
cd /Applications/MacMiner.app/Contents/Resources/cgminer/bin
./cgminer -g 1 -o stratum+tcp://stratum.d7.lt:3333 -u YOURpoolUSERNAME -p YOURpoolPASSWORD

or
cd /Applications/MacMiner.app/Contents/Resources/
./minerd -o stratum+tcp://stratum.d7.lt:3333 -u YOURpoolUSERNAME -p YOURpoolPASSWORD

MacMiner works with 10.7+ and there's an old version for 10.6
« Last Edit: December 24, 2013, 03:23:29 am by FabulousPanda »
MacMiner - the first and best Mac Coin Miner http://fabulouspanda.co.uk/macminer/

Offline scottialex

  • Jr. Member
  • **
  • Posts: 16
  • Karma: +1/-0
  • Hello I'm new here
  • Referrals: 0
    • View Profile
Re: Guide for CPU and GPU Peercoin Mining on Mac OS X - Tested
« Reply #12 on: December 24, 2013, 05:24:14 pm »
Hi Panda, I got CGminer in your version 1.4.2 to work but it was giving me faulty results, unstable, with errors and the pool wasn't receiving any data. And the few times that I accidentally used BFGminer I was getting the same faulty results.

I haven't tried your latest version since you released it after I posted this initial guide.

Are you sure that your post is correct and tested? I know it may sound like a stupid questions since you made the app, but I wasn't able to reproduce it.

Thanks,
Alejandro

Offline FabulousPanda

  • Jr. Member
  • **
  • Posts: 3
  • Karma: +0/-0
  • Developer
  • Referrals: 0
    • View Profile
    • MacMiner Website
Re: Guide for CPU and GPU Peercoin Mining on Mac OS X - Tested
« Reply #13 on: December 24, 2013, 05:35:44 pm »
I tested the latest 1.5.3 version with peer coin on bfgminer and it works fine for me, just need to set the BTC pool up the same way you set the LTC pool up

If you let me know what errors you were getting I can help troubleshoot that for you!
MacMiner - the first and best Mac Coin Miner http://fabulouspanda.co.uk/macminer/

Offline scottialex

  • Jr. Member
  • **
  • Posts: 16
  • Karma: +1/-0
  • Hello I'm new here
  • Referrals: 0
    • View Profile
Re: Guide for CPU and GPU Peercoin Mining on Mac OS X - Tested
« Reply #14 on: December 24, 2013, 05:42:22 pm »
Panda, I will try out your newest version and update my guide as necessary. Happy holidays!

 
Share this topic...
In a forum
(BBCode)
In a site/blog
(HTML)


Peercoin.net Official Peercoin Website