Note: this guide is only necessary for administrators setting up a fresh software install for the Raspberry Pi. This is only required if setting up a new SD card image based on a new Raspbian distribution. The course materials for the Raspberry Pi add various packages and a puppet-based update system on top of the stock Raspbian.
These instructions are rough and should be updated as the system evolves.
- Follow the standard directions to download and boot a Raspbian image. See http://www.raspberrypi.org/downloads/ and http://www.raspberrypi.org/help/
- The Pi needs to be connected to a monitor and keyboard for the very first boot in order to respond to some one-time initialization prompts. After that, it can be operated solely as an ethernet device if desired.
- The Pi will need to be brought up to the point where the internet is accessible, either plugged into a local network, or sharing the network via another computer.
- The general instructions for the courseware update system install are here: https://github.com/cmuphyscomp/pi_puppet/blob/master/README.md
- Update the package system index and do a general upgrade of all packages:
sudo apt-get update
sudo apt-get upgrade
- The courseware update system uses the ‘puppet’ package. To install:
sudo apt-get install puppet
- To install the update system:
sudo git clone https://github.com/cmuphyscomp/pi_puppet
- Run the update script once in-place for initial configuration:
sudo python /etc/puppet/modules/pi_puppet/files/bin/pi_update
sudo apt-get clean
- After the initial configuration, full updates can be performed as follows:
- The /opt/cmuphyscomp folder contains a package of source code and binaries. The source code is checked out from public Internet sites, some binaries are compiled on the Pi itself, some binaries are downloaded. To recreate or update this folder, run the following script:
- Note that the previous setup script also creates files in /usr/local. This means that the best way to duplicate the system is to take a full image of the SD card; the contents of /opt/cmuphyscomp are not quite enough.
- The /opt/openFrameworks folder contains an openFrameworks installation for writing C++ graphics and vision programs and is intended for advanced users. To recreate or update this folder, run the following script, which can take an hour or more:
sudo apt-get clean