For this project, we make primary use of the Raspberry Pi model 3. In order to have a consistant method and starting point, please use this cheat sheet to setup and configure your pi.
https://www.raspberrypi.org/downloads/raspbian/
Use the lite version: 2017-04-10-raspbian-jessie-lite.zip and unzip it of course
You'll be using a mini-sd card, and you'll insert that into your mac using either a SD card adapter, or a USB adapter
Follow these instructions: https://www.raspberrypi.org/documentation/installation/installing-images/mac.md
Which are roughly:
diskutil list
diskutil unmountDisk /dev/disk2
sudo dd bs=1m if=2017-04-10-raspbian-jessie-lite.img of=/dev/rdisk2
After the drive is finished with the dd, you'll see a drive called "boot" show up on your mac. In order to enable SSH by default,
you need to copy a small, empty file called ssh onto the disk, or touch to make an empty file. If you forget this,
you'll have to hook the PI to a keyboard and a monitor which is really annoying!
Either use the UI, or execute diskutil unmountDisk /dev/disk2 again
sudo vi /etc/motdbecause the default motd is ugly and it's great to know which pisudo apt-get update ; sudo apt-get upgradesudo raspi-config-- Change the password to something likeparanoia-- Change the hostname to something you like -- Set the boot to headless / command prompt -- Localization: set the wifi country to US, change the character set to en.US-UTF8 and remove the UK thing -- Interfacing: enable I2C but none of the others, turn on SSH if you are paranoid -- Advanced: expand the file system, set the memory split to 16M
sudo apt-get install git
ssh-keygen
cat .ssh/id_rsa.pub
Copy this into Github in the standard way.
git clone git@github.com:bbulkow/MagnusFlora