{"id":23616,"date":"2024-08-02T15:53:47","date_gmt":"2024-08-02T13:53:47","guid":{"rendered":"https:\/\/www.bitshopper.de?page_id=23616"},"modified":"2024-08-02T15:53:48","modified_gmt":"2024-08-02T13:53:48","slug":"compac-a1-setup-mac","status":"publish","type":"page","link":"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-mac\/","title":{"rendered":"Compac A1 Setup Mac"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\" id=\"h-vorbereitung\">Preparation<\/h3>\n\n<p>For the successful setup of CGMiner for the Compac A1 for Mac, I recommend the following operating system versions and extensions<\/p>\n\n<ul class=\"wp-block-list\">\n<li>Mac OS Big Sur 11.16 or higher<\/li>\n\n\n\n<li>Homebrew Package Manager for Mac OS<\/li>\n<\/ul>\n\n<p>The first step is to install the Apple Command Line Tools on your Mac OS operating system. Open the Terminal app and enter the following to install the Apple Command Line Tools:<\/p>\n\n<pre class=\"wp-block-code\"><code>xcode-select --install<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\" id=\"h-paketmanager-installieren-und-paketabhangigkeiten-auflosen\">Install package manager and resolve package dependencies<\/h3>\n\n<p>First, the free package manager Homebrew (<a href=\"https:\/\/brew.sh\">https:\/\/brew.sh<\/a>) for Mac OS must be installed. This takes 5-10 minutes, depending on the speed of your internet connection.<\/p>\n\n<pre class=\"wp-block-code\"><code>\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"\nbrew analytics off<\/code><\/pre>\n\n<p>The following packages must be installed to resolve the package dependencies of CGMiner:<\/p>\n\n<h3 class=\"wp-block-heading\" id=\"h-build\">Build<\/h3>\n\n<p>For the Mac, Kano has a prepared &#8220;recipe&#8221; (tap) in Homebrew:<\/p>\n\n<pre class=\"wp-block-code\"><code>brew tap kanoi\/cgminer\nbrew install cgminer<\/code><\/pre>\n\n<p>If you already use Homebrew as a package manager on your Mac, you can follow these steps to update Hombrew and install CGMiner:<\/p>\n\n<pre class=\"wp-block-code\"><code>brew analytics off\nbrew doctor\nbrew update\nbrew upgrade\nbrew cleanup\nbrew tap kanoi\/cgminer\nbrew install cgminer<\/code><\/pre>\n\n<p>To install smaller updates of CGMiner (with an already current Homebrew installation, the following command is sufficient:<\/p>\n\n<pre class=\"wp-block-code\"><code>brew reinstall cgminer<\/code><\/pre>\n\n<p>Afterwards, I recommend testing the newly compiled binary as follows:<\/p>\n\n<pre class=\"wp-block-code\"><code>sudo cgminer -n<\/code><\/pre>\n\n<p>This command lists the detected miners. Example output \u201cCompac F BM1397 Bitcoin Miner\u201d.<\/p>\n\n<h3 class=\"wp-block-heading\" id=\"h-inbetriebnahme\">Setup<\/h3>\n\n<p>I recommend setting up a configuration file, it is much clearer than starting CGMiner with console parameters.<\/p>\n\n<h4 class=\"wp-block-heading\" id=\"h-beispiel-einer-gekko-conf-konfigurationsdatei\">Example of a gekko.conf configuration file:<\/h4>\n\n<pre class=\"wp-block-code\"><code>{\n\"pools\" : &#91;\n{\n\"url\" : \"stratum+tcp:\/\/stratum.kano.is:3333\",\n\"user\" : \"benutzername.worker\",\n\"pass\" : \"x\"\n}\n],\n\"gekko-compaca1-start-freq\" : \"300\",\n\"gekko-compaca1-freq\" : \"300\",\n\"gekko-compaca1-corev\" : \"300\",\n\"gekko-compaca1-detect\" : true,\n\"gekko-r909-freq\" : \"450\",\n\"gekko-r909-detect\" : true,\n\"gekko-compacf-freq\" : \"400\",\n\"gekko-compacf-detect\" : true,\n\"gekko-tune2\" : \"60\",\n\"suggest-diff\" : \"442\",\n\"failover-only\" : true,\n\"api-listen\" : true,\n\"api-port\" : \"4028\",\n\"api-allow\" : \"W:192.168.1.0\/24,W:127.0.0.1\"\n}<\/code><\/pre>\n\n<p>How to start CGMiner with configuration file:<\/p>\n\n<pre class=\"wp-block-code\"><code>cgminer -c gekko.conf&nbsp;<\/code><\/pre>\n\n<p>This is how the command line looks like without a configuration file<\/p>\n\n<pre class=\"wp-block-code\"><code>cgminer --o stratum+tcp:\/\/stratum.kano.is:3333 -u 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr -p x --suggest-diff 442&nbsp;--gekko-compacf-freq 400 --gekko-compacf-detect true<\/code><\/pre>\n\n<p>In the examples above, please replace the pool data as well as the user name and worker with your own pool data, user data and worker.<\/p>\n\n<p>Depending on the intended use, it is recommended to log the output of CGMiner in a log file:<\/p>\n\n<pre class=\"wp-block-code\"><code>cgminer -c gekko.conf 2&gt; \"run-`date +%Y%m%d%H%M%S`.log\"<\/code><\/pre>\n\n<p>Alternatively, you can put CGMiner into a shell script that writes a log file:<\/p>\n\n<pre class=\"wp-block-code\"><code>touch cgminer.sh\nsudo nano cgminer.sh<\/code><\/pre>\n\n<p>Content of the shell script:<\/p>\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/sh\n#\nwhile true ; do\nnow=\"`date +%Y%m%d%H%M%S`\"\n#\n.\/cgminer -c gekko.conf \"$@\" 2&gt; \"run.$now.log\"\n#\necho \"Sleeping for 5 seconds ...\"\nsleep 5\ndone<\/code><\/pre>\n\n<p>Then make the shell script executable:<\/p>\n\n<pre class=\"wp-block-code\"><code>chmod +x cgminer.sh<\/code><\/pre>\n\n<p>The \u201c$@\u201d means that you can pass additional parameters to the shell script to be added to the running cgminer, e.g. to disable asicboost.<\/p>\n\n<pre class=\"wp-block-code\"><code>cgminer.sh --gekko-noboost<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\" id=\"h-zugriff-auf-die-api-auf-dem-mac\">Accessing the API on Mac<\/h3>\n\n<p>Install Java for Mac. Oracle suggests the correct version of Java for desktop applications. Make sure you select the correct Java installation package for Intel or Apple Arm64 CPU.<\/p>\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;java.com\/<\/code><\/pre>\n\n<p>Please make sure that you have enabled the API functionality in the configuration file or via the console parameter:<\/p>\n\n<pre class=\"wp-block-code\"><code>--api-enable --api-allow \"W:127.0.0.1\"<\/code><\/pre>\n\n<p>Finally, you can test the Java API functionality on your Mac. Please enter the following in a terminal window<\/p>\n\n<pre class=\"wp-block-code\"><code>cd Library\/Caches\/Homebrew\/cgminer--git\/\njava API estats<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\" id=\"h-zubehor\">Accessories<\/h3>\n\n<p>In particular, to operate the miner with a Raspberry Pi, it requires a USB hub with an active power supply that is able to provide at least 3 A per USB port. We have had good experiences with USB 2.0 devices from Anker and Orico. Our <a href=\"https:\/\/www.bitshopper.deen\/shop\/accessories\/7-port-usb-hub\/\">7-port USB hub<\/a> has self-resetting fuses on each port and can provide up to 6 amps per port.<\/p>\n\n<p>The Compac A1 hardware design is geared towards high performance and requires good cooling. Although the Compac A1 is the first USB stick miner to have a thermal fuse, I recommend good cooling to increase the lifespan of the components. We have had good experiences with the <a href=\"https:\/\/www.amazon.de\/dp\/B003XN24GY\">Arctic Breeze Mobile 92 mm<\/a>. Very quiet, powerful and durable.<\/p>\n\n<p>Alternatively, we also offer the Compac A1 with a snap-on fan, which can be powered directly on the circuit board. The Sunon 40 mm fan installed here provides sufficient cooling at a noise level of just 23 decibels.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Preparation For the successful setup of CGMiner for the Compac A1 for Mac, I recommend the following operating system versions and extensions The first step is to install the Apple Command Line Tools on your Mac OS operating system. Open the Terminal app and enter the following to install the Apple Command Line Tools: Install [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":23601,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-23616","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Compac A1 Setup Mac - bitshopper.de<\/title>\n<meta name=\"description\" content=\"Preparation, package dependencies, configuration, build and operation for the Compac A1 USB Stick Miner under Mac OS\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-mac\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Compac A1 Setup Mac\" \/>\n<meta property=\"og:description\" content=\"Preparation, package dependencies, configuration, build and operation for the Compac A1 USB Stick Miner under Mac OS\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-mac\/\" \/>\n<meta property=\"og:site_name\" content=\"bitshopper.de\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-02T13:53:48+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/support\\\/instructions\\\/compac-a1\\\/compac-a1-setup-mac\\\/\",\"url\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/support\\\/instructions\\\/compac-a1\\\/compac-a1-setup-mac\\\/\",\"name\":\"Compac A1 Setup Mac - bitshopper.de\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/#website\"},\"datePublished\":\"2024-08-02T13:53:47+00:00\",\"dateModified\":\"2024-08-02T13:53:48+00:00\",\"description\":\"Preparation, package dependencies, configuration, build and operation for the Compac A1 USB Stick Miner under Mac OS\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/support\\\/instructions\\\/compac-a1\\\/compac-a1-setup-mac\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/support\\\/instructions\\\/compac-a1\\\/compac-a1-setup-mac\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/support\\\/instructions\\\/compac-a1\\\/compac-a1-setup-mac\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Support\",\"item\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Instructions\",\"item\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/support\\\/instructions\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Compac A1\",\"item\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/support\\\/instructions\\\/compac-a1\\\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Compac A1 Setup Mac\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/\",\"name\":\"bitshopper.de\",\"description\":\"Digital mining equipment &amp; more\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Compac A1 Setup Mac - bitshopper.de","description":"Preparation, package dependencies, configuration, build and operation for the Compac A1 USB Stick Miner under Mac OS","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-mac\/","og_locale":"en_US","og_type":"article","og_title":"Compac A1 Setup Mac","og_description":"Preparation, package dependencies, configuration, build and operation for the Compac A1 USB Stick Miner under Mac OS","og_url":"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-mac\/","og_site_name":"bitshopper.de","article_modified_time":"2024-08-02T13:53:48+00:00","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-mac\/","url":"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-mac\/","name":"Compac A1 Setup Mac - bitshopper.de","isPartOf":{"@id":"https:\/\/www.bitshopper.de\/en\/#website"},"datePublished":"2024-08-02T13:53:47+00:00","dateModified":"2024-08-02T13:53:48+00:00","description":"Preparation, package dependencies, configuration, build and operation for the Compac A1 USB Stick Miner under Mac OS","breadcrumb":{"@id":"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-mac\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-mac\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-mac\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bitshopper.de\/en\/"},{"@type":"ListItem","position":2,"name":"Support","item":"https:\/\/www.bitshopper.de\/en\/support\/"},{"@type":"ListItem","position":3,"name":"Instructions","item":"https:\/\/www.bitshopper.de\/en\/support\/instructions\/"},{"@type":"ListItem","position":4,"name":"Compac A1","item":"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/"},{"@type":"ListItem","position":5,"name":"Compac A1 Setup Mac"}]},{"@type":"WebSite","@id":"https:\/\/www.bitshopper.de\/en\/#website","url":"https:\/\/www.bitshopper.de\/en\/","name":"bitshopper.de","description":"Digital mining equipment &amp; more","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bitshopper.de\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.bitshopper.de\/en\/wp-json\/wp\/v2\/pages\/23616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bitshopper.de\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bitshopper.de\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bitshopper.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bitshopper.de\/en\/wp-json\/wp\/v2\/comments?post=23616"}],"version-history":[{"count":0,"href":"https:\/\/www.bitshopper.de\/en\/wp-json\/wp\/v2\/pages\/23616\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.bitshopper.de\/en\/wp-json\/wp\/v2\/pages\/23601"}],"wp:attachment":[{"href":"https:\/\/www.bitshopper.de\/en\/wp-json\/wp\/v2\/media?parent=23616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}