Skip to content

Latest commit

 

History

History
86 lines (60 loc) · 2.23 KB

install_miner.md

File metadata and controls

86 lines (60 loc) · 2.23 KB

Install mining software

💡 The Raspberry Pi's power and internet must be connected.

💡 Connect USB miner or switch on USB hub.

⚠️ The path information does not have to apply to your system. Before installing, it is advisable to briefly look at 'relative' and 'absolute' paths/path information in Linux (see also 💡 Helpful commands for easier operation under Linux/Raspberry Pi).

In order to be able to access the Raspberry Pi from your own computer via SSH, the computer must be on the same network. If this is the case, open the terminal. To do this, simply search for the “Terminal” program on your PC. It then starts in the terminal:

Access the Raspberry Pi via SSH:

ssh solominer@miner.local

solominer is the user name, miner is the host name (alternatively use the IP address of the Raspberry Pi as the host name) Enter yes and press ENTER -> Enter password and press ENTER (the terminal does not provide any feedback when entering the password)

Perform updates:

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

Install packages:

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 the CGMiner branch can be cloned from GIT:

mkdir -p mining; cd mining 
git clone https://github.com/kanoi/cgminer.git
cd cgminer

After successful cloning from GIT, the CGMiner can now be compiled:

./autogen.sh
CFLAGS="-O2 -Wall -march=native -fcommon" ./configure --enable-gekko
sudo make

(At this point, restart the Raspberry Pi with sudo reboot or, for a Raspiblitz installation, sudo restart if the next step does not work)

Now the progress can be tested as follows:

sudo ./cgminer -n

The name of the miner should then appear in the answer. Here's an example:


Manufacteur: 'GekkoScience'
Product: 'NewPac Bitcoin Miner'

💡 Now everything is installed and mining can begin!