Skip to content

Instantly share code, notes, and snippets.

@vietdien2005
Last active August 24, 2024 07:52
Show Gist options
  • Save vietdien2005/db91091820b00fcf4c9706c6b08e5440 to your computer and use it in GitHub Desktop.
Save vietdien2005/db91091820b00fcf4c9706c6b08e5440 to your computer and use it in GitHub Desktop.
install bfgminer with cpu mining on Ubuntu 16.04

Install

  sudo apt-get install bfgminer
  • Unfortunately the version was not up to date, and was not compiled for mining scrypt-based coins like Litecoin. Here is how I built BFGMiner with this support.

  • Install the dependencies:

  sudo apt-get install build-essential autoconf libtool libjansson-dev libcurl4-gnutls-dev libncurses5-dev libudev-dev libusb-1.0-0-dev yasm uthash-dev
  • Get a copy of the latest version and prepare the environment:
  cd ~
  git clone https://github.com/luke-jr/bfgminer.git
  cd bfgminer/
  ./autogen.sh
  • Then I built it while enabling scrypt and CPU optimizations:
  ./configure --enable-cpumining --enable-scrypt
  sudo make
  sudo make install
  • Then create a config file in ~/.bfgminer/bfgminer.conf :
{
"pools" : [
  {
    "url" : "stratum+tcp://coinotron.com:3334",
    "user" : "foo",
    "pass" : "password",
    "pool-priority" : "0"
  },
  {
    "url" : "https://p2pool.org:9327",
    "user" : "foo",
    "pass" : "password",
    "pool-priority" : "1"
  }
],
  "algo" : "scrypt",
  "api-port" : "4028",
  "expiry" : "120",
  "expiry-lp" : "3600",
  "gpu-dyninterval" : "7",
  "log" : "5",
  "no-pool-disable" : true,
  "no-show-processors" : true,
  "no-show-procs" : true,
  "queue" : "1",
  "scan-time" : "60",
  "scrypt" : true,
  "skip-security-checks" : "0",
  "submit-stale" : true,
  "temp-hysteresis" : "3",
  "shares" : "0",
  "kernel-path" : "/usr/local/bin"
}
  • And your ready to launch the miner:
  ~/bfgminer/bfgminer
@nymbuzcumulus
Copy link

image

@nymbuzcumulus
Copy link

so it seems there are inbound calls from bfgminer... but the very same one says no connection and bla bla bla... really need help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment