无矿机情况下使用树莓派CPU挖矿

最近挖矿很火热,就利用树莓派cpu挖矿试试,做个蛋疼的实验。虽然知道会惨不忍睹,但也就是玩玩。有兴趣的,可以尝试下。

1.安装好依赖

sudo apt-get update sudo apt-get install libusb-1.0-0-dev libusb-1.0-0 libcurl4-openssl-dev libncurses5-dev libudev-dev

2.安装挖矿工具cgminer

wget http://ck.kolivas.org/apps/cgminer/cgminer-2.11.4.tar.bz2 tar -jxvf /boot/cgminer-2.11.4.tar.bz2 cd cgminer-2.11.4 sudo ./configure –enable-cpumining sudo make

上面操作正确的话,安装好cgminer之后,可能会出现以下内容:

———————————————————————— cgminer 2.11.4 ———————————————————————— Configuration Options Summary: curses.TUI………..: FOUND: -lncurses OpenCL……………: NOT FOUND. GPU mining support DISABLED scrypt……………: Disabled (needs OpenCL) ADL………………: SDK NOT found, GPU monitoring support DISABLED BitForce.FPGAs…….: Disabled Icarus.FPGAs………: Disabled ModMiner.FPGAs…….: Disabled Ztex.FPGAs………..: Disabled CPU Mining………..: Enabled ASM.(for CPU mining).: false Compilation…………: make (or gmake) CPPFLAGS………….: CFLAGS……………: -g -O2 LDFLAGS…………..: -lpthread LDADD…………….: -lcurl -ljansson -lpthread -lm Installation………..: make install (as root if needed, with ‘su’ or ‘sudo’) prefix……………: /usr/local

3.启动cgmienr

进入安装目录,输入以下命令:

./cgminer

根据提示,输入矿池的Url,矿工的Username和Password即可。