# Adafruit's Raspberry Pi Lesson 2. First Time Configuration

## Overview

In the first lesson of this series, we showed you how to prepare an SD card containing an operating system for your Raspberry Pi. In this lesson, we will show you how to setup your Raspberry Pi the first time you boot it up.

![](https://cdn-learn.adafruit.com/assets/assets/000/002/858/medium800/learn_raspberry_pi_raspi-config_main.png?1396787925)

We do this using a tool called Raspi-Config that runs automatically the first time you boot your Raspberry Pi. This starts before the windowing system and so you have to use the cursor keys and Return key to navigate the menu system.  
  
It is a bit like adjusting the BIOS settings on a PC, once you have things right, you probably won't need it again. We will start with the options that are most important and then look at some of the other options that you may wish to configure.

# Adafruit's Raspberry Pi Lesson 2. First Time Configuration

## Using the Whole SD Card

This may seem a bit strange, but by default the Raspberry Pi only uses as much of the SD card as the operating system requires. This means that even though you might have used a large SD card, the operating system won't use it.

![](https://cdn-learn.adafruit.com/assets/assets/000/002/859/medium800/learn_raspberry_pi_raspi-config_expand_1.png?1396787946)

To fix this so that all the space on the SD card can be used, use up / down cursor keys to select the 'expand\_rootfs' menu option and hit return.  
  
Once you do that, there will be some screen flashing as a script is run and then you will see the following confirmation.

![](https://cdn-learn.adafruit.com/assets/assets/000/002/860/medium800/learn_raspberry_pi_raspi-config_expand_2.png?1396787961)

Press Return again to return to the main menu.

# Adafruit's Raspberry Pi Lesson 2. First Time Configuration

## Using the Whole Screen

Being designed to work with TVs, you may find that your Pi is only using the middle portion of the screen and there is a big unused area all round the screen.

![](https://cdn-learn.adafruit.com/assets/assets/000/002/861/medium800/learn_raspberry_pi_raspi-config_overscan1.png?1396787979)

This is not true of all TVs and monitors, but if it's happening for you then selecting the option to Disable Overscan may fix this for you.

![](https://cdn-learn.adafruit.com/assets/assets/000/002/862/medium800/learn_raspberry_pi_raspi-config_overscan2.png?1396787997)

Use the left and right cursor keys to make your selection and then hit Return.  
  
If after disabling overscan, you cannot see the left edge of the screen then see the section 'Running Raspi\_Config After Booting'.

# Adafruit's Raspberry Pi Lesson 2. First Time Configuration

## Changing Timezone

Skipping past a few options for a moment, the next thing that you almost certainly need to do is (unless you live in the GMT timezone) is to change the timezone.

![](https://cdn-learn.adafruit.com/assets/assets/000/002/863/medium800/learn_raspberry_pi_raspi-config_timezone1.png?1396788017)

From the options, first select the Geographic Area, then the Timezone within that area.

![](https://cdn-learn.adafruit.com/assets/assets/000/002/864/medium800/learn_raspberry_pi_raspi-config_timezone2.png?1396788037)

![](https://cdn-learn.adafruit.com/assets/assets/000/002/865/medium800/learn_raspberry_pi_raspi-config_timezone3.png?1396788054)

# Adafruit's Raspberry Pi Lesson 2. First Time Configuration

## Booting into Desktop

By default, when the Raspberry Pi boots, you just get a command line. No windows just a terminal where you can login and type commands.  
  
The final configuration that you definitely want to make, unless you don't like windowing environments is to change the boot behaviour so that it automatically starts the windowing system and logs you in.

![](https://cdn-learn.adafruit.com/assets/assets/000/002/866/medium800/learn_raspberry_pi_raspi-config_boot_1.png?1396788074)

Select the sensible option and hit Return.

![](https://cdn-learn.adafruit.com/assets/assets/000/002/867/medium800/learn_raspberry_pi_raspi-config_boot_2.png?1396788091)

# Adafruit's Raspberry Pi Lesson 2. First Time Configuration

## Other Options

The options described above are those which could pretty much be considered essential when running your Raspberry Pi for the first time. There are some other options listed that are worth describing briefly.

&nbsp;

- configure\_keyboard – as it implies allows you to chose from a long list of keyboard layouts.

- change\_pass – allows you to change the system password for the user 'pi' the default user on the system. By default, this password is 'raspberry' so those preoccupied with security may wish to change the password.

- change\_locale – For non-English speakers, you can select which locales should be available on the system and which should be the default for the operating system.

&nbsp;

&nbsp;

- memory\_split – allows you to adjust how much of the shared system memory is available for graphics and how much for the main processor. If you plan to run graphics hungry games, or video playback, then you may decide to alter these settings.

- ssh – in a later tutorial we will look at remote controlling your Pi from another computer using ssh. This option allows you to enable ssh so that you can do that.

&nbsp;

&nbsp;

- update – this option tries to find a newer version of Raspi\_Config and download it. It is possible that new options will be added to the system in the future, so you may wish to do this.

&nbsp;

&nbsp;

# Adafruit's Raspberry Pi Lesson 2. First Time Configuration

## Running raspi-config After Booting

You can run **raspi-config** any time you like, if you find that there are some settings that you need to make.

Click on the desktop icon 'LXTerminal' to open a terminal session.

![](https://cdn-learn.adafruit.com/assets/assets/000/002/868/medium800/learn_raspberry_pi_terminal.png?1396788119)

Then enter the following command and hit return:

```
sudo raspi-config
```

# Adafruit's Raspberry Pi Lesson 2. First Time Configuration

## Test & Configure

![](https://cdn-learn.adafruit.com/assets/assets/000/002/869/medium800/learn_raspberry_pi_reboot.png?1396788131)

Reboot your Pi – click the icon bottom right – and this time you should boot straight up into the windowing environment.

In the next tutorial, we will look at configuring WiFi and finding the IP address of your Pi.

[Click Here for the Next Lesson](http://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup)

## Featured Products

### Raspberry Pi 1 Model B Starter Pack - Includes a Raspberry Pi

[Raspberry Pi 1 Model B Starter Pack - Includes a Raspberry Pi](https://www.adafruit.com/product/1014)
You want to get hacking with your Pi fast, right? Get everything you need to start with the Adafruit Starter Pack for Raspberry Pi. It's the perfect accompaniment to your new Pi, everything you need to boot up your Pi Model B and get going. **We pre-assemble the Cobbler for you, no...**

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1014)
[Related Guides to the Product](https://learn.adafruit.com/products/1014/guides)
### Programming the Raspberry Pi: Getting Started with Python

[Programming the Raspberry Pi: Getting Started with Python](https://www.adafruit.com/product/1089)
 **Program your own Raspberry Pi projects!**

An updated guide to programming your own Raspberry Pi projects. Learn to create inventive programs and fun games on your powerful Raspberry Pi--with no programming experience required. **This practical book has been revised...**

In Stock
[Buy Now](https://www.adafruit.com/product/1089)
[Related Guides to the Product](https://learn.adafruit.com/products/1089/guides)
### Budget Pack for Raspberry Pi 1 Model B (Doesn't include RasPi)

[Budget Pack for Raspberry Pi 1 Model B (Doesn't include RasPi)](https://www.adafruit.com/product/965)
An optimized collection of parts and pieces to experiment with Raspberry Pi at home, school or work. Great for students and those that want to get their feet wet, no soldering required! **THIS PACK DOES NOT INCLUDE A RASPBERRY PI 1 MODEL B and is NOT compatible with Model B+ or Raspberry Pi...**

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/965)
[Related Guides to the Product](https://learn.adafruit.com/products/965/guides)
### Miniature Wireless USB Keyboard with Touchpad

[Miniature Wireless USB Keyboard with Touchpad](https://www.adafruit.com/product/922)
Add a miniature wireless controller to your computer project with this combination keyboard and touchpad. We found the smallest wireless USB keyboard available, a mere 6" x 2.4" x 0.5" (152mm x 59mm x 12.5mm)! It's small but usable to make a great accompaniment to a computer...

Out of Stock
[Buy Now](https://www.adafruit.com/product/922)
[Related Guides to the Product](https://learn.adafruit.com/products/922/guides)
### NTSC/PAL (Television) TFT Display - 4.3" Diagonal

[NTSC/PAL (Television) TFT Display - 4.3" Diagonal](https://www.adafruit.com/product/946)
Yes, this is an adorable small television! The visible display measures only 4.3" (11cm) diagonal, the TFT comes with a NTSC/PAL driver board, enclosure and stand. The display is very easy to use - simply connect 12VDC to the 2.1mm center-positive DC jack (or use the cable and connect to...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/946)
[Related Guides to the Product](https://learn.adafruit.com/products/946/guides)
### NTSC/PAL (Television) TFT Display - 7" Diagonal

[NTSC/PAL (Television) TFT Display - 7" Diagonal](https://www.adafruit.com/product/947)
Yes, this is an adorable small television! The visible display measures only 7" (17.8cm) diagonal, the TFT comes with a NTSC/PAL driver board, enclosure and stand. The display is very easy to use - simply connect the included 12VDC adapter to the 2.1mm center-positive DC jack, then...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/947)
[Related Guides to the Product](https://learn.adafruit.com/products/947/guides)

## Related Guides

- [Raspberry Pi Kernel-o-Matic](https://learn.adafruit.com/raspberry-pi-kernel-o-matic.md)
- [Google Glass talks to Raspberry Pi with XMPP](https://learn.adafruit.com/google-glass-talks-to-raspberry-pi-with-xmpp.md)
- [Windows IoT Core Application Management](https://learn.adafruit.com/windows-iot-application-management.md)
- [Running Programs Automatically on Your Tiny Computer](https://learn.adafruit.com/running-programs-automatically-on-your-tiny-computer.md)
- [Adding a Real Time Clock to Raspberry Pi](https://learn.adafruit.com/adding-a-real-time-clock-to-raspberry-pi.md)
- [MCP230xx GPIO Expander on the Raspberry Pi](https://learn.adafruit.com/mcp230xx-gpio-expander-on-the-raspberry-pi.md)
- [5" Display Kippah Portable Raspberry Pi](https://learn.adafruit.com/portable-kippah-pi.md)
- [Windows IoT Core Application Development: Headless Blinky](https://learn.adafruit.com/windows-iot-application-development-headless-application.md)
- [RasPipe: A Raspberry Pi Pipeline Viewer, Part 2](https://learn.adafruit.com/raspipe-a-raspberry-pi-pipeline-viewer-part-2.md)
- [Adafruit Prototyping Pi Plate](https://learn.adafruit.com/adafruit-prototyping-pi-plate.md)
- [Adafruit Raspberry Pi Educational Linux Distro](https://learn.adafruit.com/adafruit-raspberry-pi-educational-linux-distro.md)
- [Embedded Linux Board Comparison](https://learn.adafruit.com/embedded-linux-board-comparison.md)
- [Windows IoT Core Application Development: Headed Blinky](https://learn.adafruit.com/windows-iot-application-development-headed-blinky.md)
- [Introducing the Raspberry Pi Model B+](https://learn.adafruit.com/introducing-the-raspberry-pi-model-b-plus-plus-differences-vs-model-b.md)
- [Adafruit Speaker Bonnet for Raspberry Pi](https://learn.adafruit.com/adafruit-speaker-bonnet-for-raspberry-pi.md)
