Setup with the USB bitcoin miner to the USB powered hub with fan. USB hub must be at lest 1. Also the Rpi heatsink and fan. raspberry pi 2 mining bitcoin without burning the core processor.
Install fresh Raspian on your SD card with a minimum of 8gb. Install Putty software and get into the terminal. As for all Linux machines, update and upgrade. Use this code to use to install independencies. Paste this code in every time you need to reboot the raspberry pi.