I am just a hobbyist when it comes to mining. There was not a complete tutorial on how to setup the GekkoScience 2-Pac to mine coins. I gathered the info and compiled this tutorial from watching videos and reading from various forums and websites. All credits to the OPs are linked at the bottom of this tutorial. If you need help after completing this tutorial, comment below.
I gather you have a Raspberry Pi (with Raspbian on a MicroSD) and a GekkoScience 2-Pac. If you have more than 2, it's best if you use a powered USB hub.
Here are the instructions step by step. You can either use a connected keyboard and mouse with the RPI or you can enable ssh.
Optional:
Let's Get Started:
sudo apt-get install apache2 -y
sudo apt-get install php libapache2-mod-php -y
sudo apt-get install redis-server git screen php7.0-cli php7.0-curl -y
cd /var/www/html
sudo git clone https://github.com/getminera/minera
cd minera
sudo ./install_minera.sh
sudo apt-get update
sudo upgrade -y
sudo apt-get install -y build-essential git libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev screen libtool automake pkg-config libjansson-dev
sudo mkdir -p ~/git/vthoang; cd ~/git/vthoang
sudo git clone https://github.com/vthoang/cgminer.git
cd cgminer
sudo CFLAGS="-O2" ./autogen.sh --enable-gekko
sudo make -j 2
sudo cp cgminer /var/www/html/minera/minera-bin/custom/cgminer-vthoang
(RPI IP Address)/minera
If everything was set correctly, the light on your 2-Pac should start blinking and you can see what your 2-Pac is mining by Playing the Log on the Dashboard or view your worker hashrate on the pool website.
***NOTE*** lighttpd will try to take over and use Port 80 after installing Minera. Make sure you run the following in terminal to remove lighttpd before rebooting:
sudo apt-get remove lighttpd
Bonus:
You can overclock your 2-Pac. A powered USB Hub is required. Be careful because the 2-Pac chips will get very hot and you must have an adequate heatsink and/or fan. The following command can be used to overclock the 2-Pac. (You can increase the frequency of the 2-Pac from 50 to 500 in increments of 25.)
--gekko-2pac-freq 150
I overclock mine to 175 and only use a USB fan pointed at them. I assume no liability for damages if your 2-Pac overheats!
Be sure to Like and Share this tutorial by the links below and comment if you need any further assistance.
YouTube - GekkoScience 2Pac 11gh/s+ Raspberry PI 3b video by Brian Schott
RaspberryPi.org - Download Raspbian for Raspberry Pi
RaspberryPi.org - Setting up an Apache Web Server on a Raspberry Pi - Raspberry Pi Documentation
Minera Github - getminera/minera: Minera is a web interface to monitor and manage mining devices
Forked cgminer Github - vthoang/cgminer: ASIC and FPGA miner in c for bitcoin