{"id":342,"date":"2013-12-05T20:49:37","date_gmt":"2013-12-05T08:49:37","guid":{"rendered":"http:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=342"},"modified":"2013-12-07T10:05:31","modified_gmt":"2013-12-06T22:05:31","slug":"installing-bfgminer-bitminer-for-linux-users","status":"publish","type":"post","link":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=342","title":{"rendered":"Installing bfgminer bitminer for Linux users"},"content":{"rendered":"<p>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.<\/p>\n<p>Installing bfgminer from github; <b>for Fedora Linux users<\/b>.<\/p>\n<p>Assumes you have yum installed &#8220;autoconf automake git libtool libcurl libcurl-devel&#8221;<\/p>\n<p>First<\/p>\n<pre>\r\ngit config --global core.autocrlf input\r\n<\/pre>\n<p>Change to a directory you keep source code in, make one if needed.<\/p>\n<p>Then<\/p>\n<pre>\r\ngit clone https:\/\/github.com\/troydhanson\/uthash.git\r\ncd ut*\/src\r\nsudo cp -p *h \/usr\/include\r\ncd ..\/..\r\n<\/pre>\n<p>Then<\/p>\n<pre>\r\ngit clone https:\/\/github.com\/akheron\/jansson.git\r\ncd ja*\r\nautoreconf -i\r\n.\/configure\r\nmake\r\nsudo make install\r\nmake check\r\ncd ..\r\n<\/pre>\n<p>Then<\/p>\n<pre>\r\ngit clone https:\/\/github.com\/luke-jr\/bfgminer.git\r\ncd bf*\r\n.\/autogen.sh                  # if it fails it is your firewall\r\n                              # try changing libblkmaker\/.git\/config from git to https \r\n<\/pre>\n<p>Then<\/p>\n<pre>\r\nLD_LIBRARY_PATH=$LD_LIBRARY_PATH:\/usr\/local\/lib;export LD_LIBRARY_PATH\r\n.\/configure --enable-cpumining\r\nmake\r\n<\/pre>\n<p>You will need to open the tcpv4 port 3333 for outbound traffic.<\/p>\n<pre>\r\nF19 and above, with firewalld use \"firewall-cmd --zone=home --add --port=3333\/tcp\"\r\nIf using iptables, \"iptables -A OUTPUT -p tcp --sport 0:65535 --dport 3333:3333 -j ACCEPT\"\r\n<\/pre>\n<p>Note on F19 &#8220;firewall-cmd &#8211;permanent &#8211;zone=home &#8211;add &#8211;port=3333\/tcp&#8221; does not work, so the rule has to be manualy re-added each reboot.<\/p>\n<p>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.<\/p>\n<pre>\r\nLD_LIBRARY_PATH=$LD_LIBRARY_PATH:\/usr\/local\/lib;export LD_LIBRARY_PATH\r\n.\/bfgminer -o stratum+tcp:\/\/us2.eclipsemc.com:3333 -O username__worker:password\r\n<\/pre>\n<p>Repeat on other servers, with different worker names and passwords of course.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <a href=\"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=342\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-342","post","type-post","status-publish","format-standard","hentry","category-my-nux-thoughts-and-notes"],"_links":{"self":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=342"}],"version-history":[{"count":7,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/342\/revisions"}],"predecessor-version":[{"id":349,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/342\/revisions\/349"}],"wp:attachment":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}