Skip to content

Instantly share code, notes, and snippets.

@awilliams
Created January 4, 2015 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awilliams/0d3ee1e517fb4a7cfc14 to your computer and use it in GitHub Desktop.
Save awilliams/0d3ee1e517fb4a7cfc14 to your computer and use it in GitHub Desktop.
Raspberry Pi setup - for my own records mostly

This is available at: gist

Raspberry Pi

Creating image

  • Download image from http://www.raspberrypi.org/downloads/
  • Check where the SD card is mounted df -h
  • Unmount SD card diskutil unmountDisk /dev/disk2
  • Write image to card. BE SURE DISK NUMBER IS CORRECT sudo dd bs=1m if=2014-12-24-wheezy-raspbian.img of=/dev/rdisk2
  • Eject card sudo diskutil eject /dev/rdisk2

Connecting

  • Add to ~/.ssh/config

    Host pi Hostname 192.168.1.22 User pi StrictHostKeyChecking no

  • password = raspberry ssh pi

  • ssh-copy-id pi

Setup

For raspbian

  • Run sudo raspi-config
    • Expand filesystem
    • Set locales
    • Disable GUI
  • Enable non-free source in /etc/apt/sources.list
  • sudo apt-get update && sudo apt-get -y --force-yes upgrade && sudo apt-get -y install firmware-realtek

For minimal image http://www.linuxsystems.it/raspbian-wheezy-armhf-raspberry-pi-minimal-image/

  • dpkg-reconfigure tzdata
  • dpkg-reconfigure console-data
  • dpkg-reconfigure locales
  • sudo apt-get update && sudo apt-get -y upgrade

Resize SD Card

See here for instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment