Bitcoin Forum
December 14, 2024, 05:38:50 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 »  All
  Print  
Author Topic: [Guide] Noob guide to solo mining USB Erupters with cgminer  (Read 34442 times)
Zeek_W (OP)
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250



View Profile
October 21, 2013, 10:12:45 AM
Last edit: October 25, 2013, 02:06:49 AM by Zeek_W
 #1

To start:

Yes, I know the odds of finding a block solo with 5 USB Erupters is definately not in my favour.

No, I will not buy a lottery ticket instead.

This is for fun, not a quick profit.


Well, now that is out of the way I decided to go ahead and get some of my USB Erupters solo mining and after reading a heap of threads asking how to do it, and most going no where I thought I would write up a basic 'guide'

What you need for my guide:

  • cgminer http://ck.kolivas.org/apps/cgminer/ I am using version 3.6.4
  • I am using Windows 7 on this machine
  • Bitcoin-QT with the blockchain up to date - I would recommend just letting Bitcoin-QT catchup instead of the torrent available
  • Zadig Utility for Windows http://ck.kolivas.org/apps/cgminer/zadig/
  • Powered USB Hubs, or onboard USB ports that can pump out 500mA at 5VDC per port (2.5W) - leave at least 500mA of headroom with hub PSUs

Step 1 - Getting things ready

Make sure Bitcoin-QT is caught up to the network - you will have a green tick on the bottom right of the GUI when it is.

Download and run the Zadig Utility. Select your Erupters and install the 'WinUSB' driver. The Erupters should show up as CP2102 USB to UART Bridge Controller, if you don't see them click 'List All Devices' under the 'Options' menu).

Download and extract cgminer onto your computer.

Step 2 - Setting Bitcoin-QT as a server

Create a new txt document and enter the following into it:
Code:
daemon=1
server=1
gen=0
rpcuser=USERNAME
rpcpassword=PASSWORD
rpcallowip=127.0.0.1
rpcport=8332
Change the text USERNAME to your desired miner username and PASSWORD to your desired miner password.

'File' > 'Save As...' this file as 'Bitcoin.conf' with the file type 'All Files *.*' to the folder where Bitcoin-QT.exe executable file is:

Code:
c:\users\user\Appdata\Roaming\Bitcoin

Next make sure Bitcoin-QT is NOT running.

Now browse in explorer to where Bitcoin-QT.exe is and hold the shift button on your keyboard and right click on an empty part of the window. Select 'Open Command Window here' from the drop down.

This will open a CMD window already pointing to the Bitcoin folder.

Type
Code:
bitcoin-qt.exe -server

This turns your Bitcoin-QT into a mining server.

Step 3 - cgminer setup

Browse to where you extracted cgminer previously and hold the shift button on your keyboard and right click on an empty part of the window. Select 'Open Command Window here' from the drop down.

Now type in the following:
Code:
cgminer.exe -o 127.0.0.1:8332 -u USERNAME -p PASSWORD -G

And there you go! Now sit back, relax, go get a drink, go to college, get a job, meet a special person, live your life to its fullest and occasionally check how cgminer is going Tongue





Gws24
Hero Member
*****
Offline Offline

Activity: 537
Merit: 524


View Profile
October 21, 2013, 09:11:48 PM
 #2

Step 2 - Setting Bitcoin-QT as a server

Create a new txt document and enter the following into it:
Code:
daemon=1
server=1
gen=0
rpcuser=USERNAME
rpcpassword=PASSWORD
rpcallowip=127.0.0.1
rpcport=8332
Change the text USERNAME to your desired miner username and PASSWORD to your desired miner password.

'File' > 'Save As...' this file as 'Bitcoin.conf' with the file type 'All Files *.*' to the folder where Bitcoin-QT.exe executable file is:

x86 Machines:
Code:
C:\Program Files\Bitcoin
x64 Machines:
Code:
C:\Program Files (x86)\Bitcoin

The bitcoin.conf file goes in c:\users\user\Appdata\Roaming\Bitcoin and not the locations you are giving. Furthermore gen=0 is not needed because that is the default for bitcoin-qt. I also don't use daemon=1 but i'm not sure what the difference is.

Quote
Next make sure Bitcoin-QT is NOT running.

Now browse in explorer to where Bitcoin-QT.exe is and hold the shift button on your keyboard and right click on an empty part of the window. Select 'Open Command Window here' from the drop down.

This will open a CMD window already pointing to the Bitcoin folder.

Type
Code:
bitcoin-qt.exe -server

This turns your Bitcoin-QT into a mining server.

Since you already have server=1 in the config.info you don't need to add the -server flag when starting bitcoin-qt.
os2sam
Legendary
*
Offline Offline

Activity: 3586
Merit: 1098


Think for yourself


View Profile
October 24, 2013, 11:01:04 AM
 #3

What's the Bitcoin-QT flag to sign a block?  Can't seem to find the reference now.
Thanks,
Sam

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Zeek_W (OP)
Sr. Member
****
Offline Offline

Activity: 336
Merit: 250



View Profile
October 25, 2013, 12:29:18 PM
 #4

Oops - knew I fucked something up haha

jamesc760
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250



View Profile
October 26, 2013, 04:29:38 PM
 #5

Does this work? Has anyone followd this guide successfully???
os2sam
Legendary
*
Offline Offline

Activity: 3586
Merit: 1098


Think for yourself


View Profile
October 26, 2013, 04:34:59 PM
 #6

Does this work? Has anyone followd this guide successfully???

I haven't followed this guide per se, but I have done the process and it does work.

What exactly are you looking for in way of an answer?

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
joae1975
Hero Member
*****
Offline Offline

Activity: 752
Merit: 500



View Profile
October 29, 2013, 06:05:48 AM
 #7

I can only get v3.1.1 to work.  And it doesn't show any accepted shares.  The USB's blink like it's working.   It says, "No suitable long-poll found for http://127.0.0.1:8332"  Is it working without showing work?

1PewuG8KZJUPK3CtvAkAs1Uw42rQgUv5Jk
os2sam
Legendary
*
Offline Offline

Activity: 3586
Merit: 1098


Think for yourself


View Profile
October 29, 2013, 11:17:49 AM
 #8

I can only get v3.1.1 to work.  And it doesn't show any accepted shares.  The USB's blink like it's working.   It says, "No suitable long-poll found for http://127.0.0.1:8332"  Is it working without showing work?

When solo mining the only accepted share you will see is a block finder.  So as long as your showing hash rate and the BE lights are blinking, your mining.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
rpg
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500



View Profile
November 01, 2013, 01:31:41 AM
 #9

nice description. By the way, if anyone wants to mine some ALT coin solo, this applies as well, just change any reference (including folders) from bitcoin to the name of the alt coin
just_me
Sr. Member
****
Offline Offline

Activity: 420
Merit: 250


Jesus Christ Saves Sinners


View Profile
November 02, 2013, 12:01:03 PM
 #10




How many bitcoins do you get, when you are mining with 5 usb eruptors?

Today is the day that the Lord has made, lets be glad and rejoice in it
elasticband
Legendary
*
Offline Offline

Activity: 1036
Merit: 1000


Nighty Night Don't Let The Trolls Bite Nom Nom Nom


View Profile
November 02, 2013, 12:03:56 PM
 #11

25 + transaction fee's IF he finds a block  Roll Eyes
-ck
Legendary
*
Offline Offline

Activity: 4312
Merit: 1649


Ruu \o/


View Profile WWW
November 02, 2013, 02:37:15 PM
 #12

Let me correct that for you







25 + transaction fee's IF he finds a block  Roll Eyes

And that's literally a big if.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Gws24
Hero Member
*****
Offline Offline

Activity: 537
Merit: 524


View Profile
November 02, 2013, 03:02:48 PM
 #13

lol, it sure is. At current diff he'll hit a block once every 200 years or something like it.
jeppe
Sr. Member
****
Offline Offline

Activity: 434
Merit: 251


View Profile
November 09, 2013, 04:52:07 PM
 #14

Have been looking for this so long thank you !!! have 2 of them left lying around and was thinking of doing this instead of playing lottery and for fun Smiley Sold all my asics when the diff started to skyrocket and did not lose much Smiley
joae1975
Hero Member
*****
Offline Offline

Activity: 752
Merit: 500



View Profile
November 09, 2013, 10:30:49 PM
 #15

So I'm solo mining PPC with my erupters using cgminer3.1.1.  I just received my bfl's in the mail and am running those on bfgminer.  But in order to get the cgminer started, I have to unplug the bfls from the computer first, start cgminer, then plug in the bfl's and run cgminer.  Otherwise cgminer gets all confused when I run the bat file.

Ok, so first I start the erupters, then the bfl.  When I start the bfl's, the cgminer running the erupters and soloing the ppc's has a message at the bottom:

USB init, open device failed, err -12, you need to install a windows USB driver for - BFL device 1:4
BitForce dectect <1:4> failed to initialise <incorrect device?>


Please note, the USB's are blinking and hashing.

Image of cgminer:
https://www.dropbox.com/s/rnkx73qwt31eavr/cgminer.ppc.png

1PewuG8KZJUPK3CtvAkAs1Uw42rQgUv5Jk
izzotheschizo
Member
**
Offline Offline

Activity: 112
Merit: 10

Mentally ill computer nerd trying to come up.


View Profile
November 10, 2013, 04:49:28 AM
 #16

By far this is the best guide I've seen for this.  I just got my $10 lottery stick in the mail.  I clicked on the zadig link and it says I dont have permission to access the file.

Bitcoin is the opportunity of a lifetime. http://youtu.be/n7m4JSDkIp4
os2sam
Legendary
*
Offline Offline

Activity: 3586
Merit: 1098


Think for yourself


View Profile
November 10, 2013, 04:51:49 AM
 #17

By far this is the best guide I've seen for this.  I just got my $10 lottery stick in the mail.  I clicked on the zadig link and it says I dont have permission to access the file.

I got that too.  I had already downloaded it on another machine.

Post a note on the CGMiner thread so tha ckolivas can look into it.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
demonmaestro
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500


Mining for the hell of it.


View Profile
November 10, 2013, 05:38:14 AM
 #18

Just out of wondering but wouldn't this work instead of going through all the file stuff?   If not then would the way up top work?



and then download cgminer or bfgminer and make a file called mine.bat


open up mine.bat should look something like this.

Feel Like Donating? bc1q0v5nfdejapffewu67gft7zw7zsmnfmmkt3lf02
Buy/Sell BitCoin & LiteCoin  Click here! | Looking for a great exchange? CoinBase Has you covered.
izzotheschizo
Member
**
Offline Offline

Activity: 112
Merit: 10

Mentally ill computer nerd trying to come up.


View Profile
November 11, 2013, 05:37:17 AM
 #19

I found a mirror link for the zadig drivers somewhere else.

demonmeastro does that work?  Where do I save the bat file?

Bitcoin is the opportunity of a lifetime. http://youtu.be/n7m4JSDkIp4
demonmaestro
Hero Member
*****
Offline Offline

Activity: 574
Merit: 500


Mining for the hell of it.


View Profile
November 11, 2013, 05:38:41 AM
 #20

I am assuming its working. the bat file gets saved in the directory with your bfgminer or cgminer

Feel Like Donating? bc1q0v5nfdejapffewu67gft7zw7zsmnfmmkt3lf02
Buy/Sell BitCoin & LiteCoin  Click here! | Looking for a great exchange? CoinBase Has you covered.
Pages: [1] 2 3 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!