Author

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

hero member
Activity: 871
Merit: 1000
If you 'locate cgminer.service' as root you will find the file you want.  After editing reboot or reload cgminer and it will keep your settings.

One of these days I will get cgminer to make me a Big Jason file with all the options in it and I will make them avalible through the webui.

Neil

I found the file under '/usr/lib/systemd/system/cgminer-service'.
But i can't save the file after changes. It's denied.

Sorry, I'am Linux noob.
legendary
Activity: 896
Merit: 1000
If you 'locate cgminer.service' as root you will find the file you want.  After editing reboot or reload cgminer and it will keep your settings.

One of these days I will get cgminer to make me a Big Jason file with all the options in it and I will make them avalible through the webui.

Neil
hero member
Activity: 784
Merit: 500
Hi

I have connected my Avalon with Raspberry Pi and Minepeon.
Everything is going great.
Can I put cgminer options somewhere? e.g. - avalon-options 115200:32:10:36:350 - avalon fan 60-100

Thanks


i guess you can edit the config file via shell?

I would like to know the path to that file too
hero member
Activity: 871
Merit: 1000
Hi

I have connected my Avalon with Raspberry Pi and Minepeon.
Everything is going great.
Can I put cgminer options somewhere? e.g. - avalon-options 115200:32:10:36:350 - avalon fan 60-100

Thanks





legendary
Activity: 896
Merit: 1000
someone got an easy fix?

I DO!!!  Next version (very soon now) checks every 5 minutes and if the year is before 2013 it runs a "/usr/bin/ntpd -s" all by itself.

It is a bit of a brute fix but it seems that there are just too many reasons that it might not get time off the network at boot.  This fix will take care of all of them.

Neil
member
Activity: 73
Merit: 10
I just got minepeon running last night and after the hint about adding the wlan0 interface to wicd I have managed to get it running with wireless and it ran overnight great. Thanks heaps

the only issue I can see is why do I need to set the time on every boot? is there a way of getting the system to do the "sudo /usr/bin/ntpd -s" command automaticly once the system is booted and maybe say once every couple of hours to ensure the time stays syncd?

Also the time/date on the console doesn't seem to use the timezone information but the website does, even if I had to set the timezone twice the first time toget it to stick. is this correct?

Im very new to Linux so these are probably very easy things to fix but I have no idea.
someone got an easy fix?
legendary
Activity: 896
Merit: 1000
Code:
Error in'opt/minepeon/bin/cgminer': double free or corruption (!prev): 0x01ee5fd0

I don't think it is the SD card because it happened on 2 different ones. The SD card I have in there right now with that error is a brand new 16gb class 10 one.

That's a new one, from memory it happens when you either free up memory in c twice on the same object (unlikely cgmniner is well tested in that regard) or there is a problem with your Pi's memory.

ps: when this happens, is that watchdog or something that restarts cgminer? because however it restarts is saving me big time.

Its 'something', the hardware watchdog will try to fix a hung Pi.  The 'something' that saved you there was systemd (the init present in Arch Linux).

systemd was one of the main reasons that I went with Arch Linux (apart from usb reasons), it replaces the old SystemV init system used in most Linux distro's and is infanatly smarter.  One of its many cool tricks is that it can detect dead processes and restart them.

Neil
hero member
Activity: 576
Merit: 500
Just got 2 single scs and for some reason cgminer restarts once every 30 or so minutes. Not sure why. I am on vacation right now so I don't have physical access to it and had roommate hook it up for me, but from randomly checking in I get screen terminated and a different time cgminer started. Not sure what's going on, but it's happening with 2 single sc and 2 bfl fpgas hooked up to it. My ssh never drops connection, only cgminer restarts.

Edit: I just realized there is a new version. I am on 0.2.1 so I will upgrade to 0.2.2 next week when I get back home

Just got back from vacation and did a little more digging. I haven't upgraded to 0.2.2 yet, but cgminer hasn't restarted now for 15 hours. I am starting to think it was something to do with my BFL Single SC overheating and throttling over and over with the redic heat we had, but I am still not 100% sure. It isn't throttling today and cgminer isn't restarting. I think it restart sometime around midnight, but it isn't doing it every 30 or 40 minutes like it was while I was on vacation and my units were overheating. Any ideas if this was something with cgminer where it's supposed to do that?

After 9 days of cgminer running fine with minepeon 0.2.2, last night it happened again 2 times. For some reason cgminer just randomly restarts. I caught the error this time in a pic before cgminer restart (sorry for bad quality, hands were shaky this morning):



Code:
Error in'opt/minepeon/bin/cgminer': double free or corruption (!prev): 0x01ee5fd0

I don't think it is the SD card because it happened on 2 different ones. The SD card I have in there right now with that error is a brand new 16gb class 10 one.

ps: when this happens, is that watchdog or something that restarts cgminer? because however it restarts is saving me big time.
legendary
Activity: 1212
Merit: 1052
Thanks Kano.
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
Thanks to netfun2000 and Beastlymac, I changed them by ssh, but what I mean is to have an easier way to retrieve all the files, translate or change them, be able to distribute them, and upload again to the Raspi.

SSH Secure File Transfer Client

or type sftp computer
or man sftp

Also from windows - winscp - http://winscp.net/eng/index.php
member
Activity: 66
Merit: 10
Thanks to netfun2000 and Beastlymac, I changed them by ssh, but what I mean is to have an easier way to retrieve all the files, translate or change them, be able to distribute them, and upload again to the Raspi.

SSH Secure File Transfer Client
legendary
Activity: 1212
Merit: 1052
Thanks to netfun2000 and Beastlymac, I changed them by ssh, but what I mean is to have an easier way to retrieve all the files, translate or change them, be able to distribute them, and upload again to the Raspi.
member
Activity: 66
Merit: 10
Neil, first of all, thanks for your great work.

Is there a way to extract the files, as for example via ftp (I mean the phps of the web site) to translate it and customize them?
Would be a good thing for future versions to have this possibility, including a ftp daemon or another solution.

Thanks.

SSH
hero member
Activity: 630
Merit: 501
Miner Setup And Reviews. WASP Rep.
Neil, first of all, thanks for your great work.

Is there a way to extract the files, as for example via ftp (I mean the phps of the web site) to translate it and customize them?
Would be a good thing for future versions to have this possibility, including a ftp daemon or another solution.

Thanks.
https://github.com/MineForeman/MinePeonWebUI/
https://github.com/MineForeman/MinePeon
legendary
Activity: 1212
Merit: 1052
Neil, first of all, thanks for your great work.

Is there a way to extract the files, as for example via ftp (I mean the phps of the web site) to translate it and customize them?
Would be a good thing for future versions to have this possibility, including a ftp daemon or another solution.

Thanks.
legendary
Activity: 896
Merit: 1000
do it again (git pull)

it's fixed now

Git may be a bit broken to pull from at the moment for an existing install, I am pushing up the new monitor code bit by bit as I test and verify it and there are some radical changes (all of the config data is being moved to a JSON file for example).

Some cool things that are coming in the next release;-

  • Email Alerts when you drop a device.
  • Email Alerts when hashrate goes below an expected value.
  • Email Alerts when your pool changes unexpectedly (pool failover etc).

I am hoping to get a more stable miner reload/restart going as well in the event of a problem, but that is proving problematic (the Block Eruptors driver in particular seems to like to hang somehow).  I am honestly starting to consider a full 15 second OS reboot to get around that 1 time in 1000 that libusb just does dumb crap.

Neil
sr. member
Activity: 294
Merit: 250
...
Thanks for trying the code, looking forward to any feedback you have. Smiley
Sorry, didn't work for me at all - I tried on my desktop (fedora18), just got red letters on the screen in somewhat of a mess saying
"i n e r  E r r o r : C h e c k"


Code:
# python cgminerLCDStats.py
Welcome to cgminerLCDStats
Copyright 2013 Cardinal Communications
[Errno 110] Operation timed out
None
[Errno 110] Operation timed out
None
.
.
No idea why the timeout - I tried both 127.0.0.1 and localhost - which both are valid
Probably some python thing?
However, cgminer api-example.py works fine for me

After that I also had to power cycle it to get clock.py to not look like the above scattered text output

I also had a quick look at the code - you are using the wrong fields.
Use "Difficulty Accepted" and "Difficulty Rejected" etc ...
Read here and the quoted messages and git links:
https://bitcointalksearch.org/topic/m.2738336

Thanks for the feedback. Bummer that it didn't work on your desktop. I actually only ever tried on on a Pi. Maybe I'll try and get it working on my OS X box tomorrow just out of curiosity. I'll also try a different linux distribution on the Pi as well.

Very strange that the connection was timing out. I'll have to think about that and play with it on another machine. No idea there yet. That's what I get for doing a script in a language I barely know, and don't really like.   Wink  But it wouldn't be fun if it was easy...

I'll post back with success or failure on another machine.

As for the wrong fields, thanks for that. I'd run into that exact post earlier today, and realized I'd likely used the wrong fields. I'll get that fixed for sure.

Thanks a bunch for trying it out, and giving feedback!
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
...
Thanks for trying the code, looking forward to any feedback you have. Smiley
Sorry, didn't work for me at all - I tried on my desktop (fedora18), just got red letters on the screen in somewhat of a mess saying
"i n e r  E r r o r : C h e c k"


Code:
# python cgminerLCDStats.py
Welcome to cgminerLCDStats
Copyright 2013 Cardinal Communications
[Errno 110] Operation timed out
None
[Errno 110] Operation timed out
None
.
.
No idea why the timeout - I tried both 127.0.0.1 and localhost - which both are valid
Probably some python thing?
However, cgminer api-example.py works fine for me

After that I also had to power cycle it to get clock.py to not look like the above scattered text output

I also had a quick look at the code - you are using the wrong fields.
Use "Difficulty Accepted" and "Difficulty Rejected" etc ...
Read here and the quoted messages and git links:
https://bitcointalksearch.org/topic/m.2738336
newbie
Activity: 25
Merit: 0
do it again (git pull)

it's fixed now
member
Activity: 66
Merit: 10
Hi,

i did a

Code:
cd /opt/minepeon && git pull && cd http && git pull

today and now a click on the settings page throws an server error 500 at me.

Also i want to tell that it would be nice if there would be a disable button on the pool page, to disable single pools.

thanks

fr00p

same things happened to me.
Jump to: