This article is about installing Raspbian on Raspberry Pi 3. If you follow all the steps one by one, it’s a piece of cake. There are different Linux distributions available, we choose Raspbian on Raspberry Pi.
Raspbian is a Linux distribution that has been developed for educational purposes and is optimized for the different models of the Raspberry Pi.
Raspbian is a fork from Debian that can be installed as a live system on an SD card or a microSD card. The first version of Raspbian was released in July 2012 as a replacement for the Debian Squeeze version for ARM processors, previously used by the Raspberry Pi Foundation.
Preparation Sd card for Raspberry Pi
Download the SDFormatter V5.0 program and format the micro SD card. Although an 8 GB card is sufficient, I advise you to take a 16 GB card. In terms of price, there is not much difference, the advantage is that you never run out of space. Make sure you take a decent card (Class 10 / UHS-I), such as a Sandisk or Samsung. SD cards from 32 GB can cause problems when booting the Raspberry Pi.
Since November 2016, Raspbian has disabled the SSH server by default, but this is easy to solve: create a blank file with the name ‘ssh’, without extension, in the boot partition of the SD card.
Insert the SD card in the Raspberry Pi and connect a network cable. After the startup you will see the IP address of the Raspberry Pi , write this down somewhere. If the Raspberry is not connected to a monitor, you can look up the IP in your modem / router or search with a network scanner on your smartphone / tablet (eg with the Fing app ).
Log in via SSH with PuTTY . The user name is pi and the raspberry password .
Raspbian Configuration and optimization
Choose the configuration options below:
- Change User Password
- Internationalization Options (change time zone)
- Advanced Options – Expand filesystem
- Advanced Options – Memory Split, change GPU to 16MB)
And then restart the system with the command:
Reconnect in PuTTY (right mouse button in the PuTTY screen) and log in (with the new password).
Update the system with the following commands:
sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade
Delete the downloaded files and restart the system:
sudo apt-get clean sudo reboot
With the command below you can install any new firmware on Raspberry Pi
sudo rpi update
If you want to install Domoticz later, we still have to perform one more step, otherwise you will receive the following error message if you want to start Domoticz: error while loading shared libraries : libssl . so . 1.0.0 : can not open shared object file : No such file or directory
This is due to the absence of the libssl.so.1.0.0 library. The library can be installed via the steps below. We will now first manually download the libssl library:
wget http://ftp.debian.org/debian/pool/main/o/openssl/libssl1 .0 .0_1 .0 .1 t- 1 + deb8u8_armhf.deb
Then we will start the installation:
sudo dpkg -i libssl1 .0 .0_1 .0 .1 t- 1 + deb8u8_armhf.deb
Finally, we have to install a python package to prevent an error message in Domoticz:
sudo apt-get install libpython3 .5 -dev
And restart the Raspberry with the command:
Raspbian is now successfully installed on your Raspberry Pi and ready for the next step