you will need a powered USB hub an Erupter [or several] a good power supply for the USB hub a raspberry pi and a network lead, raspbian works fine
1) make sure your RPi boots an you are happy with it
2) update everything
sudo apt-get update && sudo apt-get upgrade -y
install some build utilities
sudo apt-get install build-essential libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev
get the latest cgminer [3.3.4 as of now] and build it
Code: Select all
wget http://ck.kolivas.org/apps/cgminer/3.3/cgminer-3.3.4.tar.bz2
tar xvf cgminer-3.3.4.tar.bz2
cd cgminer-3.3.4/
./configure --enable-icarus
make
sudo make install
plug the miner in
run cgminer with your pool info i.e.
sudo cgminer -o pool:3333 -u name -p pass
wait a small bit while it sorts itself out then
[o]ptions
[w]rite config
just choose the default file [//.cgminer/cgminer.conf]
[q]uit
check that the conf file looks ok
run it again to test
sudo cgminer
[q]uit
edit /etc/inittab
find the getty's and change one of them eg 6 or add another [but not 7]
e.g. for 3 find
3:23:respawn:/sbin/getty 38400 tty3
and change that to be
3:23:respawn:/usr/local/bin/cgminer
this means when you reboot it will start mining on alt-f3 terminal
you can test this by
sudo kill -HUP 1
to restart init
alt-f3
login file you have a prompt then logout and the miner will start
the next thing you should probably do is add a watchdog to see if the system hangs or network goes away and restart the RPI - but that is another task.
job done.