Knowledge for the World

How to set up a new Raspberry Pi

This guide will show you how to set up a brand new Raspberry Pi. We will cover everything from the basic accessories, to installing Wheezy, to logging in via ssh for the first time.

In these interests [?]
  • pi
    85 Subscribers Subscribe

Gather your accessories

You'll want to make sure you have all of the required accessories. For this project you'll need, at a minimum, the Raspberry Pi 2, a 2.5A power supply, and a Micro SD card. Plus, you will need either a USB wifi adapter or an ethernet cable to connect to your router. Links to the required accessories are available on this guide in the "Tools" section.

Gather your accessories

Flash the SD card

The first thing you'll want to do is flash your SD card with the Raspbian image of your choice. There are a few versions of Raspbian you can choose from and the instructions for each are nearly identical.

Follow this guide to learn how to install Raspbian Wheezy.


Insert the Micro SD card into the Raspberry Pi

If necessary remove the SD card from the adapter and push it into the reader on the Raspberry Pi. Push down until you feel and hear it click into place.

Insert the Micro SD card into the Raspberry Pi

Plug in the ethernet cable

Plug in the ethernet cable

Plug in the power cable

Plug in the power cable to the wall and then the Raspberry Pi. It will power on as soon as it's plugged in.

Learn how to safely shutdown the Raspberry Pi when you're finished.

Plug in the power cable


Now, with your pi powered on and connected to your local network, you should be able to ssh into your pi. SSH comes installed and enabled on Raspbian, so you should be able to SSH in without any prior setup.

First we'll ping the Raspberry Pi to make sure we can find it. The default hostname for the Raspberry Pi is unsurprisingly: raspberrypi.

ping raspberrypi

You should see output like this:

PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=81.131 ms

Then press ctrl+c to stop.

Since we can reach our pi, now we'll SSH in. The default username and password for the Raspberry Pi is pi and raspberry.

ssh -l pi raspberrypi

The -l option specifies the username, which in our case is pi. Then we'll type in the password: raspberry. For security reasons, you won't see the password as you type.

Now you should be logged into your pi, and you should see a prompt like this:

pi@raspberrypi:~ $


Change the password

At this point, you'll want to change the password for the pi user on your Raspberry Pi. This can be done using the passwd command.


Follow the linked guide for more details.