- install raspbian

  > on another machine

    wget http://downloads.raspberrypi.org/raspbian/images/raspbian-2014-01-09/2014-01-07-wheezy-raspbian.zip
    unzip 2014-01-07-wheezy-raspbian.zip
    dd bs=4M if=2014-01-07-wheezy-raspbian.img of=/dev/mmcblk0
    sync


- get networking up

  > `raspi-config` is started automatically
  >   - expand filesystem
  >   - enable ssh server
  >   - change user password => [in secpass]
  >   - boot to console
  >   - hostname => barleymon / barleymon-dev
  >   - audio: force 3.5mm jack

  startx

  > launch 'wifi config' / wpa-gui (in launch menu)
  >   - runningAuNaturel, etc.

  reboot


- update software

  > as root:

    apt-get update
    apt-get upgrade

    apt-get install python-pip python-yaml python3-yaml \
      vorbis-tools
    pip install raspi-gpioctl aadict


# TODO:
#   - https://www.baldengineer.com/raspberry-pi-gui-tutorial.html
#   - http://ananddrs.com/2013/07/10/building-and-installing-wxpython-2-9-4-0-on-raspberry-pi-raspbian/
#   - http://wxpython.org/Phoenix/docs/html/html2.WebView.html
#   - http://wxpython-users.1045709.n5.nabble.com/Is-there-a-way-for-wxpython-to-detect-javascript-mouse-events-in-wx-html2-WebView-td5720107.html


- to get ssh working

  mkdir /home/pi/.ssh
  echo "{SSHPUBKEY}" > /home/pi/.ssh/authorized_keys
  chown -R pi:pi /home/pi/.ssh
  chmod 700 /home/pi/.ssh
  chmod 600 /home/pi/.ssh/authorized_keys
