bfgminer Ubuntu 14.04 and USB AntMiner U2

Antminer U2

Antminer U2

Mining with Antminer U2 in Ubuntu 14.04 using bfgminer 3.99. To copile bfgminer install :

sudo apt-get install build-essential autoconf libtool libjansson-dev libcurl4-gnutls-dev libncurses5-dev libudev-dev libusb-1.0-0-dev
sudo apt-get install uthash-dev

Add repository ppa:/bitcoin

sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update

Install bitcoin-qt

sudo apt-get install uthash-dev

Then install bfgminer:

cd ~
git clone
cd bfgminer 
./configure --enable-scrypt --enable-opencl

start mining with
sudo ./bfgminer -o stratum+tcp://yourpool:port -u username.worker -p workerpassword -S antminer:all


useful commands

sudo ./bfgminer -d?
sudo ./bfgminer -d? -D
sudo ./bfgminer -d? -D -S antminer:all

consider to install

sudo apt-get install utha 
sudo apt-get install sh-dev

Resources:   (BitMinter )