Bitcoin Forum
November 20, 2017, 07:41:02 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 [14] 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 ... 139 »
  Print  
Author Topic: Linux mining distro for the Raspberry PI - MinePeon  (Read 681296 times)
canton
Sr. Member
****
Offline Offline

Activity: 260



View Profile WWW
June 06, 2013, 03:38:16 PM
 #261

Again huge thanks for your work, Neil. Everything's running smoothly now after 9+ hours. I'm not feeling super comfortable with all the cgminer conf file changes and restarts that are part of the donation process, so I just sent 20+ hours worth of my mining profit to you the "old fashioned" way:

https://blockchain.info/tx/67a607d4a8041527ade4b18376fe5b6c3f81d8686132526b152de8619e13fc08

I encourage everyone benefiting from MinePeon to make a contribution to make sure this electricity & sanity-saving project prospers. Donation address is at http://mineforeman.com/minepeon/

My main concern with the donate script (see below) is that -- as I understand it -- if the Pi panics/crashes/reboots during that first cgminer restart, then the donation credentials will forever overwrite my actual pool credentials. Have I got that right? Also, what happens if you switch from cgminer to a different miner? Does the donation script still work?


https://bitcoinpaperwallet.com - Gorgeous 2-sided tri-fold paper wallets with tamper-evident features. *** Now with BIP38 & dice generator ***

My RSA Key ID & Fingerprint: 36E1D9B6 / AB12 6777 451C 7A18 C172 3297 C525 F065 0B16 DF4B
1511206862
Hero Member
*
Offline Offline

Posts: 1511206862

View Profile Personal Message (Offline)

Ignore
1511206862
Reply with quote  #2

1511206862
Report to moderator
Join ICO Now Coinlancer is Disrupting the Freelance marketplace!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511206862
Hero Member
*
Offline Offline

Posts: 1511206862

View Profile Personal Message (Offline)

Ignore
1511206862
Reply with quote  #2

1511206862
Report to moderator
1511206862
Hero Member
*
Offline Offline

Posts: 1511206862

View Profile Personal Message (Offline)

Ignore
1511206862
Reply with quote  #2

1511206862
Report to moderator
1511206862
Hero Member
*
Offline Offline

Posts: 1511206862

View Profile Personal Message (Offline)

Ignore
1511206862
Reply with quote  #2

1511206862
Report to moderator
Morblias
Hero Member
*****
Offline Offline

Activity: 566


View Profile
June 06, 2013, 06:04:14 PM
 #262

On http://mineforeman.com/minepeon/



Stop messing with my head Neil!  Grin

Tips / Donations accepted: 1Morb18DsDHNEv6TeQXBdba872ZSpiK9fY
Morblias
Hero Member
*****
Offline Offline

Activity: 566


View Profile
June 06, 2013, 06:09:51 PM
 #263

Question: Can anyone tell me how to retrieve the chip temperature from the Jalapeño while MinePeon is running? E.g. from the command line? As I decide where to ultimately locate this fairly noisy device, I'd like to watch my temperatures closely to make sure I don't choose a place that's too warm or poorly ventilated.

- canton

Code:
sudo screen -r
will bring up cgminer (or bfgminer if you are using that) and that should list your jalapeno temp

To close screen, ctrl+a then d

Tips / Donations accepted: 1Morb18DsDHNEv6TeQXBdba872ZSpiK9fY
Christoban
Newbie
*
Offline Offline

Activity: 9


View Profile
June 06, 2013, 06:13:26 PM
 #264

Forgot to add!

It has my 'donation' code in it as well.  When you set it up go to the settings page and you will see a new option called "Donation (Minutes per 24 hours)" set to default of 15 minutes.

What it does is at 00:00 (midnight your time if you set your timezone) it mines using a MinePeon Donation account for the amount of minutes you set (Zero if you like).

Neil

Can someone advise how to get to the mentioned settings page? Is this as OS setting or within CGMiner?


Thanks
runlinux
Hero Member
*****
Offline Offline

Activity: 566



View Profile WWW
June 06, 2013, 07:37:57 PM
 #265

It's from the web server running on the Pi. There is a tab at the top for settings.

Christoban
Newbie
*
Offline Offline

Activity: 9


View Profile
June 06, 2013, 07:59:30 PM
 #266

Ah yes. It's right in front of me. Thank you
canton
Sr. Member
****
Offline Offline

Activity: 260



View Profile WWW
June 06, 2013, 10:03:32 PM
 #267

Code:
sudo screen -r
will bring up cgminer (or bfgminer if you are using that) and that should list your jalapeno temp
To close screen, ctrl+a then d

And also hardware errors and all kinds of good stuff. A great feature of the web interface would be a button which lets you retrieve the latest snapshot from that output... Or even a tab that refreshes every few seconds...

https://bitcoinpaperwallet.com - Gorgeous 2-sided tri-fold paper wallets with tamper-evident features. *** Now with BIP38 & dice generator ***

My RSA Key ID & Fingerprint: 36E1D9B6 / AB12 6777 451C 7A18 C172 3297 C525 F065 0B16 DF4B
MineForeman.com
Legendary
*
Offline Offline

Activity: 896



View Profile WWW
June 06, 2013, 10:07:12 PM
 #268

My main concern with the donate script (see below) is that -- as I understand it -- if the Pi panics/crashes/reboots during that first cgminer restart, then the donation credentials will forever overwrite my actual pool credentials. Have I got that right? Also, what happens if you switch from cgminer to a different miner? Does the donation script still work?

I am sooo busy at the moment!!!! Tongue

I am going to go through todays questions and answer them one at a time, this is the most important one though.

I absolutely agonized over how to implement donations, I have had various versions of how to do it, the last thing I want is to steal your hashes.

This is the solution I finally came up with and I am quite happy with, I have about 5 pages of test plans running through potential scenarios like you mentioned and it satisfies all of them.  Since the 'donation'; cgminer config is only in place for 5 seconds in the scenario you mention when cgminer crashes after the first reset it will do one of two things;-

1. Crash and never start up again so there will be no mining going on.

2. Crash and be restarted by systemd, at that point it will read the config file that is in place, if it is within the 5 seconds that the donation config is in place it will mine for me until the donation time runs out and then restart your config file OR if it restarts after the 5 seconds it will read you config file and mine for you.

It is important to note that the donate script and the miner are two totally different process and one crashing will not affect the other.

Neil

Bitcoin News http://mineforeman.com/ || MinePeon - Bitcoin mining on the Raspberry PI http://mineforeman.com/minepeon/ || MinePeon Wiki http://minepeon.com/ || MinePeon Forums http://minepeon.com/forums/
MineForeman.com
Legendary
*
Offline Offline

Activity: 896



View Profile WWW
June 06, 2013, 10:10:18 PM
 #269

yeah that worked, running with Block Erruptor USB now!
- compiled cgminer 3.1.1, and copied the executable to /opt/minepeon/bin
- added -S /dev/ttyUSB0 -S /dev/ttyUSB1  etc. to /usr/lib/systemd/system/cgminer.service

Can you note down exactly what you did here?  I still don't have any Eruptor's to play with but I would like to see exactly what you did (git clone, configure, service changes and everything).

Neil

Bitcoin News http://mineforeman.com/ || MinePeon - Bitcoin mining on the Raspberry PI http://mineforeman.com/minepeon/ || MinePeon Wiki http://minepeon.com/ || MinePeon Forums http://minepeon.com/forums/
MineForeman.com
Legendary
*
Offline Offline

Activity: 896



View Profile WWW
June 06, 2013, 10:15:46 PM
 #270

Question: Can anyone tell me how to retrieve the chip temperature from the Jalapeño while MinePeon is running? E.g. from the command line? As I decide where to ultimately locate this fairly noisy device, I'd like to watch my temperatures closely to make sure I don't choose a place that's too warm or poorly ventilated.

It is available through the miner (screen -r) and soon to be available through the graphs.  I need to work out a suitable way to enumerate that data no matter what hardware you are using.  (it already records the Pi Temperature, no graph for that yet though)

Neil

Bitcoin News http://mineforeman.com/ || MinePeon - Bitcoin mining on the Raspberry PI http://mineforeman.com/minepeon/ || MinePeon Wiki http://minepeon.com/ || MinePeon Forums http://minepeon.com/forums/
MineForeman.com
Legendary
*
Offline Offline

Activity: 896



View Profile WWW
June 06, 2013, 10:37:17 PM
 #271

Another question: What's the purpose of configuring up to 3 pools in MinePeon? Is it a failsafe, e.g. if pool 1 is down, then pool 2 is used instead?

Yep.

Recommendation: Regarding the new "minutes per 24 hours" donation feature, I recommend that you allow this to be configured as the 4th pool on the settings page that says "donations pool" which shows (and even lets you edit) the donations pool. Probably a good place to include the # minutes option as well. Here's why:

That was my first thought but in the end it proved to be too unreliable.  About 1 time in 20 it would end up doing the wrong thing.  While the miner API allows you to add and remove and switch pools you add a pool by using the pool details and remove and switch polls by using their ID number with no mention of what the pool details are.  Even with all of the pools in there are there is no command to order the pool priorities as you would like (i.e. pool 4, 1, 2, 3 or pool 1,2,3,4).

I have spent the best part of 2 months thinking and working on this and have tried multiple ways of making sure it works as intended and this is by far the best way of doing it, it has yet to fail on me.

In the end though if you still are worried about it the solution is simple, just set it to 0 and dont donate or help me test and improve it.

Neil

Bitcoin News http://mineforeman.com/ || MinePeon - Bitcoin mining on the Raspberry PI http://mineforeman.com/minepeon/ || MinePeon Wiki http://minepeon.com/ || MinePeon Forums http://minepeon.com/forums/
tingwahk
Jr. Member
*
Offline Offline

Activity: 37


View Profile
June 06, 2013, 11:39:13 PM
 #272

Another question: What's the purpose of configuring up to 3 pools in MinePeon? Is it a failsafe, e.g. if pool 1 is down, then pool 2 is used instead?

Yep.

Recommendation: Regarding the new "minutes per 24 hours" donation feature, I recommend that you allow this to be configured as the 4th pool on the settings page that says "donations pool" which shows (and even lets you edit) the donations pool. Probably a good place to include the # minutes option as well. Here's why:

That was my first thought but in the end it proved to be too unreliable.  About 1 time in 20 it would end up doing the wrong thing.  While the miner API allows you to add and remove and switch pools you add a pool by using the pool details and remove and switch polls by using their ID number with no mention of what the pool details are.  Even with all of the pools in there are there is no command to order the pool priorities as you would like (i.e. pool 4, 1, 2, 3 or pool 1,2,3,4).

I have spent the best part of 2 months thinking and working on this and have tried multiple ways of making sure it works as intended and this is by far the best way of doing it, it has yet to fail on me.

In the end though if you still are worried about it the solution is simple, just set it to 0 and dont donate or help me test and improve it.

Neil



Maybe you could add mining pool / worker /etc parameters on the settings page for the donations.  That way if you change your mind on which pool you want to use it can be changed without a new release.


also - is there any coding  dependent on "root".  I'd prefer to change the password once my miner is in production.
MineForeman.com
Legendary
*
Offline Offline

Activity: 896



View Profile WWW
June 06, 2013, 11:44:07 PM
 #273

Maybe you could add mining pool / worker /etc parameters on the settings page for the donations.  That way if you change your mind on which pool you want to use it can be changed without a new release.

Perhaps, I will look at that in a future release.

also - is there any coding  dependent on "root".  I'd prefer to change the password once my miner is in production.

Please DO change your root password ASAP (and the WebUI one, and the minepeon one).  Nothing in the code will EVER use a password to do anything.

Neil

Bitcoin News http://mineforeman.com/ || MinePeon - Bitcoin mining on the Raspberry PI http://mineforeman.com/minepeon/ || MinePeon Wiki http://minepeon.com/ || MinePeon Forums http://minepeon.com/forums/
tingwahk
Jr. Member
*
Offline Offline

Activity: 37


View Profile
June 06, 2013, 11:46:30 PM
 #274

Upon installing the latest version the graphs show some history for May.
How can this data be blanked out?
MineForeman.com
Legendary
*
Offline Offline

Activity: 896



View Profile WWW
June 06, 2013, 11:48:03 PM
 #275

Upon installing the latest version the graphs show some history for May.
How can this data be blanked out?

sudo rm -f /opt/minpeon/var/rrd/* .

Sorry, I must not have cleared my testing data.

Neil

Bitcoin News http://mineforeman.com/ || MinePeon - Bitcoin mining on the Raspberry PI http://mineforeman.com/minepeon/ || MinePeon Wiki http://minepeon.com/ || MinePeon Forums http://minepeon.com/forums/
tingwahk
Jr. Member
*
Offline Offline

Activity: 37


View Profile
June 06, 2013, 11:53:13 PM
 #276

Upon installing the latest version the graphs show some history for May.
How can this data be blanked out?

sudo rm -f /opt/minpeon/var/rrd/* .

Sorry, I must not have cleared my testing data.

Neil
thanks
runlinux
Hero Member
*****
Offline Offline

Activity: 566



View Profile WWW
June 07, 2013, 12:32:11 AM
 #277

I wonder why I am having issues getting cgminer to work. All i get is: BitForceSC detect (1:4) get details returned nothing (0:0)

Not sure if its a cgminer issues (v 3.2.0) or something else... BFGMiner was working for a bit, but died after a few hours. Maybe I do need to run this through a powered hub..

Tesla71
Sr. Member
****
Offline Offline

Activity: 293



View Profile
June 07, 2013, 06:02:38 AM
 #278

yeah that worked, running with Block Erruptor USB now!
- compiled cgminer 3.1.1, and copied the executable to /opt/minepeon/bin
- added -S /dev/ttyUSB0 -S /dev/ttyUSB1  etc. to /usr/lib/systemd/system/cgminer.service

Can you note down exactly what you did here?  I still don't have any Eruptor's to play with but I would like to see exactly what you did (git clone, configure, service changes and everything).

Neil

Try to type it from my memory, haven't access to the Pi atm:

First I loaded cgminer 3.1.1 and compiled it:
Code:
wget http://ck.kolivas.org/apps/cgminer/3.1/cgminer-3.1.1.tar.bz2
tar xfvj cgminer-3.1.1.tar.bz2
cd cgminer-3.1.1
wget https://raw.github.com/ckolivas/cgminer/master/autogen.sh
./autogen.sh --enable-icarus
make

copied it to the original dir (saved the original executable first)
Code:
cp /root/cgminer-3.1.1/cgminer /opt/minepeon/bin/.

looked up the USB-miners
Code:
ls -la /dev/ttyUSB*

changed the script which autostarts the service
Code:
vi /usr/lib/systemd/system/cgminer.service

I only added the -S parameter for every of my miners: -S /dev/ttyUSB0 -S /dev/ttyUSB1 -S /dev/ttyUSB2 -S /dev/ttyUSB3 (right after the call for cgminer after the screen command, could post the exact content later if needed)

(thanks to platti and mr2dave for pointing me in the right direction)

I used not the newest of your images it was the one from 05/25/2013
MineForeman.com
Legendary
*
Offline Offline

Activity: 896



View Profile WWW
June 07, 2013, 08:30:36 AM
 #279

I only added the -S parameter for every of my miners: -S /dev/ttyUSB0 -S /dev/ttyUSB1 -S /dev/ttyUSB2 -S /dev/ttyUSB3 (right after the call for cgminer after the screen command, could post the exact content later if needed)

That seems way to complicated for everyone to do Tongue .

I bet you 1 bitcent that the cgminer guys have got it cracked, grab a new image from here;-

http://sourceforge.net/projects/minepeon/files/release/MinePeon-2013-06-07.zip/download

And send the bitcent to their donation address when it works.

Neil

Bitcoin News http://mineforeman.com/ || MinePeon - Bitcoin mining on the Raspberry PI http://mineforeman.com/minepeon/ || MinePeon Wiki http://minepeon.com/ || MinePeon Forums http://minepeon.com/forums/
runlinux
Hero Member
*****
Offline Offline

Activity: 566



View Profile WWW
June 07, 2013, 01:05:18 PM
 #280

the new version of cgminer didnt help with my pi for cgminer. I'm running the old pi if that makes a difference. I am going to buy the new one today and see if that makes a difference.

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 [14] 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 ... 139 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!