Bitcoin Forum
October 19, 2017, 10:20:12 PM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Solo-Mining on a Raspberry Pi  (Read 4426 times)
styx1776
Newbie
*
Offline Offline

Activity: 15


View Profile
November 01, 2013, 04:41:12 AM
 #1

I've seen some pretty great tutorials on using a Raspberry Pi to run your miners as part of a pool.  Is there a way to set up a Raspberry Pi to run a solo mining rig?  I have a small ASIC miner rig going running CGMiner as part of a pool.  It's a hobby, not an investment, with the difficulty where it is and where it's headed.  Rather than be a part of a mining pool, I feel it'd be more fun to periodically check in and see if I won the lottery and get to take home a full block reward!  Besides, as a hobby I'm not doing the network any security favors by centralizing power with the major pools.  Any thoughts?

1Mahon87Npvxr958WE6h8a4XtXmbE5K1Wa
1508451612
Hero Member
*
Offline Offline

Posts: 1508451612

View Profile Personal Message (Offline)

Ignore
1508451612
Reply with quote  #2

1508451612
Report to moderator
1508451612
Hero Member
*
Offline Offline

Posts: 1508451612

View Profile Personal Message (Offline)

Ignore
1508451612
Reply with quote  #2

1508451612
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508451612
Hero Member
*
Offline Offline

Posts: 1508451612

View Profile Personal Message (Offline)

Ignore
1508451612
Reply with quote  #2

1508451612
Report to moderator
1508451612
Hero Member
*
Offline Offline

Posts: 1508451612

View Profile Personal Message (Offline)

Ignore
1508451612
Reply with quote  #2

1508451612
Report to moderator
1508451612
Hero Member
*
Offline Offline

Posts: 1508451612

View Profile Personal Message (Offline)

Ignore
1508451612
Reply with quote  #2

1508451612
Report to moderator
BitQik
Newbie
*
Offline Offline

Activity: 7


View Profile
November 01, 2013, 11:11:50 PM
 #2

What type of miners? Are they block erupters? I plan on doing a similar setup to experiment with mining with solar power in the not too distant future!
balanghai
Sr. Member
****
Offline Offline

Activity: 308


View Profile
November 01, 2013, 11:14:55 PM
 #3

You can do a solo mine but making your own pool is a lot better. Then invite your friends to mine with you. You get a bigger chance of finding a block. Also you could charge them a 1% pool fee. That's a good increase.

Micin
styx1776
Newbie
*
Offline Offline

Activity: 15


View Profile
November 01, 2013, 11:19:12 PM
 #4

I'm using block erupters.  Really my goal is to have a self contained unit supporting the bitcoin network.  I'm thinking the best way to do that would be for me to run bitcoin-QT or some other client directly on the raspberry pi.  I've mentally shelved the idea for now after realizing I'd need to upgrade my SD card (current 4gb card can't hold the blockchain).  I still think it'd be great if somebody could come out with a self contained bitcoin support box (mining and node functionality in one low power unit).

1Mahon87Npvxr958WE6h8a4XtXmbE5K1Wa
Unluckyduck
Sr. Member
****
Offline Offline

Activity: 359



View Profile
November 02, 2013, 12:02:54 AM
 #5

Good luck hitting the jackpot on that
BitQik
Newbie
*
Offline Offline

Activity: 7


View Profile
November 02, 2013, 12:22:23 AM
 #6

I'm using block erupters.  Really my goal is to have a self contained unit supporting the bitcoin network.  I'm thinking the best way to do that would be for me to run bitcoin-QT or some other client directly on the raspberry pi.  I've mentally shelved the idea for now after realizing I'd need to upgrade my SD card (current 4gb card can't hold the blockchain).  I still think it'd be great if somebody could come out with a self contained bitcoin support box (mining and node functionality in one low power unit).

Oh cool. Yeah, I think that your chances of success solo mining would be slim but I guess everything on the network has a *chance*. I'm interested in designing that type of hardware, a self contained mining unit with raspberry Pi, which can also run on solar power with a battery backup to mine at night. I'm a total noob when it comes to electrical stuff, so it's going to be a nice DIY learning project. I plan to start a thread to document the project when it starts.  Smiley
shylok
Newbie
*
Offline Offline

Activity: 23


View Profile
November 02, 2013, 01:56:49 AM
 #7

do keep us update with progress though , sounds very interesting
styx1776
Newbie
*
Offline Offline

Activity: 15


View Profile
November 02, 2013, 02:30:59 AM
 #8

I've seen some chatter online relevant to what I'm proposing.  The difference is I wouldn't be interested in using bitcoin qt or bitcoind for it's intended wallet purposes.  I just want to function as a 24/7 node for the network.  I'd continue using my real computer for wallet purposes.

As far as downloading the blockchain for bitcoind/bitcoin qt, it looks like that would wear out the SD card on the pi and isn't really viable solution.  Others had proposed using electrum as a lightweight wallet, but I don't really know much about that.  If you're running electrum are you functioning as a relay point for the bitcoin network?

I haven't closed the door just yet on using my pi to operate as a node, but it sounds like the only way I'll be able to set up "solo" mining on it would be to run my own pool.  One man wolf pack! http://www.youtube.com/watch?v=TmWLISun9BY

1Mahon87Npvxr958WE6h8a4XtXmbE5K1Wa
Brandon Stuvick
Newbie
*
Offline Offline

Activity: 4


View Profile
November 02, 2013, 03:46:29 AM
 #9

I run a Raspberry Pi as a 24/7 Bitcoin node.

I don't know that Bitcoin itself can wear down an SD card (I'm offering no proof here, just my speculation), but the high memory requirements of bicoind might create swapping that will wear it down.

By default, Raspian has a swap file enabled. I disabled it by simply removing the execute privileges of the startup script, /etc/init.d/dphys-swapfile.
Code:
sudo chmod -x /etc/init.d/dphys-swapfile

I solved the problem of swap by buying a sata to usb cable (http://www.amazon.com/C2G-Cables-30504-Serial-Adapter/dp/B000UO6C5S/ref=sr_1_2?ie=UTF8&qid=1383363496&sr=8-2&keywords=sata+adapter) and simply hooking up an old 160GB internal laptop HDD. I formatted the HDD as ext4 with a swap partition, added both to /etc/fstab, and got it up and running smoothly.

The cord I linked to also provides external power, so don't worry about the Pi not being able to supply enough.


edit: It might also help to use the least amount of video memory possible if you plan on running the node without GUI. You can do this by running
Code:
sudo raspi-config
and choosing the memory split option to change the video memory to the lowest possible.

My PGP key: gpg --keyserver hkp://keys.gnupg.net --recv-keys 29FE7755
styx1776
Newbie
*
Offline Offline

Activity: 15


View Profile
November 02, 2013, 04:06:42 AM
 #10

Thanks Brandon!  Sounds like this is more of a project than I had anticipated or hoped.  I have an old internal laptop hard drive. The cable would put me another 20 deep, but it sounds like this isn't exactly an energy sipping operation at this point.  I haven't really looked into how much memory cgminer uses on the Pi, but I could also have a conflict trying to function as both a node and a miner.  Do you have any pictures of your setup anywhere?

1Mahon87Npvxr958WE6h8a4XtXmbE5K1Wa
Brandon Stuvick
Newbie
*
Offline Offline

Activity: 4


View Profile
November 02, 2013, 04:34:10 AM
 #11

Unfortunately I have no pictures.

Even worse, I only have a dumb phone with a really bad camera.

And oh, if you do not want to buy the 20 dollar cord, I have been able to get my node to run entirely in RAM (I still run swap, just in case) by limiting my connection count to 64 (brings it to about 408/485mb). Just remember though that if bicoind (or electrum) exhausts the RAM (with no swap) it will have no option but to terminate. This will happen quietly, so it may be hours (or if you're neglectful, days) before you noticed it happened.

My PGP key: gpg --keyserver hkp://keys.gnupg.net --recv-keys 29FE7755
samnup
Newbie
*
Offline Offline

Activity: 4


View Profile
November 04, 2013, 04:22:09 AM
 #12

how btc are you able to mine with this?
quantumDavey
Newbie
*
Offline Offline

Activity: 16


View Profile
August 05, 2014, 04:30:48 PM
 #13

You can do a solo mine but making your own pool is a lot better. Then invite your friends to mine with you. You get a bigger chance of finding a block. Also you could charge them a 1% pool fee. That's a good increase.

Okay, so HOW would you 'make your own mining pool' on a raspberry pi ??
cp1
Hero Member
*****
Offline Offline

Activity: 616


Stop using branwallets


View Profile
August 05, 2014, 08:07:30 PM
 #14

If you don't find any blocks then you're not really "securing the network", you're just running a regular node.

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
Peter882
Hero Member
*****
Offline Offline

Activity: 545



View Profile
August 07, 2014, 11:57:38 AM
 #15

I've seen some pretty great tutorials on using a Raspberry Pi to run your miners as part of a pool.  Is there a way to set up a Raspberry Pi to run a solo mining rig?  I have a small ASIC miner rig going running CGMiner as part of a pool.  It's a hobby, not an investment, with the difficulty where it is and where it's headed.  Rather than be a part of a mining pool, I feel it'd be more fun to periodically check in and see if I won the lottery and get to take home a full block reward!  Besides, as a hobby I'm not doing the network any security favors by centralizing power with the major pools.  Any thoughts?

For solo mining, the easiest way is to use a solo mining pool like SoloPool (https://bitcointalk.org/index.php?topic=262712.0) and bitsolo.
You won't need to do any special setup, as it is the same as mining on any other pools.

EDIT: Didn't notice the date. Sad

Pages: [1]
  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!