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