cgminer for ASIC USB Stickminer with Minera

The purpose of this article is to setup an ASIC USB Stickminer on a Raspberry Pi. In this case the GekkoScience 2Pac BM1384

General preparation

Package Installation

Git preparation und code cloning

if using Minera:

otherwise use home folder


Example for GekkoScience 2Pac BM1384

Copy to Minera

see article …

Setup Minera on Raspberry

Setup a web server with PHP installed

Setup Minera



EDIMAX EW-7811UN on Raspberry

check usb hardware detection

Sample output:

the EDIMAX EW-7811UN uses the driver rtl8192cu

check network devices

check power management mode

On some chipsets the power saving mode is enabled by default. This means that the adapter turns off the network connection when inactive. Let’s check:

Sample output:

disable rtl8192cu power management mode

When using the driver rtl8192cu you can create a configuration file for the driver with the editor of your choice e.g.

Add the following content

The Raspberry Pi should be restarted for the shutdown to take effect.

configure network device

Edit the network device file with the editor of your choice e.g.



restart network

Check if the device got an ip address

To display information about wlan0 wireless interface

Resilio Sync on Raspberry Pi

install resilio sync on raspberry pi (raspian)


Execute the extracted file

That’s it! Resilio is up and running.


!!! Current Problems: !!!

Add repository

Add public key

Install Sync


You can access the web GUI via

edit config file

Additional changes of the general configuration can be done here:


Enable sync service automatic startup as user rslsync:

where (command) can be start, stop, enable, disable, status

USB drive on Raspberry Pi

package requirements

check disk partitions

save UUID of the disk you want to add

mounting disk


Add line to

with the editor of your choice:

  • ext4
  • HFS+
  • exFAT
  • NTFS
  • FAT32

when you are done editing perform a

Mount HFS+ on Raspberry Pi

read and write to hfs+ formatted disks

package requirements

display hard drive partitions information

testing hfs+ disk

mounting disk


When done

umount the drive


add line to /etc/fstab with editor of your choice.

Netatalk on Raspberry Pi

netatalk installation on debian / rasbian (raspberry pi)

required packages


  • issue
    configure: error: cracklib not found!

    The cracklib headers are missing

  • issue
    configure: error: Berkeley DB library required but not found!

    Berkeley Database Libraries [development] is required

  • issue
    configure: error: GSSAPI installation not found, headers missing

check services

sample output

sample output

Raspberry Pi Openmediavault Error 502 Bad Gateway

Error Fehler 502 Bad Gateway

Installing the php5-pam update is the problem. It only works on true armhf systems.
Login via ssh as root and try: