As always this is a post to myself as a reminder. I had to bare metal restore one of my servers and lost the setup. So saved here for posterity.
Installing bfgminer from github; for Fedora Linux users.
Assumes you have yum installed “autoconf automake git libtool libcurl libcurl-devel”
First
git config --global core.autocrlf input
Change to a directory you keep source code in, make one if needed.
Then
git clone https://github.com/troydhanson/uthash.git cd ut*/src sudo cp -p *h /usr/include cd ../..
Then
git clone https://github.com/akheron/jansson.git cd ja* autoreconf -i ./configure make sudo make install make check cd ..
Then
git clone https://github.com/luke-jr/bfgminer.git cd bf* ./autogen.sh # if it fails it is your firewall # try changing libblkmaker/.git/config from git to https
Then
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib;export LD_LIBRARY_PATH ./configure --enable-cpumining make
You will need to open the tcpv4 port 3333 for outbound traffic.
F19 and above, with firewalld use "firewall-cmd --zone=home --add --port=3333/tcp" If using iptables, "iptables -A OUTPUT -p tcp --sport 0:65535 --dport 3333:3333 -j ACCEPT"
Note on F19 “firewall-cmd –permanent –zone=home –add –port=3333/tcp” does not work, so the rule has to be manualy re-added each reboot.
Then in your bitminer account define a worker, or lots of workers if you have lots of PCs, and fire it up. This example uses mining pool at https://eclipsemc.com.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib;export LD_LIBRARY_PATH ./bfgminer -o stratum+tcp://us2.eclipsemc.com:3333 -O username__worker:password
Repeat on other servers, with different worker names and passwords of course.