Author

Topic: How do you run BFGminer as a blade proxy?? (Read 15606 times)

member
Activity: 92
Merit: 10
March 13, 2014, 07:44:37 PM
#34
Has anyone else compared the speed running through bfgminer to the speed running through Slush's proxy? Also, does the Proxy miner show up in the bfgminer API Output?

I don't know how to set my blade via Slush's proxy,  I was trying use this command:

mining_proxy.exe -o localhost -p 3333 -cu bitcoinrpc -cp password (I already add rpcport=3333 in bitcoin.conf, and my blade point to localhost:8332)

or
mining_proxy.exe -o localhost -p 3333 -cu bitcoinrpc -cp password -sh localhost -sp 3333 -oh localhost -gp 8332

All of them doesn't work.

Would you please tell me how to setuo it. Thank you.
hero member
Activity: 840
Merit: 1002
February 25, 2014, 12:20:22 PM
#33
Can you run 5 cubes as same proxy ?
ANd same user ? U:P,U:P ?
on same 5 cubes ?
yeah but just shows the total hash rate for the whole proxy in bfgminer

If you use separate worker names for each device they show up as separate devices in bfgminer.
hero member
Activity: 662
Merit: 500
February 24, 2014, 07:01:34 PM
#32
Can you run 5 cubes as same proxy ?
ANd same user ? U:P,U:P ?
on same 5 cubes ?
yeah but just shows the total hash rate for the whole proxy in bfgminer
legendary
Activity: 1190
Merit: 1002
February 24, 2014, 06:51:25 PM
#31
Can you run 5 cubes as same proxy ?
ANd same user ? U:P,U:P ?
on same 5 cubes ?
member
Activity: 61
Merit: 10
February 07, 2014, 04:14:39 PM
#30
post so i can find it again
hero member
Activity: 662
Merit: 500
December 24, 2013, 06:29:51 PM
#29
Has anyone else compared the speed running through bfgminer to the speed running through Slush's proxy? Also, does the Proxy miner show up in the bfgminer API Output?
newbie
Activity: 7
Merit: 0
December 21, 2013, 06:53:29 PM
#28
Woot figured it out. All I need to do was download the 3.8.0 win 32. Not run it on a 32bit system.
Use the --http-port #### on you command line and then run, really simple.
newbie
Activity: 7
Merit: 0
December 21, 2013, 05:30:57 PM
#27
Help. will give .04BTC for a complete step by step guild on have to configure bfgminer 3.8.0 on Ubuntu 13.10 64bit.
I have read this post up and down and still can't figure it out. I am a little newb so if there is a off site information please include it in your post.
My setup right now
mike@mike-Qosmio-X775:~$ uname -a
Linux mike-Qosmio-X775 3.11.0-14-generic #21-Ubuntu SMP Tue Nov 12 17:04:55 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
mike@mike-Qosmio-X775:~$ bfgminer -V
bfgminer 3.8.0
newbie
Activity: 11
Merit: 0
December 20, 2013, 12:35:16 AM
#26
Ok, I figured out the issue.

Downloaded lastest ubuntu, 13.10 32bit server. Installed updated, and volia, works like a charm.

12.04 didn't have the correct microhttpd.

Michael

For those of us still on 12.04 and not wanting to upgrade, what was the correct version/package that worked for you?

I installed the debian packages here and it works without issue: https://launchpad.net/~rbose-debianizer/+archive/gnunet/+build/4588989

I looked at the 3 deb files, but each depends on each other, so how did you install them? I get errors for all of them when trying to install...

Installed them with dpkg -i. You only need two of them, these are the exact commands I did:

  sudo dpkg -i libmicrohttpd10_0.9.27-0gnu1~12.04_i386.deb
  sudo dpkg -i libmicrohttpd-dev_0.9.27-0gnu1~12.04_i386.deb

Running Ubuntu 12.04.1 LTS
full member
Activity: 167
Merit: 100
December 14, 2013, 07:25:39 AM
#25
Ok, I figured out the issue.

Downloaded lastest ubuntu, 13.10 32bit server. Installed updated, and volia, works like a charm.

12.04 didn't have the correct microhttpd.

Michael

For those of us still on 12.04 and not wanting to upgrade, what was the correct version/package that worked for you?

I installed the debian packages here and it works without issue: https://launchpad.net/~rbose-debianizer/+archive/gnunet/+build/4588989

I looked at the 3 deb files, but each depends on each other, so how did you install them? I get errors for all of them when trying to install...
full member
Activity: 167
Merit: 100
December 14, 2013, 07:11:20 AM
#24
Can anyone provide me a STEP BY STEP on installing this httpd thing?

I cannot download newer versions of debian since I'm trying to get GMAT working, but I can't seem to find any respoitories w/ the correct file.  I have installed httpd5 from the 3 repositories in the list, but that's all I could find.

I found libmicrohttpd 9.20, but that requires httpf10, which requires about 10 other deb packages....  This is so painful and frustrating.  I just want a simply proxy to run on my linux box... in fact, I NEED it on my linux box in order to run my entire blade farm...


please help!!!!
hero member
Activity: 924
Merit: 1000
Watch out for the "Neg-Rep-Dogie-Police".....
December 13, 2013, 06:58:35 PM
#23
Yup, I am. I'm surprised Luke didn't put the info in the readme - would have saved us both some time & trouble eh?

Peace  Grin
newbie
Activity: 54
Merit: 0
December 13, 2013, 06:44:09 PM
#22
For those of us still on 12.04 and not wanting to upgrade, what was the correct version/package that worked for you?

It looks like downloading version 0.9.32, configuring it, building it, and installing it is what was required to get it going on 12.04.

EDIT: Be sure to run 'sudo ldconfig' after the install or you might get this error:
error while loading shared libraries libmicrohttpd.so.10

Thankyou-Thankyou-Thankyou-Thankyou!!!!!!!!!!

You, my good sir, have just ended hours of frustration & hair pulling here. I'm a semi noob to Xubuntu, so thought it was me doing something wrong - I've been searching & reading so many different guides on this without success - until I stumbled upon this thread. It worked a treat - I'm forever in your debt my good man.

Praise the Cyber Gods!!  Grin Grin

If you are talking to me about getting it working on 12.04 - you are welcome.  It took some hair pulling on my end to get it working so I thought I would share what I learned  Cool
hero member
Activity: 924
Merit: 1000
Watch out for the "Neg-Rep-Dogie-Police".....
December 13, 2013, 03:30:14 PM
#21
Ok, I figured out the issue.

Downloaded lastest ubuntu, 13.10 32bit server. Installed updated, and volia, works like a charm.

12.04 didn't have the correct microhttpd.

Michael

For those of us still on 12.04 and not wanting to upgrade, what was the correct version/package that worked for you?

It looks like downloading version 0.9.32, configuring it, building it, and installing it is what was required to get it going on 12.04.

EDIT: Be sure to run 'sudo ldconfig' after the install or you might get this error:
error while loading shared libraries libmicrohttpd.so.10

Thankyou-Thankyou-Thankyou-Thankyou!!!!!!!!!!

You, my good sir, have just ended hours of frustration & hair pulling here. I'm a semi noob to Xubuntu, so thought it was me doing something wrong - I've been searching & reading so many different guides on this without success - until I stumbled upon this thread. It worked a treat - I'm forever in your debt my good man.

Praise the Cyber Gods!!  Grin Grin
newbie
Activity: 11
Merit: 0
December 09, 2013, 05:20:44 PM
#20
Ok, I figured out the issue.

Downloaded lastest ubuntu, 13.10 32bit server. Installed updated, and volia, works like a charm.

12.04 didn't have the correct microhttpd.

Michael

For those of us still on 12.04 and not wanting to upgrade, what was the correct version/package that worked for you?

I installed the debian packages here and it works without issue: https://launchpad.net/~rbose-debianizer/+archive/gnunet/+build/4588989
newbie
Activity: 54
Merit: 0
December 05, 2013, 10:24:39 PM
#19
Ok, I figured out the issue.

Downloaded lastest ubuntu, 13.10 32bit server. Installed updated, and volia, works like a charm.

12.04 didn't have the correct microhttpd.

Michael

For those of us still on 12.04 and not wanting to upgrade, what was the correct version/package that worked for you?

It looks like downloading version 0.9.32, configuring it, building it, and installing it is what was required to get it going on 12.04.

EDIT: Be sure to run 'sudo ldconfig' after the install or you might get this error:
error while loading shared libraries libmicrohttpd.so.10
newbie
Activity: 54
Merit: 0
December 05, 2013, 10:06:33 PM
#18
Ok, I figured out the issue.

Downloaded lastest ubuntu, 13.10 32bit server. Installed updated, and volia, works like a charm.

12.04 didn't have the correct microhttpd.

Michael

For those of us still on 12.04 and not wanting to upgrade, what was the correct version/package that worked for you?
newbie
Activity: 42
Merit: 0
November 25, 2013, 12:01:58 PM
#17
Ok, I figured out the issue.

Downloaded lastest ubuntu, 13.10 32bit server. Installed updated, and volia, works like a charm.

12.04 didn't have the correct microhttpd.

Michael
newbie
Activity: 42
Merit: 0
November 25, 2013, 08:43:12 AM
#16
The point of me showing it without the port was to show the output. With the output stating unrecognized option shows it was not compiled with it.

My question is how to get it compiled with it. The readme states it is enabled by default.

Compile it on a system with libmicrohttpd installed.

Did that.

------------------------------------------------------------------------
bfgminer 3.6.0 configuration options summary
------------------------------------------------------------------------

  CFLAGS...............: -I/usr/include/ncursesw -pthread -g -O2 -I/usr/include/libusb-1.0 -pthread -Ilibblkmaker
  LDFLAGS..............: -pthread -Llibblkmaker/.libs -Wl,-rpath,\$$ORIGIN/libblkmaker/.libs,-zorigin -lpthread -lcurl -ljansson -lncursesw -ltinfo -lm -ludev -lusb-1.0 -lrt -lblkmaker_jansson-0.1 -lblkmaker-0.1
  Installation.prefix..: /usr/local

  Enabled..Drivers.....: avalon bigpic bitforce bitfury_gpio cairnsmore erupter icarus klondike littlefury modminer proxy proxy:stratum x6500 ztex
  Disabled.Drivers.....: bfsb cpu hashbuster knc metabank nanofury opencl proxy:getwork
    To enable proxy:getwork, install libmicrohttpd 0.9.5+
    To enable nanofury, install hidapi
    To enable hashbuster, install hidapi
  Enabled..Algorithms..: SHA256d
  Disabled.Algorithms..: scrypt
  Enabled..Options.....: ncursesw5
  Disabled.Options.....:

michael@bfgminer-proxy:~/bfgminer$

michael@bfgminer-proxy:~$ sudo apt-get install libmicrohttpd*
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Note, selecting 'libmicrohttpd5' for regex 'libmicrohttpd*'
Note, selecting 'libmicrohttpd-dbg' for regex 'libmicrohttpd*'
Note, selecting 'libmicrohttpd-dev' for regex 'libmicrohttpd*'
libmicrohttpd-dev is already the newest version.
libmicrohttpd5 is already the newest version.

libmicrohttpd5 set to manually installed.
The following NEW packages will be installed:
  libmicrohttpd-dbg
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 46.8 kB of archives.
After this operation, 147 kB of additional disk space will be used.
Do you want to continue [Y/n]?
hero member
Activity: 1246
Merit: 501
November 25, 2013, 08:42:29 AM
#15
You need to specify which port you want, for example --http-port 8330

Just adding --http-port won't work.

michael@bfgminer-proxy:~/bfgminer$ ./bfgminer --http-port 8330
 [2013-11-25 07:29:19] ./bfgminer: --http-port: unrecognized option                    
michael@bfgminer-proxy:~/bfgminer$

The point of me showing it without the port was to show the output. With the output stating unrecognized option shows it was not compiled with it.

My question is how to get it compiled with it. The readme states it is enabled by default.

Oh, excuse me for not spotting that you'd intentionally butchered the syntax for effect.  Roll Eyes

As nwoolls says, you need to have libmicrohttpd installed too - I'm pretty sure it's listed in the dependencies (was the last time I looked, because I remember having to install it).
hero member
Activity: 840
Merit: 1002
November 25, 2013, 08:39:25 AM
#14
The point of me showing it without the port was to show the output. With the output stating unrecognized option shows it was not compiled with it.

My question is how to get it compiled with it. The readme states it is enabled by default.

Compile it on a system with libmicrohttpd installed.
newbie
Activity: 42
Merit: 0
November 25, 2013, 08:29:40 AM
#13
You need to specify which port you want, for example --http-port 8330

Just adding --http-port won't work.

michael@bfgminer-proxy:~/bfgminer$ ./bfgminer --http-port 8330
 [2013-11-25 07:29:19] ./bfgminer: --http-port: unrecognized option                    
michael@bfgminer-proxy:~/bfgminer$

The point of me showing it without the port was to show the output. With the output stating unrecognized option shows it was not compiled with it.

My question is how to get it compiled with it. The readme states it is enabled by default.
hero member
Activity: 1246
Merit: 501
November 25, 2013, 06:22:53 AM
#12
You need to specify which port you want, for example --http-port 8330

Just adding --http-port won't work.
newbie
Activity: 42
Merit: 0
November 24, 2013, 11:47:33 PM
#11
Mabey someone can shed a little light on this.

Fresh install ubuntu 12.04 server 32bit. ppa install bfgminer

michael@bfgminer-proxy:~$ uname -a
Linux bfgminer-proxy 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux
michael@bfgminer-proxy:~$ bfgminer -V
bfgminer 3.6.0
michael@bfgminer-proxy:~$ bfgminer --http-port
[2013-11-24 22:26:24] bfgminer: --http-port: unrecognized option                   
michael@bfgminer-proxy:~$

Ok, so I purge bfgminer from the system, git, compile, same thing.

Readme says it is enabled by default for compile. I'm at a lost here.

I tried running it on my xp machine and just got dll errors, I would prefer to have it on my ubuntu server.

Michael
hero member
Activity: 1246
Merit: 501
October 20, 2013, 05:13:21 AM
#10
Any idea what I'm doing wrong?



Looks fine to me, the only thing I'd suggest is trying a different pool.  Your config on your Blade and BFGMiner looks perfect.

sr. member
Activity: 420
Merit: 250
October 19, 2013, 12:11:39 AM
#9
Any idea what I'm doing wrong?

hero member
Activity: 1246
Merit: 501
September 23, 2013, 08:07:52 AM
#8

The readme that I have says nothing about blades, jsut thats they have been added to the support of BFGminer. Anyhow I don't run win32... so I don't know what I'm going to do to fix this bullshit...

Well, I copied that straight out of the README.ASIC - it's not my fault you can't download some files properly.  You asked for help, I told you how to get it working.  

If you'd spent 5 minutes reading the BFGMiner thread, you'd see why it's only Win32 and Linux, but apparently you prefer posting a new thread then complaining bitterly when the solution doesn't suit you.

Next time, you can stick it up your ass.   Roll Eyes

My bad, wasn't even angry at you. And all I read was the README not the .asic version. I'm mad because these blades have been nothing but up's and down's and its only been on the networking end. I figured the electrical work would be the hard part but that wasn't the case at all. I just want to get these things up and running.

As I have no experience running BFG miner outside of minepeon on my Raspberry pi... Could someone show me what I would type in for the command to run a blade on BFGminer?

Yeah, I have two of them, one has been running perfectly, the other is up and down like a cheap whore's knickers.  Roll Eyes 

You need to:

bfgminer.exe -G --http-port 8330

BFG should start and ask you for pool details etc.  Set those up and save the config as usual.  Once BFG is running, point the Blade to the IP address of the PC and port as 8330.  Eac Blade must have a unique and non-important username and password.

I've found BFG crashes first time the Blade connects, just running BFG again allows the Blade to connect OK.  Luke-Jr is aware of the crashing issue.  Once it's running it works OK.
newbie
Activity: 59
Merit: 0
September 23, 2013, 08:00:59 AM
#7

The readme that I have says nothing about blades, jsut thats they have been added to the support of BFGminer. Anyhow I don't run win32... so I don't know what I'm going to do to fix this bullshit...

Well, I copied that straight out of the README.ASIC - it's not my fault you can't download some files properly.  You asked for help, I told you how to get it working.  

If you'd spent 5 minutes reading the BFGMiner thread, you'd see why it's only Win32 and Linux, but apparently you prefer posting a new thread then complaining bitterly when the solution doesn't suit you.

Next time, you can stick it up your ass.   Roll Eyes

My bad, wasn't even angry at you. And all I read was the README not the .asic version. I'm mad because these blades have been nothing but up's and down's and its only been on the networking end. I figured the electrical work would be the hard part but that wasn't the case at all. I just want to get these things up and running.

As I have no experience running BFG miner outside of minepeon on my Raspberry pi... Could someone show me what I would type in for the command to run a blade on BFGminer?
hero member
Activity: 1246
Merit: 501
September 23, 2013, 07:33:45 AM
#6

The readme that I have says nothing about blades, jsut thats they have been added to the support of BFGminer. Anyhow I don't run win32... so I don't know what I'm going to do to fix this bullshit...

Well, I copied that straight out of the README.ASIC - it's not my fault you can't download some files properly.  You asked for help, I told you how to get it working.  

If you'd spent 5 minutes reading the BFGMiner thread, you'd see why it's only Win32 and Linux, but apparently you prefer posting a new thread then complaining bitterly when the solution doesn't suit you.

Next time, you can stick it up your ass.   Roll Eyes
newbie
Activity: 59
Merit: 0
September 23, 2013, 05:42:14 AM
#5
You need to read README.ASIC.  Info is there. Smiley

Basically you need to add --http-port 8330 to the end of your command line, then point your Blade to the IP of the machine running BFG.  Each Blade needs to have a unique username (it doesn't matter what, anything will do as long as it's unique).

Note this option is only available on Win32 version, and under Linux.  OpenWRT and Win64 don't have it.

Here's the section in README.ASIC if you couldn't be bothered reading it yourself:

Code:
BLOCK ERUPTER BLADE
-------------------

Blades communicate over Ethernet using the old but simple getwork mining
protocol. If you build BFGMiner with libmicrohttpd, you can have it work with
one or more blades. First, start BFGMiner with the --http-port option. For
example:
    bfgminer --http-port 8330
Then configure your blade to connect to your BFGMiner instance on the same port,
with a unique username per blade. It will then show up as a SGW device and
should work more or less like any other miner.

The readme that I have says nothing about blades, jsut thats they have been added to the support of BFGminer. Anyhow I don't run win32... so I don't know what I'm going to do to fix this bullshit...
hero member
Activity: 1246
Merit: 501
September 23, 2013, 05:30:28 AM
#4
You need to read README.ASIC.  Info is there. Smiley

Basically you need to add --http-port 8330 to the end of your command line, then point your Blade to the IP of the machine running BFG.  Each Blade needs to have a unique username (it doesn't matter what, anything will do as long as it's unique).

Note this option is only available on Win32 version, and under Linux.  OpenWRT and Win64 don't have it.

Here's the section in README.ASIC if you couldn't be bothered reading it yourself:

Code:
BLOCK ERUPTER BLADE
-------------------

Blades communicate over Ethernet using the old but simple getwork mining
protocol. If you build BFGMiner with libmicrohttpd, you can have it work with
one or more blades. First, start BFGMiner with the --http-port option. For
example:
    bfgminer --http-port 8330
Then configure your blade to connect to your BFGMiner instance on the same port,
with a unique username per blade. It will then show up as a SGW device and
should work more or less like any other miner.
newbie
Activity: 59
Merit: 0
September 23, 2013, 05:25:02 AM
#3
correct me if I'm wrong but I thought stratum was already built in, you simply need to set your options as -S All  on the command line arguments and you're all set.

I honestly don't know. All that I do know is that BFGminer recently started to get Blades to work on it. I can't find any documentation on getting it running since the blade isn't connected to my PC and it is it's own device and all.
legendary
Activity: 1456
Merit: 1018
HoneybadgerOfMoney.com Weed4bitcoin.com
September 23, 2013, 05:10:53 AM
#2
correct me if I'm wrong but I thought stratum was already built in, you simply need to set your options as -S All  on the command line arguments and you're all set.
newbie
Activity: 59
Merit: 0
September 23, 2013, 05:08:42 AM
#1
So with how faulty the stratum proxy has become over at Slush's pool I've been looking for a new one. Everything points at BFGminer how ever I can't find any documentation to run it as a stratum proxy for my BE Blade. I've tried the web proxy and for some reason my blades only run at 50% efficiency when doing so. When the original stratum proxy was working just fine my miners were going at 110%. Any help is appreciated, as I've done a lot of searching and can't find an answer...
Jump to: