Author

Topic: Linux mining distro for the Raspberry PI - MinePeon - page 109. (Read 685140 times)

legendary
Activity: 896
Merit: 1000
The form and POST processing can handle more than 3 pools dynamically scaling up to 20 - joeykrim
Thanks! I registered an account here so I can keep track of development. I hope to continue contributing code.
Project is great, definitely appreciated!

Thanks for that one, the way you handled those POST arrays was really cool.

Still missing the prioritization of pools "on the fly" and buttons like Restart and Quit, as in old miner.php page.
I'm looking into this .. if you have a link to the miner.php you're referring to handy, could you post that?
I'm new to all of this and takes a little bit to get up to speed!

There is a copy of miner.php in the root of the git repo, it was written by another guy here called kano (He is one of the cgminer developers).  It was sort of the reference PHP client that I built everything on.  No origional code exists anymore in MinePeon but i still keep it there for posterity.

...could you please add this features in the future:
* cpu usage
* cpu temperature
I started doing a little digging and figured I'd post my notes here. I'm not sure what MineForeman has in mind or is currently working on, but I don't think it should be *too* bad to add cpu Temperature and perhaps also cpu stats.
I found some info on how arch linux handles cpu temperature: https://wiki.archlinux.org/index.php/Raspberry_Pi#Temperature
Quote
Temperatures sensors for the board itself are including as part of the raspberrypi-firmware-tools package. The RPi offers a sensor on the BCM2835 SoC (CPU/GPU):
/opt/vc/bin/vcgencmd measure_temp
temp=49.8'C
Alternatively, simply read from the filesystem:
% cat /sys/class/thermal/thermal_zone0/temp                
49768
Also, there is another project, quote earlier in this thread, that gives some great stats on cpu usage as well as many other aspects: https://github.com/imjacobclark/Raspcontrol
Perhaps we could include portions of that project? License for the project seems to allow that: https://github.com/imjacobclark/Raspcontrol/blob/master/LICENCE

CPU temp is already being recorded the same way that hashrate is, if you look in /opt/minepeon/etc/cron.d/5min/ there is a file called cputemp or something that handles it, the rrd is output to the normal place (I don't have a peon in front of me so I am relying on memory for paths).

Anyways, glad to have you aboard!

Neil

newbie
Activity: 9
Merit: 0
The form and POST processing can handle more than 3 pools dynamically scaling up to 20 - joeykrim
Thanks! I registered an account here so I can keep track of development. I hope to continue contributing code.
Project is great, definitely appreciated!

Still missing the prioritization of pools "on the fly" and buttons like Restart and Quit, as in old miner.php page.
I'm looking into this .. if you have a link to the miner.php you're referring to handy, could you post that?
Edit: think I found it for cgminer at least .. not sure if there is same for bfgminer? https://github.com/kanoi/cgminer/blob/master/miner.php
I'm new to all of this and takes a little bit to get up to speed!

...could you please add this features in the future:
* cpu usage
* cpu temperature
I started doing a little digging and figured I'd post my notes here. I'm not sure what MineForeman has in mind or is currently working on, but I don't think it should be *too* bad to add cpu Temperature and perhaps also cpu stats.
I found some info on how arch linux handles cpu temperature: https://wiki.archlinux.org/index.php/Raspberry_Pi#Temperature
Quote
Temperatures sensors for the board itself are including as part of the raspberrypi-firmware-tools package. The RPi offers a sensor on the BCM2835 SoC (CPU/GPU):
/opt/vc/bin/vcgencmd measure_temp
temp=49.8'C
Alternatively, simply read from the filesystem:
% cat /sys/class/thermal/thermal_zone0/temp                
49768
Also, there is another project, quote earlier in this thread, that gives some great stats on cpu usage as well as many other aspects: https://github.com/imjacobclark/Raspcontrol
Perhaps we could include portions of that project? License for the project seems to allow that: https://github.com/imjacobclark/Raspcontrol/blob/master/LICENCE
member
Activity: 86
Merit: 10
Hi MineForeman,
I know you are busy man;] but could you please add this features in the future:
* life time uptime
* life time shares counter
* life time donation minutes counter
* best share record
* cpu usage
* cpu temperature
Thank you very much!;]]
hero member
Activity: 626
Merit: 500
Mining since May 2011.
Question: Which file can I modify that will allow me to change the IP subnets that have access to the cgminer API? I want to have another system poll all my Pi's so I can gather stats into one central view. (a custom miner.php + myminer.php)

Thanks.

This will come sooner or later from the WebUI, but there are just so many settings that cgminer supports I am going to have to devote an entire 0.X.0 to them.  In the meantime you can edit;-

/usr/lib/systemd/system/cgminer.service

You will find the cgminer start up stuff in there, it is fairly obvious how to change it.

Neil
Perfect! Thank you.
hero member
Activity: 714
Merit: 500
Are ฿itcoins Radioactive?
I like the new feature @ MinePeon 0.2.2: % of Reject & Discard. Also the "more space" for pools.

Going up, from 20 to 30 minutes of Donation Time.  Smiley

Still missing the prioritization of pools "on the fly" and buttons like Restart and Quit, as in old miner.php page.

Going down, from 30 to 25 minutes of Donation Time.   Wink
legendary
Activity: 896
Merit: 1000
Question: Which file can I modify that will allow me to change the IP subnets that have access to the cgminer API? I want to have another system poll all my Pi's so I can gather stats into one central view. (a custom miner.php + myminer.php)

Thanks.

This will come sooner or later from the WebUI, but there are just so many settings that cgminer supports I am going to have to devote an entire 0.X.0 to them.  In the meantime you can edit;-

/usr/lib/systemd/system/cgminer.service

You will find the cgminer start up stuff in there, it is fairly obvious how to change it.

Neil
legendary
Activity: 896
Merit: 1000
second try. same error message at startup. after logging in with ssh i managed to start httpd manually, though.

had to insert my usb sticks "incrementally" to get them all up and running. a little strange. my usb hubs are definitely not overloaded.

Your SD card may be going broke, unfortunately they never seem to give a good error when they go, your peon just starts doing strange stuff.

Neil
legendary
Activity: 896
Merit: 1000
I skipped grabbing a backup of version otherwise the web interface would continue to display the older version of minepeon being installed.

It grabs the version out of /opt/minepeon/version (one of the ones I got you top backup) so you would have been fine Wink .

Neil
hero member
Activity: 668
Merit: 501
second try. same error message at startup. after logging in with ssh i managed to start httpd manually, though.

had to insert my usb sticks "incrementally" to get them all up and running. a little strange. my usb hubs are definitely not overloaded.
hero member
Activity: 668
Merit: 501
i was trying out the latest version 0.2.2

after booting the first time i got an error message "failed to start apache web server"

logging in via ssh:

Code:
[minepeon@minepeon ~]$ apachectl restart
httpd: Syntax error on line 124 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: invalid ELF header
[minepeon@minepeon ~]$

apparently something is broken. will try writing the image again to the sd card
newbie
Activity: 13
Merit: 0
You need to grab;-

miner.conf  miner.conf.donate  miner.conf.tmp  timezone  uipassword  version

From;-

/opt/minepeon/etc/ 

AND

/opt/minepeon/var/rrd/*  (that is where the graph data lives)

Practice this now!  I am just uploading a new urgent fix release.

Neil

Ok, I'm up and running on the new version now. I skipped grabbing a backup of version otherwise the web interface would continue to display the older version of minepeon being installed.

Time to let this run over night and see how well it behaves.
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
Thank you! Great work on this. Cool

There is a old saying that I always think of when I get prase that is often used in Open Sources stuff, the origional goes;-

nanos gigantum humeris insidentes

If you don't speek latin that roughly translates to "Dwarf standing on the shoulders of giants" and how it applies here is that I am only building on things that others have built.  (one of whom has a comment 5 posts above this one Tongue )

Neil
My point was that he can do it on minepeon if he reads the cgminer README ...
Just run more than one cgminer ... and a little command line action (with --usb) Smiley
Though, in retrospect, maybe he was hoping for point and click Tongue
member
Activity: 66
Merit: 10
Can you put a directy down link?
access MEGA very slowly from my city.


Its being uploaded to sourceforge as well as we speak (sourceforge is slow for me, mega is fast, but I do live in New Zealand so that makes sense)

Neil

thanks,waiting for sourceforge.
legendary
Activity: 896
Merit: 1000
Can you put a directy down link?
access MEGA very slowly from my city.


Its being uploaded to sourceforge as well as we speak (sourceforge is slow for me, mega is fast, but I do live in New Zealand so that makes sense)

Neil
member
Activity: 66
Merit: 10
Can you put a directy down link?
access MEGA very slowly from my city.
hero member
Activity: 626
Merit: 500
Mining since May 2011.
Question: Which file can I modify that will allow me to change the IP subnets that have access to the cgminer API? I want to have another system poll all my Pi's so I can gather stats into one central view. (a custom miner.php + myminer.php)

Thanks.
legendary
Activity: 896
Merit: 1000
[quote author=BitMinerN8 link=topic=137934.msg2726227#msg2726227 date=1373783194
Ok I'll elaborate then. Thanks for putting all this Open Source stuff together into an easy distro that runs very well on a $35 computer.  Grin
[/quote]

No problem, I really enjoy doing it.

Neil
hero member
Activity: 626
Merit: 500
Mining since May 2011.
Thank you! Great work on this. Cool

There is a old saying that I always think of when I get prase that is often used in Open Sources stuff, the origional goes;-

nanos gigantum humeris insidentes

If you don't speek latin that roughly translates to "Dwarf standing on the shoulders of giants" and how it applies here is that I am only building on things that others have built.  (one of whom has a comment 5 posts above this one Tongue )

Neil

Ok I'll elaborate then. Thanks for putting all this Open Source stuff together into an easy distro that runs very well on a $35 computer.  Grin
legendary
Activity: 896
Merit: 1000
Thank you! Great work on this. Cool

There is a old saying that I always think of when I get prase that is often used in Open Sources stuff, the origional goes;-

nanos gigantum humeris insidentes

If you don't speek latin that roughly translates to "Dwarf standing on the shoulders of giants" and how it applies here is that I am only building on things that others have built.  (one of whom has a comment 5 posts above this one Tongue )

Neil
hero member
Activity: 626
Merit: 500
Mining since May 2011.
Thank you! Great work on this. Cool
Jump to: