Author

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

sr. member
Activity: 359
Merit: 250
Ok so i've got my PI and set it up no problems,, she's not mining yet cus I bought a usb3 hub and it doesn`t work with PI lol.

I was looking at adding a screen

I'm waiting for my Pi, but I was looking at getting this screen for around $30 :

http://coldtearselectronics.wikispaces.com/USB+LCD+-+LCD+System+info

Then writing a python script that pulls the hash rate, accepts, rejects, etc from the cgminer api, then write it to the screen, kind of like this setup :

http://www.gregledet.net/?p=668
... ah ... every time I've seen someone say they want to add a direct hardware device for the screen I've thought USB ... there's got to be a simple USB solution.

OK, this I have to get Smiley

... OK ebay ... paid and awaiting delivery!

I did write the whole cgminer API so ...
Expect either a script or a cgminer change soon after it arrives on my doorstep Cheesy

Edit: actually ... since it will work on ANY computer ... and I also did write the usbutils library in cgminer ... hmmmm ... I think this would be nice to have it hot-pluggable ... as a cgminer display Cheesy

Edit2: I wonder if there is a common interface how these things work (i.e. others that may exist)

Kano,

Did you get your LCD display yet? I just got mine yesterday, and already hacked up a quick script to display data from the cgminer API.

I was wondering if you completed your script yet, or have added support in cgminer? I'm sure it has more functionality than my simple attempt. lol

BTW, I got the LCD with the v1.3 firmware.  Unfortunately that version does not seem to allow absolute positioning on the display. I guess the v1.4 firmware model is the one to get, if it can be found.

As far as there being a standard interface for these type devices, I haven't seen one. It would be nice...

Got too my ones - had no time to test with it till now. If anybody has a solution it would be awesome :-)
hero member
Activity: 700
Merit: 504
Run a Bitcoin node.
Hi Neil,

Firstly, thanks very much for the excellent MinePeon.  I have been mining using MinePeon since 2013-06-22 with ASICMINER Block Erupter USBs (first 1, then 2, now 9).

I recently upgraded to 0.2.2, and been running for a few days.  For the first time ever I had my miner go down overnight.  Previously it has been very stable, using 0.2.1 (and a couple of earlier versions) - I don't know if the version change is a factor or not.  I'm not sure what happened, but I lost over 5 hours of mining time last night.

I'm on Slush's pool:
Bitcoin block history
All times are in UTC.
#   Block found at   Duration   Total shares   Your shares   Your BTC reward   Block #   Block value   Validity
19249   2013-07-23 01:01:48   0:28:16   9155717   1172   0.00335869   248010   25.16305000    73 confirmations left
19248   2013-07-23 00:33:32   0:11:46   3758514   468   0.00286917   248007   25.00730000    70 confirmations left
19247   2013-07-23 00:21:46   0:26:08   8454348   1118   0.00313178   248003   25.26793713    66 confirmations left
19246   2013-07-22 23:55:38   0:54:42   17599345   2178   0.00291466   248000   25.19543899    63 confirmations left
19245   2013-07-22 23:00:56   0:47:03   15212170   1952   0.00318611   247994   25.27182977    57 confirmations left
19244   2013-07-22 22:13:53   0:46:30   15051706   1982   0.00341309   247990   25.32293647    53 confirmations left
19243   2013-07-22 21:27:23   2:32:24   49847203   4004   0.00198085   247986   25.16356901    49 confirmations left
19242   2013-07-22 18:54:59   0:08:35   2816986   none   none   247975   25.24792746    38 confirmations left
19241   2013-07-22 18:46:24   0:07:58   2610759   none   none   247973   25.14140962    36 confirmations left
19240   2013-07-22 18:38:26   1:25:40   27796387   none   none   247971   25.32890000    34 confirmations left
19239   2013-07-22 17:12:46   1:00:45   19546816   none   none   247964   25.23787218    27 confirmations left
19238   2013-07-22 16:12:01   0:13:13   4189488   none   none   247956   25.07400000    19 confirmations left
19237   2013-07-22 15:58:48   0:27:23   8737123   none   none   247952   25.32545000    15 confirmations left
19236   2013-07-22 15:31:25   0:12:53   4090095   none   none   247946   25.15490003    9 confirmations left
19235   2013-07-22 15:18:32   0:46:05   14708189   none   none   247942   25.35478611    5 confirmations left
19234   2013-07-22 14:32:27   0:35:39   11363125   none   none   247936   25.28740000    confirmed
19233   2013-07-22 13:56:48   1:48:30   34567509   none   none   247933   25.02450000    confirmed
19232   2013-07-22 12:08:18   0:24:58   7692948   726   0.00027871   247922   25.35264070    confirmed
19231   2013-07-22 11:43:20   0:35:27   11167611   1492   0.00361241   247920   25.46990972    confirmed

From above you can see that the miner is down from around 1400 UTC to when I discovered it at around 1930 UTC.  I live in New Zealand (fellow Kiwi!), so it was down from about 2am to 7:30am this morning.

I was in a rush to go to work, so all I had time for was to stop and start the cgminer service from the command line, and that did the trick.  I did notice that the MinePeon web page didn't work - I think that service went down too.  I'm at work now, I'll reboot the whole system when I get home so I get my graphs again.

I have the donate minutes turned on (incidentally, is that why cgminer restarts every day?  The cgminer uptime never seems to be longer than 23 hours or so).  I'm not sure whether this is a factor or not in the outage.  Does cgminer leave a log file somewhere that might show an error message?

Love your work!

Kind regards,
Zelek
newbie
Activity: 23
Merit: 0
Found this for Wireless setup would be handy on the Wiki  https://forums.butterflylabs.com/showwiki.php?title=Tutorials:Raspberry+Pi+-+Mining+with+MinePeon&viewfull=1&page=4&do=comments#post38317
 

Login: minepeon

Password: peon

You can verify your wireless card is detected:

* sudo lsusb



* sudo wicd-curses

Password: peon

Shift+P to go to Prefs

Wireless interface, write "wlan0" (Without quotation marks)

Press F10

Shift+R to refresh and see your wifi

Move the cursor to your wifi

Shift+right arrow to go to config

Activate Automatically connect to this network

Key: (write the wifi password)

Press F10

Shift+C to connect and if you obtain an IP everything is working fine.

Shift+Q to quit

Restart
sr. member
Activity: 294
Merit: 250
Ok so i've got my PI and set it up no problems,, she's not mining yet cus I bought a usb3 hub and it doesn`t work with PI lol.

I was looking at adding a screen

I'm waiting for my Pi, but I was looking at getting this screen for around $30 :

http://coldtearselectronics.wikispaces.com/USB+LCD+-+LCD+System+info

Then writing a python script that pulls the hash rate, accepts, rejects, etc from the cgminer api, then write it to the screen, kind of like this setup :

http://www.gregledet.net/?p=668
... ah ... every time I've seen someone say they want to add a direct hardware device for the screen I've thought USB ... there's got to be a simple USB solution.

OK, this I have to get Smiley

... OK ebay ... paid and awaiting delivery!

I did write the whole cgminer API so ...
Expect either a script or a cgminer change soon after it arrives on my doorstep Cheesy

Edit: actually ... since it will work on ANY computer ... and I also did write the usbutils library in cgminer ... hmmmm ... I think this would be nice to have it hot-pluggable ... as a cgminer display Cheesy

Edit2: I wonder if there is a common interface how these things work (i.e. others that may exist)

Kano,

Did you get your LCD display yet? I just got mine yesterday, and already hacked up a quick script to display data from the cgminer API.

I was wondering if you completed your script yet, or have added support in cgminer? I'm sure it has more functionality than my simple attempt. lol

BTW, I got the LCD with the v1.3 firmware.  Unfortunately that version does not seem to allow absolute positioning on the display. I guess the v1.4 firmware model is the one to get, if it can be found.

As far as there being a standard interface for these type devices, I haven't seen one. It would be nice...
legendary
Activity: 896
Merit: 1000
sudo date --set="22 JUL 2013 16:15:00"

Good sujestgion, could you also try;-

sudo /usr/bin/ntpd -s

and see if it works for you?

Neil
sr. member
Activity: 257
Merit: 250
sudo date --set="22 JUL 2013 16:15:00"

legendary
Activity: 896
Merit: 1000
and so on would be useful in a comprehensive list.

Agreed.  My issue with putting together a comprehensive list though is I know all of the commands and just instinctively put them in as I need them so I tend to overlook the really simple ones that newbies need.

Bring up your miner (use ctrl-ad to hide again):
* sudo screen -r

Show the status of your miner:
* sudo systemctl status cgminer.service

Stop your miner:
* sudo systemctl stop cgminer.service

Start your miner:
* sudo systemctl start cgmine.service

Restart your miner (after you have made a configuration change):
* sudo systemctl stop cgminer.service

Find the IP address assigned you by DHCP:
* sudo ifconfig

Get a root console:
* sudo -i

Halt MinePeon:
* sudo halt

Reboot MinePeon:
* sudo reboot

Wifi configuration:
* sudo wicd-curses

..... that is all I can think of at present, feel free to add/request more and I will update the wiki.

Neil
hero member
Activity: 574
Merit: 500
Medical Translations for Bitcoins
unfortunately not that many Wink
I use screen all the time, but a list with some more shell commands with explanations for total newbies would be nice - like "sudo shutdown -h now", "sudo reboot", how to navigate in Screen (ctrl+a+...) and so on. If there really would be someone completely new to this, he or she would not even know how to power down the RPi (yeah you could simply unplug the power..), but a sudo shutdown would be better i guess, also a "sudo wicd-curses" (for WIFI config) and so on would be useful in a comprehensive list.
hero member
Activity: 626
Merit: 500
Mining since May 2011.
sudo systemctl stop cgminer.service (Stops cgminer)
sudo systemctl disable cgminer.service (Stops cgminer from starting at boot)
systemctl enable bfgminer.service (Makes bfgminer start at boot)
systemctl start bfgminer.service (Starts bfgminer)

Thanks! And I guess to reverse my tinkering I just put in the opposite commands, right?

Yes, and there are other useful commands and info on the wiki:
http://minepeon.com/index.php/Main_Page#Other_useful_commands
hero member
Activity: 574
Merit: 500
Medical Translations for Bitcoins
sudo systemctl stop cgminer.service (Stops cgminer)
sudo systemctl disable cgminer.service (Stops cgminer from starting at boot)
systemctl enable bfgminer.service (Makes bfgminer start at boot)
systemctl start bfgminer.service (Starts bfgminer)

Thanks! And I guess to reverse my tinkering I just put in the opposite commands, right?
member
Activity: 66
Merit: 10
Hey Neil, out of curiosity, how do I switch from cgminer to bfgminer (for testing/forever)?

And btw, thanks for the work!

sudo systemctl stop cgminer.service (Stops cgminer)
sudo systemctl disable cgminer.service (Stops cgminer from starting at boot)
systemctl enable bfgminer.service (Makes bfgminer start at boot)
systemctl start bfgminer.service (Starts bfgminer)
hero member
Activity: 574
Merit: 500
Medical Translations for Bitcoins
Hey Neil, out of curiosity, how do I switch from cgminer to bfgminer (for testing/forever)?

I'm running the out of the box 0.2.2 version of MinePeon and can access the Pi vie SSH from my Mac (I am not really familiar with unix and command lines, though..)

I would never change a running system (*cough* *cough*), but I'd still like to know where in the GUI or how in the shell I could do that.

I am also wondering why the miner.php page is only accessible via "direct input" in the browser address and not like "Status", "Pools" and so on via the GUI Smiley


And btw, thanks for the work!
newbie
Activity: 25
Merit: 0
@ Neil , How did you go with the earthquake ?.

Eh, barley even noticed it.

Hi,

in the latest release (0.2.2) all is fine when not upgrading with 'pacman -Syu', all runs smooth.

if i upgrade with pacman minepeon runs for ~10 minutes and then it doesn't respond anymore.

i use 10 block erupters with my Raspberry Pi Mod. B Rev 2.0 512 MB RAM

all is fine if you don't upgrade Smiley


Do you reboot after the upgrade?  I just want to be sure that everything was sync'ed to the disk.

Neil

yep, upgraded, rebooted.

Just to be sure, your doing the git pull as well as the pacman?

The live update is very much in its infancy but this is all good testing stuff that I need to know.

Neil

no, i didn't do the git pull on the upgraded one. i did it on the not upgraded one, no flaws.
legendary
Activity: 896
Merit: 1000
@ Neil , How did you go with the earthquake ?.

Eh, barley even noticed it.

Hi,

in the latest release (0.2.2) all is fine when not upgrading with 'pacman -Syu', all runs smooth.

if i upgrade with pacman minepeon runs for ~10 minutes and then it doesn't respond anymore.

i use 10 block erupters with my Raspberry Pi Mod. B Rev 2.0 512 MB RAM

all is fine if you don't upgrade Smiley


Do you reboot after the upgrade?  I just want to be sure that everything was sync'ed to the disk.

Neil

yep, upgraded, rebooted.

Just to be sure, your doing the git pull as well as the pacman?

The live update is very much in its infancy but this is all good testing stuff that I need to know.

Neil
newbie
Activity: 25
Merit: 0
Hi,

in the latest release (0.2.2) all is fine when not upgrading with 'pacman -Syu', all runs smooth.

if i upgrade with pacman minepeon runs for ~10 minutes and then it doesn't respond anymore.

i use 10 block erupters with my Raspberry Pi Mod. B Rev 2.0 512 MB RAM

all is fine if you don't upgrade Smiley


Do you reboot after the upgrade?  I just want to be sure that everything was sync'ed to the disk.

Neil

yep, upgraded, rebooted.
sr. member
Activity: 257
Merit: 250
@ Neil , How did you go with the earthquake ?.
legendary
Activity: 896
Merit: 1000
Add pools api for MinePeon ?

Add some pools information for MinePeon:
works name,pools speed,hash rate,valid shares,difficulty ...


Ahhh, this make me think your running an older version!

All of this is available in the later versions, and unfortunately the only way to get them is to re-flash with one of the latest (pacman -Suy only does Arch, not the minepeon subsystems).

It also possibly explains why your miner dies, there are quite a few library updates (libusb in particular) and a binary compiled against older versions could become unstable.

Neil
member
Activity: 66
Merit: 10
Add pools api for MinePeon ?

Add some pools information for MinePeon:
works name,pools speed,hash rate,valid shares,difficulty ...
member
Activity: 66
Merit: 10
Hi,

in the latest release (0.2.2) all is fine when not upgrading with 'pacman -Syu', all runs smooth.

if i upgrade with pacman minepeon runs for ~10 minutes and then it doesn't respond anymore.

i use 10 block erupters with my Raspberry Pi Mod. B Rev 2.0 512 MB RAM

all is fine if you don't upgrade Smiley


Same to me.
i upgrade with 'pacman -Syu',the Minepeon(cgminer) works about 30 mins then not ming.
reboot after the upgrade.
sr. member
Activity: 1316
Merit: 254
Sugars.zone | DatingFi - Earn for Posting
i find that very annoying that minepeon reverts to the donate pools after a reboot. i just accidentally mined for two straight days in someones else pocket.

 Are you using sudo shutdown -h now command. It should not do that after rebooting ?.

 Reboot or reflash ?.
I wondered about this, as I have been just pulling the plug which is probably responsible for the death of 2 of my SD cards (they were cheap).

 shut down/restart in the webui would be a good feature at some point, I know you have a long to do list and its me just being lazy really. Grin
Jump to: