Спасибо
cp /usr/local/bin/cgminer /home/pi/cgminer.bak
rm /usr/local/bin/cgminer
reboot
cd ~pi
sudo apt-get install uthash-dev libjansson-dev screen
git clone https://github.com/needbmw/bfgminer
cd bfgminer
./autogen.sh
./configure --enable-bitfury
make
crontab -e
убрать строку
*/1 * * * * pgrep cgminer ; [ $? -ne 0 ] && sudo service cgminer restart
nano /etc/rc.local
вставить строку перед exit 0 (/home/pi/cgminer.conf - файл настроек)
/usr/bin/screen -dmS bfgminer bash -c '/home/pi/bfgminer/bfgminer -c /home/pi/cgminer.conf --queue 200; exec bash'
cp /.cgminer/cgminer.conf /home/pi/cgminer.conf
cd /var/www/
mv metabank metabank.original
git clone https://github.com/enikesha/django-metabank metabank
metabank/manage.py collectstatic -l --noinput
service metabank restart
reboot