User Tools

Site Tools


setupraspi

How-to setup a Raspberry PI with Raspbian

This how-to contains a step by step description about the initial setup of a Raspberry PI using the Raspbian OS until it is accessible via SSH console and screen/keyboard can be disconnected.

Requirements

Needed Hardware

Check all your hardware with the compatibility list!

  • Raspberry PI
  • SD-card with at least 4Gb (recommendation: at least 8Gb / class 6)
  • Power supply with USB output with at least 1A (recommendation: 2A, because additional hardware like USB WLAN, Raspberry PI cam, etc. needs extra power)
  • USB cable (A male –> micro B male)
  • Ethernet cable (model B only)
  • Simple USB keyboard (only needed for the initial setup)
  • Screen (either via HDMI or composite video, only needed for the initial setup)
  • HDMI or compisite video cable (only needed for the initial setup)

Needed Software

Preparation

SD-Card

Windows

  • Extract the Raspbian image
  • Extract Win32 Disk Imager
  • Insert SD-card into your PC
  • Start Win32 Disk Imager
  • Select the image file (*.img)
  • Select the destination device (SD-card)
  • Click “Write” (Attention: This will overwrite all exsiting data on the SD-card!)

Win32 Disk Imager

Other OS

Raspberry PI

  • Insert SD-card
  • Connect USB keyboard
  • Connect screen (via HDMI or composite video)
  • Connect Ethernet (model B only)
  • Connect power (“switch” Raspberry PI on)

Raspberry PI Software Configuration Tool

On the first boot the configuration tool will open.

Raspberry PI Software Configuration Tool

At any given point is is possible to open the config again with this command:

sudo raspi-config

Expand Filesystem

Execute this command to use all available space on the SD-card.

Change User Password

With this command it is possible to change the default password “raspberry” of the user “pi”. If the Raspberry PI will be used for test purposes only it is OK to keep the default password. But if the Raspberry PI is used e.g. as a web cam server it is highly recommended to change the password so that nobody else can access the data on it.

Internationalisation Options

Internationalisation Options

Change Locale

Possibility to add more languages and set the default language for the Raspberry PI (e.g. de_DE@euro ISO-8859-15 for German)

Change Timezone

Possibility to select the timezone where the Raspberry PI is located (e.g. Europe - Berlin).

Change Keyboard Layout

Possibility to select the keyboard layout and the keyboard language.
Hint: On the first view only English can be selected. All other languages are available by selecting the menu item “Other”.

Advanced Options

Advanced Options

Hostname

By default the hostname is “raspberrypi”. It makes sense to give it another name, especially when you want to use several Raspberry PIs in the future.

SSH

It is important to activate SSH. This makes it possible to disconnect the screen later and have access to the Raspberry PI with a SSH client like PuTTY.

Network Setup

Finally it is important to setup a network connection via LAN or WLAN so that the remote access via SSH is possible.

SSH Connection

A very good SSH client is PuTTY. Just type in the hostname (or IP address) and click on “Open”. PuTTY Type in the login name (“pi”) and the password. Raspberry PI console If this screen is visible everything went fine. Now the screen and keyboard can the disconnected and the Raspberry PI is ready for its desitiny.

setupraspi.txt · Last modified: 09.10.2013 19:20 by derk