Starting openHAB on Linux


Start openHAB:

First you need to open a terminal. Usually the icon shown below is on the toolbar or the main menu. If not look in the "Accessories" tab in the menus. Or you can always try "<CTL><ALT>T".


These are the commands you need to run to start openHAB followed by a screen shot of the process:

sudo systemctl daemon-reload

sudo systemctl enable openhab2.service
sudo systemctl start openhab2.service
systemd ctl

 At this point openHAB will start up. It may take as long as 15 minutes to come up the first time you run it depending on you machine.

At this point fire up your web browser and type localhost:8080 into the address bar. If you get a page not found error keep waiting and retrying. If you have waited long enough you should see the following:

openhab start up screen

openHAB should also start whenever you start up the computer. You can reboot and check this if you want.

You should also be able to access it using machine_name:8080. The machine name is the name you see in the command line prompt, for example, my prompt shows joeg@uwt and the machine name is uwt. Or you can type hostname and it should print out. You can also use the IP address of the machine like IP_Address:8080.