Setting up a Raspberry Pi
Have you heard of the Raspberry Pi? Maybe you have, maybe you haven’t. Either way I have and I think they are rather cool device. I have a set of instructions that I like to go through in order to get my devices up and running.
After you get your machine up and running, you will see raspiconfig come up. Make sure you enable the sshd service and expand the image to consume all the space on the flash drive.
Then reboot the device.
sudo nano /etc/apt/sources.list
Then add the following line:
deb http://binaries.erlang-solutions.com/debian wheezy contrib
Once that is done:
wget -O - http://binaries.erlang-solutions.com/debian/erlang_solutions.asc | sudo apt-key add -
Enabling I2C and SPI
If you would like to communicate with other ICs, then you will probably need to use either I2C or SPI, so lets enable them right off the bat.
sudo nano /etc/modprobe.d/raspi-blacklist.conf
While you are in there, you should make the file look like:
#blacklist spi-bcm2708 #blacklist i2c-bcm2708
Then edit the available modules:
sudo nano /etc/modules
And make them look like:
You’ll need to add your user account to a group to use i2c devices.
sudo adduser pi i2c
Updating and Install Software
Now for the fun and/or boring part.
sudo apt-get update && sudo apt-get -yq dist-upgrade && sudo apt-get -yq install git-core build-essential i2c-tools python-smbus
If you want to install Erlang:
sudo apt-get install -yq esl-erlang
Of course you can add any other packages to the list depending on what you want to do.
To make sure everything is okay, especially the new devices/modules, you should reboot the system.
Here is the source material for more information and details.