alexba.in

A technical blog about open source hardware and software.

RaspberryPi Quickstart

| Comments

I recently had the opportunity to purchase and setup a second RaspberryPi system. Here’s a very brief shopping list and collection of links to get your own RaspberryPi system setup.

Parts List

Setting up the SD card

  1. Download the latest Rasbian linux image.
  2. Setup the SD card by following the RPi Easy SD Card Setup guide.

Booting it all up

Plug everything in, boot up the system. If you’re planning to SSH into the RaspberryPi via Ethernet (instead of using a keyboard/mouse/monitor) you’ll have to log into your router and determine what it’s IP address is.

The default RaspberryPi login is username pi with password raspberry. You’ll probably want to change this.

Expanding the root partition

Update: April 12th 2013: Thanks to Conky (and Kevin) for suggesting this.

Once your RaspberryPi boots up, you’ll want to adjust the root partition to take up the entire SD card. This will help prevent errors about the file system being full once you start updating packages and installing new packages:

# Open the RaspiConfig tool:
sudo raspi-config

# Navigate to the "expand_rootfs" option and select it
# Quit out of the raspi-config screen

# Reboot the system:
sudo shutdown -r now

Setting up the WiFi

Assuming everything booted up okay, you’re ready to setup the wireless. To setup the wireless card to connect to your WPA/WPA2 secured wireless network, edit /etc/network/interfaces and add this to the bottom of the file. You may need to remove some existing configuration for wlan0.

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
    wpa-ssid YOUR_SSID
    wpa-psk YOUR_PASSWORD

Save this file, and run:

sudo ifdown wlan0
sudo ifup wlan0

Run ifconfig and you should see that wlan0 has an IP address.

Setting up NTP

Accurate time is useful.

sudo apt-get install ntpdate
sudo ntpdate -u ntp.ubuntu.com

Updating Raspbian OS

After everything is setup you’ll probably want to update Raspbian to the latest packages and version.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Updating the RaspberryPi’s firmware

To update the firmware to the latest version, we’ll use Hexxeh’s rpi-update script.

sudo apt-get install git-core
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
sudo rpi-update

You’re done!

At this point you should be completely setup and operational.

If you had any troubles with this please let me know in the comments.

More reading

Here are some resources to do further reading:

Comments