Step 2: Setting up the Pi
1) In LXTerminal, run the following:
The SD partition should be expanded to fit the entire SD card, and the boot_behavior option should be set to boot to the desktop on startup. Also, enabling the SSH server will let us work on the Pi on a separate computer, without a keyboard and mouse plugged into the Pi.
2) Next, follow the instructions here to stop the OS from writing to the UART, which we will use to drive the LCD:
3) Adding Serial Communication to Python:
The OS comes with Python installed. We need to add the serial module in order to drive our LCD module. Run the following in LXTerminal:
sudo apt-get install python-serial
Documentation for the Pyserial module can be found at: http://pyserial.sourceforge.net/
4) Enhancing BASH's GPIO Capabilities:
Now, in order to access the GPIO pins in a more user-friendly manner, we will install the wiringPi library. Instructions are available here: https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/
However, to simplify these instructions, we only need to run:
sudo apt-get install git-core
git clone git://drogon.net/wiringPi
git pull origin
Now simply wait for the build to finish, and the operating system is ready to install Pianobar, an open-source program running Pandora Radio.
Important warning: All of the work in this Instructable assumes you are working as the "pi" user. If not, the file locations used later on will need to be altered. Either work as the "pi" user, or be prepared to alter some scripts later.