{"id":23608,"date":"2024-08-02T14:58:24","date_gmt":"2024-08-02T12:58:24","guid":{"rendered":"https:\/\/www.bitshopper.de?page_id=23608"},"modified":"2024-08-02T14:58:26","modified_gmt":"2024-08-02T12:58:26","slug":"compac-a1-setup-linux-raspberry-pi","status":"publish","type":"page","link":"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-linux-raspberry-pi\/","title":{"rendered":"Compac A1 Setup Linux\/ Raspberry Pi"},"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 Linux, I recommend the following operating system versions<\/p>\n\n<ul class=\"wp-block-list\">\n<li>Ubuntu 24.04 LTS (Noble Numbat) or higher<\/li>\n\n\n\n<li>Raspberry PI OS Legacy, 32-bit (Bullseye) for Raspberry Pi 4, Pi 5 or Pi Zero 2 W<\/li>\n<\/ul>\n\n<p>Note: As of July 2024, the latest version of the Raspberry PI OS based on Debian Bookworm has problems building and integrating the CGMiner API. I therefore recommend using the previous version based on Debian Bullseye.<\/p>\n\n<p>First update your system and already installed packages:<\/p>\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update\nsudo apt-get upgrade -y<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\" id=\"h-paketabhangigkeiten\">Package dependencies<\/h3>\n\n<p>The following packages must be installed to resolve the package dependencies of CGMiner:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><em>build-essential<\/em>: Compiler and Compile-Tools<\/li>\n\n\n\n<li><em>autoconf<\/em>: Required for building from GIT.<\/li>\n\n\n\n<li><em>automake<\/em>: Required for building from GIT.<\/li>\n\n\n\n<li><em>libtool<\/em>: shared library access for CGMiner<\/li>\n\n\n\n<li><em>pkg-config<\/em>: Required for build and compilation<\/li>\n\n\n\n<li><em>libcurl4-openssl-dev<\/em>: http connectivity for CGMiner<\/li>\n\n\n\n<li><em>libudev-dev<\/em>: USB support for CGMiner<\/li>\n\n\n\n<li><em>libusb-1.0-0-dev<\/em>: USB support for CGMiner<\/li>\n\n\n\n<li><em>libncurses5-dev<\/em>: Text-based user interface for CGMiner<\/li>\n\n\n\n<li><em>zlib1g-dev<\/em>: Compression Library<\/li>\n\n\n\n<li><em>git<\/em>: source code repository<\/li>\n<\/ul>\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install -y build-essential autoconf automake libtool pkg-config libcurl4-openssl-dev libudev-dev libusb-1.0-0-dev libncurses5-dev zlib1g-dev git<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\" id=\"h-build\">Build<\/h3>\n\n<p>Now clone the CGMiner branch from Kano\u2019s GIT repository:<\/p>\n\n<pre class=\"wp-block-code\"><code>mkdir -p mining\/compaca1; cd mining\/compaca1\ngit clone https:\/\/github.com\/kanoi\/cgminer.git\ncd cgminer<\/code><\/pre>\n\n<p>Then compile the cgminer binary (may take a few minutes depending on the hardware used):<\/p>\n\n<pre class=\"wp-block-code\"><code>CFLAGS=\"-O2 -march=native -fcommon\" .\/autogen.sh --enable-gekko --enable-icarus\nmake<\/code><\/pre>\n\n<p>Finally, install OpenJDK to use the Java API:<\/p>\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install -y openjdk-8-jre-headless<\/code><\/pre>\n\n<p>If you want to install CGMiner as a command system-wide (without having to switch to the build folder every time), add:<\/p>\n\n<pre class=\"wp-block-code\"><code>sudo make install<\/code><\/pre>\n\n<p>After that, 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>or if you have CGMiner installed system-wide (executable from any folder):<\/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 A1 BM1362 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-compaca1-freq 300 --gekko-compaca1-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-zubehor\">Accessories<\/h3>\n\n<p>Der Miner ben\u00f6tigt insbesondere zum Betrieb mit einem Raspberry Pi einen USB Hub mit aktiver Stromversorgung, der in der Lage ist, mindestens 3 A pro USB Port zur Verf\u00fcgung zu stellen. Gute Erfahrungen haben wir mit USB 2.0 Ger\u00e4ten von Anker und Orico gemacht. Unser 7-Port USB Hub verf\u00fcgt \u00fcber selbstr\u00fcckstellende Sicherungen an jedem Port und kann bis zu 6 Ampere pro Port zur Verf\u00fcgung stellen.<\/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 Linux, I recommend the following operating system versions Note: As of July 2024, the latest version of the Raspberry PI OS based on Debian Bookworm has problems building and integrating the CGMiner API. I therefore recommend using the previous version based on Debian [&#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-23608","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 Linux\/ Raspberry Pi - bitshopper.de<\/title>\n<meta name=\"description\" content=\"Preparation, package dependencies, configuration, build and operation for the Compac A1 USB Stick Miner under Linux or Raspberry Pi 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-linux-raspberry-pi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Compac A1 Setup Linux\/ Raspberry Pi\" \/>\n<meta property=\"og:description\" content=\"Preparation, package dependencies, configuration, build and operation for the Compac A1 USB Stick Miner under Linux or Raspberry Pi OS\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-linux-raspberry-pi\/\" \/>\n<meta property=\"og:site_name\" content=\"bitshopper.de\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-02T12:58:26+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-linux-raspberry-pi\\\/\",\"url\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/support\\\/instructions\\\/compac-a1\\\/compac-a1-setup-linux-raspberry-pi\\\/\",\"name\":\"Compac A1 Setup Linux\\\/ Raspberry Pi - bitshopper.de\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/#website\"},\"datePublished\":\"2024-08-02T12:58:24+00:00\",\"dateModified\":\"2024-08-02T12:58:26+00:00\",\"description\":\"Preparation, package dependencies, configuration, build and operation for the Compac A1 USB Stick Miner under Linux or Raspberry Pi OS\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/support\\\/instructions\\\/compac-a1\\\/compac-a1-setup-linux-raspberry-pi\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/support\\\/instructions\\\/compac-a1\\\/compac-a1-setup-linux-raspberry-pi\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bitshopper.de\\\/en\\\/support\\\/instructions\\\/compac-a1\\\/compac-a1-setup-linux-raspberry-pi\\\/#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 Linux\\\/ Raspberry Pi\"}]},{\"@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 Linux\/ Raspberry Pi - bitshopper.de","description":"Preparation, package dependencies, configuration, build and operation for the Compac A1 USB Stick Miner under Linux or Raspberry Pi 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-linux-raspberry-pi\/","og_locale":"en_US","og_type":"article","og_title":"Compac A1 Setup Linux\/ Raspberry Pi","og_description":"Preparation, package dependencies, configuration, build and operation for the Compac A1 USB Stick Miner under Linux or Raspberry Pi OS","og_url":"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-linux-raspberry-pi\/","og_site_name":"bitshopper.de","article_modified_time":"2024-08-02T12:58:26+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-linux-raspberry-pi\/","url":"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-linux-raspberry-pi\/","name":"Compac A1 Setup Linux\/ Raspberry Pi - bitshopper.de","isPartOf":{"@id":"https:\/\/www.bitshopper.de\/en\/#website"},"datePublished":"2024-08-02T12:58:24+00:00","dateModified":"2024-08-02T12:58:26+00:00","description":"Preparation, package dependencies, configuration, build and operation for the Compac A1 USB Stick Miner under Linux or Raspberry Pi OS","breadcrumb":{"@id":"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-linux-raspberry-pi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-linux-raspberry-pi\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bitshopper.de\/en\/support\/instructions\/compac-a1\/compac-a1-setup-linux-raspberry-pi\/#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 Linux\/ Raspberry Pi"}]},{"@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\/23608","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=23608"}],"version-history":[{"count":0,"href":"https:\/\/www.bitshopper.de\/en\/wp-json\/wp\/v2\/pages\/23608\/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=23608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}