Reconfig old Pi B+

After a destroyed SD card I need to rebuild the Pi onto a new card - Time to start again and do it properly unlike the previous build!

- Raspbian (not from NOOBS) installed on the SD card
- Into the Pi and boot
- Modifications:
o Use raspi-config to Set ssh on and enable SPI
o Make /boot readonly
o Create /var/log as 2M tfmps (into /etc/fstab)
- Update distro: apt-get update; apt-get upgrade
- SPI/nRF24L01 related parts (see: https://tmrh20.github.io/RF24/RPi.html)
o git client required - sudo apt-get install git
o cmake required - sudo apt-get install cmake
o bcm2835 library from here: http://www.airspayce.com/mikem/bcm2835/
o mraa as described on tmrh20 site
o
- python related
o sudo apt-get install python-pip /// from here: python-dev build-essential
- Back to RF24 python:
o sudo apt-get install python-dev libboost-python-dev
o and for python3: sudo apt-get install python3-dev libboost-python3-dev
o sudo apt-get install python-setuptools python3-setuptools
o ./setup.py build (in the RF24/pyRF24 directory
o sudo ./setup.py install
-Remove swap (see: http://ideaheap.com/2013/07/stopping-sd-card-corruption-on-a-raspberry-pi/ )
(dont do it earlier -- swap is required for the above build)
o sudo dphys-swapfile swapoff
o sudo dphys-swapfile uninstall
o sudo update-rc.d dphys-swapfile remove
mqtt client
o sudo pip install paho-mqtt

(wouldn't it be useful if all of this lot was just apt-get'able....)