How to install and configure Raspberry Pi with Raspbian

6 minutes of reading
  • How to install and configure Raspberry Pi
  • Difficulty level: bass
Concepts dealt with:
  • Software installation and configuration
Software components used:
  • Operating System Raspbian (or other distributions suitable for Raspberry Pi)
Physical devices used:
  • un Raspberry Pi and relative power supply
  • un computer support
  • USB keyboard and mouse (only for the first configuration)
  • TV / Monitor with HDMI input (only for the first configuration)
  • a USB external hard drive (optional)

In assenza keyboard, mouse and / or video, it is however possible to configure and start the Raspberry using the techniques described in guide "Headless".

GUIDE more indicated for:

All environments

Notes and disclaimer
  • qualsiasi eventuale modifica agli impianti domestici dev'essere progettata ed realizzata SOLO da personale qualificato;
  • any changes implemented in probefore is a propersonal responsibility as well as a profirst risk and danger (the contents of the present page are purely educational);
  • any changes implemented in proprior to a device it voids the guarantee, quality approvals and certifications.
Driving review: 3.5

Raspberry Pi in hand

Finally I bought a Raspberry Pi.
Where do I start?

The connections

The Raspberry is an object not particularly complex to configure, so there is no need to get scared. First of all, all minimum connections must be made for first use. The list of what you need initially is:
  • a usb keyboard;
  • a usb mouse;
  • an HDMI cable;
  • a monitor / TV with HDMI input;
  • microUSB power supply for Raspberry Pi (usually included in the unit);
  • a microSD (usually included with the unit) or an external USB disk.

Without keyboard and / or mouse and / or video however, you can configure Raspbian in mode Headless. An ad hoc guide is available here.

For the uninitiated, the cable HDMI (High-Definition Multimedia Interface) appare as follows:
and connects on one side to the Raspberry and on the one hand on the monitor / TV.
The following diagram summarizes the connections to be made (plus a series of optional peripherals):
Connection scheme Raspberry Pi

Before switching on

Before starting the Raspberry Pi, it is necessary to "install" the operating system on the microSD, which is the equivalent of the Hard Disk in a common personal computer. This operating system is available in many versions and customizations; on inDomus we will often refer to the most classic, supported and complete available today, or Raspbian.
Nb Su Raspberry Pi you can also use, instead of a microSD, an external drive connected via USB. To tal proposito is recommended reading this other card.
To install the operating system you need:
  • a computer (Windows, Apple or Linux);
  • the operating system image to be installed (Raspbian or, as mentioned, others)
  • la microSD and the related USB adapter.
La proThe cedura we are going to describe is valid both for Raspbian both for any other operating system suitable for Raspberry.

Install the operating system

To install Raspbian on microSD support (or external hard disk) le procedures vary depending on the computer available as a support.

First of all, however, it is necessary to download the operating system itself from the Internet. The links are as follows:

The complete list of official operating system images for Raspberry is available here.

Nb This guide describes how to install and configure Raspbian, But the procoupon (at least that of installation) is the same for any other distribution suitable for Raspberry Pi (Eg. Home Assistant HASSIO, Retropie etc.) distributed over a single file image.

Proprocedure WINDOWS

  • download and install the software Etcher da on the support computer;
  • connect the microSD (or the chosen medium) to the support computer;
  • run Etcher on the support computer;
  • select the previously downloaded Raspbian image;
  • select the microSD;
  • click “Burn”To install the Raspbian image on the microSD;
  • wait for the task to complete, then remove the microSD card.
The Etcher software

Proprocedure MAC


  • download and install the software Etcher da on the support computer;
  • connect the microSD (or the chosen medium) to the support computer;
  • run Etcher on the support computer;
  • select the previously downloaded Raspbian image;
  • select the microSD;
  • click "Burn" to install the Raspbian image on the microSD;
  • wait for the task to complete, then extract the microSD, now prodesigned for use on Raspbian.
The Etcher software

with TERMINAL (for those familiar with the command line)

  • connect the microSD (or the chosen media) to the computer;
  • carry out Terminal;
  • from Terminal, run:
diskutil list
to identify the disk (NOT the partition), eg disk4 and not disk4s1
  • remove the disk with the command
diskutil unmountDisk /dev/diskX
where X indicates the previously identified disk eg discussil unmountDisk / dev / disk4
  • install the image using the command
sudo dd bs=1m if=image.img of=/dev/rdiskX conv=sync
where X indicates the previously identified disk and where image.img is the image to be copied and disk # is the previously identified disk (hence the microSD), for example:
sudo dd bs=1m if=2018-04-18-raspbian-stretch.img of=/dev/rdisk4 conv=sync

Procedura Linux

Also for linux is available Etcher (same sequence described above) or you can use the CLI. In this case, similarly to proprocedure Mac, it is sufficient to identify the disk (the microSD or the chosen medium) to be disconnected by the command
after which it is sufficient to use the command
dd bs=4M if=image.img of=/dev/sdX conv=fsync
where image.img is the image to be copied and sdX is the previously identified disk (hence the microSD)
More information on the proLinux cedures are available here.

Configure access Wi-Fi

Se no if you want to wire the Raspberry directly to your home ethernet network, you can instruct the Raspbian operating system appena installed on the microSD in order to automatically connect to the Wi-Fi at the first start.

To do this it is necessary to create inside the partition "boot"Present on the microSD - through any text editor - a file called"wpa_supplicant.conf”Containing the following configuration:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

where in the garments "ssid" and "psk”Will be reported respectively the name of the proman Wi-Fi and the corresponding login password.

Configure SSH

At this point it is necessary activate the Raspbian SSH Server feature to give us a way to connect from our computer to appnow at the Raspberry without the need, instead, to use a keyboard, a mouse and a display connected to the Raspberry to start using it.

To do this, simply create a file called "ssh"(Without any extension or content) and copy it into the partition"boot”Present on the microSD appena configured (and of the hard disk used esternameconnected via USB). Nothing else.

Nb To do this you need to use a computer Windows or in any case a computer able to access the partition.


It often happens:

  • when, as a support computer, it is used Windowshappens to physically disconnect the USB / microSD adapter without first clicking on "disconnect unit", which sometimes causes the file to not be written "wpa_supplicant.conf"And the file"ssh”On the root of the microSD. Remember to always click "disconnect drive" before removing the adapter.

First ignition

Insert the microSD in theappslot, it is now possible to switch on Raspberry Pi by acting on the switch on the power cable or, in the absence, by connecting the power supply to the unit itself.
Nb In the absence of keyboard and / or mouse and / or video, you can still configure Raspbian in mode Headless. An ad hoc guide is available here.

On the monitor the unit will give visibility to a series of automatic first configuration tasks. At the end, we'll be in a graphical desktop environment offered by Raspbian.

Raspbian Buster - Wallpaper
Raspberry Pi at the first boot with Raspbian operating system.

After startup, Raspbian will ask you to configure some aspects of the basic configuration, such as the nation of appattention, time zone, administrative password and access to your network Wi-Fi (unless of course you are already proupstream).


Each time you connect to a local network, the device is typically assigned "office" an IP address. To connect to Raspberry Pi via SSH and / or VNC, it is necessary to know the assigned IP.
To do this, click at the top left on the raspberry icon and in the list programs, select "Terminal"

After opening the finestra, type the command:

sudo ifconfig

after entering the required password, the screen that appwill appear similar to the following:

Raspbery Pi ifconfig

The IP assigned in this session will be the one shown to the right of the wording "inet addr"
Other techniques to discover the Raspberry IP are available here.

Please note: the assigned IP tends to change over time. To avoid having to find out from time to time it is strongly recommended to assign a static IP to yours Raspberry Pi. To do this, we recommend to consult this guide.

First configuration

So far, our Raspberry it is pienameoperational with Raspbian operating system and is therefore pronto use. Obviously, like any computer, after the first start it expects the configuration of elementary things but imported such as geographic location, language, time and other things.

For prosee, it is recommended to follow the following, short guide:

The first things to do after installing Raspberry with Raspbian

inDomus telegram channel