2Pac Setup Linux/ Raspberry Pi

2Pac Inbetriebnahme Linux/ Raspberry PI

Preparation, Package Dependencies, Configuration and Build for Raspbian – Kernel version: 4.4 (Debian 8.7.1) or higher of for Ubuntu 16.04.1 LTS or higher


This installation guide describes setup, configuration and build based on a freshly installed Raspbian (Debian) or Ubuntu installation. You will need sudo rights. It’s not necessary to use root.

First steps: update and upgrade of system and reqired packages:

sudo apt-get update
sudo apt-get upgrade -y

The following packages are mandatory to properly build CGMiner:

  • build-essential: Compiler and Compile Tools
  • git: source code repository
  • autoconf: Used to build from GIT
  • automake: Used to build from GIT
  • libtool: provides shared library access for CGMiner
  • pkg-config: Used for build and compile
  • libcurl4-openssl-dev: http connectivity for CGMiner
  • libudev-dev: USB support for CGMiner
  • libusb-1.0-0-dev: USB support for CGMiner
  • libncurses5-dev: text base user interface for CGMiner
sudo apt-get install -y build-essential git autoconf automake libtool pkg-config libcurl4-openssl-dev libudev-dev libusb-1.0-0-dev libncurses5-dev

Now you can clone the GekkoScience CGMiner branch from GIT:

mkdir -p mining/2pac; cd mining/2pac
git clone https://github.com/vthoang/cgminer.git
cd cgminer

After successful cloning you can start to build CGMiner.

CFLAGS="-O2" ./autogen.sh --enable-gekko
make -j 2

The build command for Ubuntu 16.04.1 LTS (or higher) is slightly different:

CFLAGS="-O2 -march=native" ./autogen.sh --enable-gekko
make -j 2

Explanation notes: The build parameter –enable-gekko activates the GekkoScience drivers both for Compac (single ASIC) and 2Pac (dual ASIC).

Now test the freshly built binary:

./cgminer -n

This command returns a list of detected miners. You should see sth. like “2Pac BM1384 Bitcoin Miner”.


This USB Stick Miner requires a actively powered USB Hub which can independently provide 2 A for each USB port We have achieved good results with several USB 2.0 Hubs from Anker or Orico while Users reported several compatibility issues with USB 3.0 Hubs with Intel chipsets. For more details please check the following link on bitcointalk.org.

We recommend a quality USB fan for operating clock rates greater than 150 MHz. We achieved best results with Arctic Breeze Mobile 92 mm (quiet, performant, high-quality).


The following command will start up the CGMiner Software (example):

cd ~/mining/2pac/cgminer
./cgminer -o stratum+tcp://pool.ckpool.org:3333 -u 1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr -p x --suggest-diff 32 --gekko-2pac-freq 150

The Pool configuration which is used in the example above should be replaced by your own pool configuration data. Please contact your pool operator or check the pool setup guide for more details. The example above shows a Solo-Mining configuration in Con Kolivas’ Solo Mining pool.

The Clock Rate can be set with the following commandline parameter: gekko-2pac-freq. If you want to operate your Miner without active cooling, we recommend a Clock Rate up to 100 MHz max.

The mining performance depends on your Clock Rate and Core Voltage setup. You can calculate the average hash rate using the following formula:

  • Performance in GH = 0.11 * MHz
  • Example GH = 0.11 * 150 => Hashrate ~ 16,5 GH/s (+-15%).
  • The higher the hashrate, the bigger is the deviation from this average, caused by ASIC manufacturing tolerances.

Power consumption:


For enhanced support please visit the public support forum on bitcointalk.org or write us a e-mail.