Chapter 2:
Install and configure OpenHab 2.3

This tutorial is using a Raspberry Pi 3B+ and the latest release of Raspbian Stretch.

To install OpenHab 2.3 we need to add the OpenHab Repository, a kind of App Store, to the local system. To do so execute the following commands. Try to copy/paste the commands. Mark the commands, press Ctrl+C and perform a right click in the connected Putty window.

wget -qO - '' | sudo apt-key add -
sudo apt-get install apt-transport-https
echo 'deb stable main' | sudo tee /etc/apt/sources.list.d/openhab2.list

Update the local repository index:

sudo apt-get update

Install OpenHab:

sudo apt-get install openhab2

Start and register the OpenHab service:

sudo systemctl start openhab2.service
sudo systemctl daemon-reload
sudo systemctl enable openhab2.service

This first start will take a while. When this is done, you can access OpenHab at http://<your-IP>:8080. In our demo environment (see article “Setup Raspberry Pi”) this will be

When the web page is reachable after some minutes, we need to perform the initial setup. You will see the following screen:

When you see this screen, we like to select the recommended “Standard” installation. This is the best for all new environments and fits for all our purposes. Click on the “Standard” tile. You will see a message, that the UI is installing. Wait until this message is gone.

When the installation done, you will see this screen:

Now we are done with the installation and the initial setup of OpenHab.