Configuring your Raspberry Pi

Once you installed Raspbian Jessie, there is a number of settings you should make before you start working with your Raspberry Pi.

open_raspberry_configuration.png
Raspberry Configuration
Duration 10 minutes
Audience Beginners and professionals.
Date Created on 2016-10-05, updated on 2016-10-05
Authors Boris Crismancich
Olaf Hahn

Contents

  1. Expanding the filesystem on the SD card
  2. Configuring the host name
  3. Change the default Password for user Pi
  4. Confiugre Interfaces
    1. Enable Camera
      Enable SSH
      Enable I2C
      Localization

Expanding the filesystem on the SD card

raspberry_sd_expand_file_system
Expand Filesystem

If you installed the OS Image on your SD card, the image may be smaller than the SD card. In this case not all storage on your SD card is used. Click on  ‚Expand Filessystem‘ to make all storage available to the OS. This resizes the raspbian Linux partition to the full size of your SD card.

Configuring the host name

The host name is the visible name for this Pi on a network. You can use it instead of the IP in order to address your Pi as long as you make sure that the same hostname is not used by more than one device.

Please keep in mind that in future you might want wo use more than one raspberry. The host name is an easy way to distinguish multiple devices on the network. It proved helpful to use a host name that provides a hint on what the device is going to be used for. For example ‚raspberry-webcam‘ or ‚raspberry-weather-station‘. You might also use numbers like ‚raspberry-webcam-1‘ if you intend to use more than one of a kind or use persons names like ‚raspberry-testsystem-boris‘ if you’re working in a team where it is helpful to know who’s the the owner of a device.

Change the default Password for user Pi

raspberry_pi_change_password
Change Password

The default password for the user Pi is ‚raspberry‘. The user Pi is the admin user and has root privileges. As the password is publicly known, you are strongly advised to change it. Use the ‚Change Password‘ button on the system tap do do so.

Important: Even if you intend to use your raspberry pi only internally, keep in mind that guests in your network would have full access to it. Or maybe later on you might want to take the device to a presentation and connect it to a public network.

If you intend to make your Pi available to the internet, keep in mind that not only physical persons attack systems. Most attacks are cast out by malicious scripts, searching whole networks for devices with weak protection and default passwords.

Configure Interfaces

raspberry_pi_configure_interfaces
Interface Configuration

Enable Camera

raspberry_pi_camera

You have to enable this if you use a Raspberry Pi camera. Please note that you do not need to activate this if you use an external USB camera.

Enable SSH

raspberry_ssh_login
Remote login to Pi via ssh from a mac

The secure shell network Protocol allows you to securely connect to your pi from a remote computer using a command shell (linux) the terminal (mac) or an ssh client like Putty on (Windows). Advanced configuration and most development on Raspberry Pi is done using the command line interface via SSH. Enable SSH if you want to use it.

Enable I2C

raspberry_pi_i2c_example
Example I2C sensor connection

I²C is an interface used by the pi to communicate with external sensors or actors. Activate this if you intend to work with sensors or sensor boards like the GrovePi or to connect your Pi with an Arduino.

Localization

raspberry_pi_localization_settings
Localization Settings

On this dialog you can configure your locale, timezone and keyboard settings.

Once you finished the configuration and saved the dialog, you will be prompted to reboot you Raspberry Pi.

I hope this tutorial was helpful for you. If you got stuck or found an error, please leave me a comment so that I can improve the tutorial accordingly. Thank you.

Diesen Artikel teilen