openHABian hassle-free openHAB Setup

No, I’m not sure. How would I determine that?

Log into the Pi and run

sudo systemctl status openhab

It might be openhab2.

Looks like it’s running…

[13:46:12] pi@openHABianPi:~$ sudo systemctl status openhab2
[sudo] password for pi:
● openhab2.service - openHAB 2 - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled)
   Active: active (running) since Thu 2016-10-06 20:41:45 EDT; 17h ago
     Docs: http://docs.openhab.org
           https://community.openhab.org
 Main PID: 7240 (karaf)
   CGroup: /system.slice/openhab2.service
           ├─7240 /bin/sh /usr/share/openhab2/runtime/karaf/bin/karaf server
           └─7390 /usr/bin/java -Dopenhab.home=/usr/share/openhab2
-Dopenhab....

Oct 06 20:41:45 openHABianPi systemd[1]: Started openHAB 2 - empowering the
....
Oct 06 20:41:45 openHABianPi start.sh[7240]: Launching the openHAB
runtime...
Hint: Some lines were ellipsized, use -l to show in full.
[13:47:33] pi@openHABianPi:~$

Thanks for the ideas everyone. I decided to start from scratch and DL a
new image. It’s working now!

Did you find the solution by now and would like to share it with @Stephen_F and the rest of us?

SOLVED.

As usual, silly error… well, more like a misunderstanding on my part. Even though I mapped the drive in the past, in Smarthome Designer I was choosing the shared folder instead of the mapped drive. Personally, I don’t understand the difference (or why it would make a difference) but it is important to open the mapped drive in Designer.

1 Like

Moving from Wheezy to Jessie broke the GPIO Binding on OH1 due to its dependency on JNA which changed versions. JNA is now included within the later GPIO binding. Details in this thread

1 Like

Has anyone been able to activate the integrated Bluetooth module on a RP3?

2 Likes

Hi @ThomDietrich , Just tried a fresh install (have used this in the past with no problems) and i am getting an error installing, any ideas or any other logs you need?

[openHABian] Installing git package…OK
[openHABian] Cloning myself…OK
[openHABian] === Start executing ‘openhabian-setup.sh’ ===
[openHABian] Checking for root privileges… OK
[openHABian] Setting timezone (Europe/Berlin) and locale (en_US.UTF-8)… OK
[openHABian] Activating first boot script… OK
[openHABian] Setting the GPU memory split down to 16MB for headless system… OK
[openHABian] Installing basic can’t-be-wrong packages (screen, vim, …)… OK
[openHABian] Installing additional needed packages… OK
[openHABian] Adding slightly tuned bash config files to system… OK
[openHABian] Adding slightly tuned vim config file to system… OK
[openHABian] Preparing Oracle Java 8 Web Upd8 repository… OK
[openHABian] Adding openHAB 2 Snapshot repositories to sources.list.d… OK
[openHABian] Installing openhab2-offline… FAILED
[openHABian] === Finished executing ‘openhabian-setup.sh’ ===
=== Finished executing post-install.txt. ===

Removing cdebootstrap-helper-rc.d… OK
Saving current time for fake-hwclock…
Installation finished at Mon Oct 17 19:46:21 UTC 2016 and took 64 min 45 sec (3885 seconds)

It’s probably related to the fact that new Raspberry Pi Installations are failing.

A fix has been published and is waiting a merge, but if you want to make your installation work now you should be able to:

sudo mkdir -p /var/lib/openhab2/cache
sudo mkdir -p /var/lib/openhab2/tmp
sudo apt-get install openhab2-offline
sudo chown -R openhab:openhab /var/lib/openhab2
2 Likes

Thanks @Benjy :wink:

I downloaded the img-file and it installed correctly as far as know. I have very little experience regarding Linux.

My problem is that I can´t access the http://openhabianpi:8080. Not even after a very long time.
All I get on my Rpi screen is: “openHABianPi login:”

I did read something about an update/upgrade that could help, but how can I do that when I can´t get in to the Pi?

Is there a standard login and password for this install or am I totally lost?

Please help me!

Have you done the steps mentioned from Benjy two posts before?

The pull request to fix installs was only merged 2 hours ago, was it longer ago than this if not, try again now its been merged.

As James said, there was a problem that got fixed two hours ago. Please just start from the beginning once more.

Regarding your other question: What you are asking for is in the first posting: “Connect via ssh with pi:raspberry”. It is more common to not connect a display and keyboard to your Raspberry Pi but connect to it from your local PC via SSH. I would recommend to do so as this brings numerous benefits. Never the less, whatever method you choose to log in at the console, the username is “pi” and the password is “raspberry”.

Just did an install on a Pi3 a few hours ago, seems to be working fine.
http://openhabianpi:8080 working fine.

login as: pi
pi@192.168.200.36's password:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Oct 20 11:07:33 2016

#############################################################################
########################## openHABianPi #################### 5.15.160729 ####
#############################################################################
##          Ip = 192.168.200.36
##     Release = Raspbian GNU/Linux 8 (jessie)
##      Kernel = Linux 4.4.0-1-rpi2
##    Platform = Raspberry Pi 2 Model B Rev 1.1
##      Uptime = 0 day(s). 3:57:17
##   CPU Usage = 0 % average CPU usage over 4 core(s)
##    CPU Load = 1m: 0.00, 5m: 0.01, 15m: 0.05
##      Memory = Free: 0.14 GB (15%), Used: 0.80 GB (85%), Total: 0.94 GB
##        Swap = Free: 0.00 GB (0%), Used: 0.00 GB (100%), Total: 0.00 GB
##        Root = Free: 12.01 GB (88%), Used: 1.58 GB (12%), Total: 14.35 GB
##     Updates = 1 apt-get updates available.
##    Sessions = 2 sessions
##   Processes = 110 running processes of 7668 maximum processes
#############################################################################

              Welcome to            __  _____    ____  _
            ____  ____  ___  ____  / / / /   |  / __ )(_)___ _____
           / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  / / __ `/ __ \
          / /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ / / /_/ / / / /
          \____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/_/\__,_/_/ /_/
              /_/
                                         openHAB 2.0 Build #548

[11:13:47] pi@openHABianPi:~$
1 Like

apologies, a Pi2 Model B 1.1, not a 3…wrong board.

This seems like a great idea and I wish I found it sooner but my first try didn’t work on a Pi 2:

Here is the “tail”:

I will try again this weekend.

I think this is a temporarily problem as there are some issues with the latest snapshot build on cloudbees. See:

(post #30 from theo).

Fixed since 27.10.2016 00:44.
Your easiest way to restart the setup is to connect via ssh and then type:

sudo mv /boot/config-reinstall.txt /boot/config.txt
sudo reboot
1 Like