openHABian hassle-free openHAB Setup

http://docs.openhab.org/installation/openhabian.html#raspberry-pi

Thanks Thom - don’t know why are not working. Anyway, i aimed to download a copy of openhab folder and i used winscp.

Hello and thanks for your reply.

My concern is, that Pine-A64 and Pine-64LTS are slightly different regarding the hardware, even the producer states, that Pine-A64 images cannot be used on Pine-64LTS

From https://www.pine64.org/?product=pine-a64-lts:

2. OS builds same as SOPINE platform due to LPDDR3 memory configuration. Please don’t select Pine A64+ OS builds.

For this reason I am wondering whether I can use the pre-build OpenHabian image or have to set up OpenHabian manually (Debian/Ubuntu + OpenHAB)

I can’t answer that for sure but that’s not really important. The manual openHABian installation doesn’t take much time and in the end you’ll reach the same results. The prebuild images are a treat for everyone using them but behind the scene they call the openHABian scripts just as you will following the manual path.

Hello Thom, many thanks for your time and for pointing me to the installer. I am sure I can install some minimal Debian/Ubuntu Image on the Pine64-LTS in a way it boots from the emmc module.

1 Like

I know the Stretch openHABian image isn’t ready due to the Mosquitto install problem. When openHABian does eventually go over, is it going to be a breaking change that requires a fresh install? I am having some problems and am planning to do a fresh install anyway
 but I’m hoping to not do it twice.

Hey @Dome, my answer is a bit mixed.

The new openHABian image will be based on stretch and existing installations will not be upgraded to stretch automatically. In the long run a small gap might open between old and new systems. However you have to know, that it would be possible for you to upgrade an existing jessie installation to stretch manually. In the end differences between the two distributions are mostly unimportant for us.

In conclusion I’d say it might be worth to wait for the new image but I wouldn’t wait for it if the problems you mentioned need to be dealt with rather sooner than later.

Debian Stretch and Raspbian Stretch brought some interesting changes and I want to get them into openHABian. One blocking issue was the mosquitto dependency error, for which there is at least a workaround available.

openHABian stretch - estimated date

I am traveling the coming week and it might take some days to configure, test and deploy the new openHABian image. I can’t make any promises yet. Maybe I can spare a few days at the end of October. If anyone knows a good reason why the stretch image should be available rather sooner than later, let me know :wink:

3 Likes

Hi Thom

There seems to be small issue with the install instruction for openhabian on the raspberry Pi. When I got to the step where I tried to mount the Samba Shares I executed the following command on the Pi:

sudo chown -hR openhab:openhab /etc/openhab2 /opt/openhab2/conf

This returned an error

chown: cannot access ‘/opt/openhab2/con’: No such file or directory

I had a look at the file locations in the manual installation instructions and it seems that this file is for the manual install not the pre-configured image?

Anyway I went ahead and tried to get access from Windows10 (latest update) . No luck. This surprised as I had a previous version of Openhabian and that was working OK.

I made sure I had the correct Windows WORKGROUP in the Samba config file on the Pi. I had to change that as I had changed the Windows default. Didn’t change anything else.

I updated the Windows 10 Credentials to tell Windows the correct login details See Control Panel/User Accounts/Credential Manager/Windows Credentials and add the Raspberry Pi Samba user and password. Still no luck.

Then I found a site that showed how to access a list of shared folders on the Pi

net rpc share list -U openhab where openhab is the user name you are using and omit the **

This gives the ACTUAL names of your shared folders.

For me these were:
openHAB-share
openHAB-conf
IPC$
openhab

I then used the FileExplorer/This Computer/ Add network location . When it asked me for the address I typed in

\192.168.1.39\openHAB-share {change to your ip address and the folder name you are mapping}

SUCCESS this worked but only for the “openHAB-share” and the openHAB folders. When I tried to link the openHAB-conf folder, permission was refused. Probably because the chown command failed on that folder as it could not find it 9see comments above). Also I wonder is this openHAB-conf the same folder as found in the openHAB-share and having the same name?

Previously I had not been able to get my Windows computer to recognize ANY of the folder names provided or shown in the documentation. Getting the ACTUAL names using the net command seems to have done the job. So I feel the documentation would benefit from an update in this area. Also I suggest mention of the best command for users to get the shared folder names (thus preventing a problem if the docs get out of sync with the actual)

Apologies if this is a bit long but I have just spent the whole afternoon trying to sort this out and I thought I might provide the steps for others having the same issue

Anyone else seeing this ?

Running “tip of the spear” Openhabian/Openhab2 for months. I update every couple of weeks. Twice in the past week, my USB boot partition (as in “move to USB” from Openhabian) has crashed HARD. Meaning “rebuild your installation from near-scratch” – I say “near” because I was able to mount the crashed USB and copy my config/rules/etc info BUT the important part in both cases is that suddenly the USB drives no longer booted with a “sudo shutdown -r now” ---- Kernel Panic etc
(two different NEW 32 GB Sandisk USBs involved here, which does tend to support some low-level OS issue and/or Sandisk I/F mess-up.)

Random possibilities: (1) some flaky RAM on the Pi3
(2) some OS/OH vulnerability to transient network connectivity — not sure about the first time, but during the second incident there definitely was some questionable connection internet from Comcast
(3) USB-Sandisk low-level fault, (4) zombie apocalypse.

I’ll discount option 4 (for now), but is anyone else seeing this kind of behavior ?

Hi,

I’m running openHABian on a Raspberry 3 since some weeks to control Intertechno and Homematic devices. The openHABian Version is from the 16th of June.

After some technical problems (Intertechno didn’t react) I did a reboot yesterday but since than the system didn’t start anymore. The Raspberry is working (green and red light is on) but that’s it. The dongles are off and also the network connection didn’t start.

Anyone any idea what has happened and if there will be a chance to repair? The SD card itself is readable when I put it in my Mac. And with another SD card with FHEM everything is working.

Many thanks,
Sebastian

PS: No, for sure I don’t have an backup


Did you do an upgrade in the mean time without a reboot?

Then you trapped also into this issue, see also Post#1068 in this thread.

Hey Holger, the bug you’ve linked to is related to an older version of the system. @sebami is not effected by it.

@sebami This is a complicated issue. If you are certain to know the correct IP address and can’t access the system via SSH (not sure about your skill level) you could try connecting a display and observe the bootup, then troubleshoot what’s presented as error. This isn’t normal behavior but can happen, it’s just bad luck.
If you can’t revive the system, do a backup and reinstall openHABian. You can mount the SD card to your PC and access the data from there to copy all files needed (please check google to learn how). Good luck!

New feature suggestion for openhabian-config:

How about integrating the option to boot from nfs?
It would be helpful to get a feature to mount permanently the root directory to a NFS share, copy all relevant files to the NFS share and change the boot files for booting from network.

I personally think that this is a killer feature to cope with the SD-card corruption issues of the raspberry specifically.

Well. Yes it’ll avoid SD caused crashes, but a) it only is useful for people to have a NAS (and only a few do) and b) it’s a lot of work and a lot of risk involved in that change/addition. I wouldn’t expect Thomas to have the time needed to get that working properly.

My guess would be that more than 50% of all Raspberry users have a NAS, but maybe I am wrong.

I think I should rephrase to “feature suggestion” instead of feature request, because I think it’s nice to have, but openhabian itself is a great help and without it I wouldn’t be at this point with my homeautomation today.
So thanks to Thomas, you and the others maintaining openhabian!

According to a (quick) Google search, you cannot run a Pi diskless.
The bootloader is hardcoded to use the SD card and there’s no PXE support in BIOS. It doesn’t even have a proper BIOS. So sorry but no we can’t build that.

For RPi 3 it seems to be possible:

I will try to go this way manually if this is really an option.

1 Like

@ThomDietrich Thanks for the response. I decided to did a complete new setup of my system as it was easier at the end. But next time I will have an backup :wink:

Best regards,
Sebastian

Please correct me if this is not the right way to ask. I’m struggling to install openHABian. I have very limited Linux knowledge, NO openHAB so hassle-free looks good to me. I’m sure I broke it, because it was working, but then I tried again.

Running a MacMini, and trying to install on a RPI3 and/or a Pine64. Downloaded the img.xz file, wrote to the Mac SD slot with Etcher, plugged into RPI3 waited (an hour) and WAS running. openHAB. (very cool!)

I had a problem with my Z-Stick, so decided to just start again from the beginning, since it was so easy the first time.

Every time since, I fail in various places with an error. (see below) I delete the key line in known_hosts to get back in via SSH, and see the errors. Can you help me fix whatever I broke?

2017-11-06_21:34:57_UTC [openHABian] Starting the openHABian initial setup. This might take a few minutes.
2017-11-06_21:34:57_UTC [openHABian] If you see this message more than once, something went wrong!
2017-11-06_21:34:57_UTC [openHABian] Storing configuration
 OK
2017-11-06_21:34:57_UTC [openHABian] Changing default username and password
 SKIPPED
2017-11-06_21:34:57_UTC [openHABian] Setting up Wifi connection
 SKIPPED
2017-11-06_21:34:57_UTC [openHABian] Ensuring network connectivity
 OK
2017-11-06_21:34:57_UTC [openHABian] Waiting for dpkg/apt to get ready
 OK
2017-11-06_21:35:12_UTC [openHABian] Updating repositories and upgrading installed packages
 OK
2017-11-06_21:35:25_UTC [openHABian] Installing git package
 OK
2017-11-06_21:35:29_UTC [openHABian] Cloning myself
 FAILED
2017-11-06_21:35:29_UTC [openHABian] Initial setup exiting with an error.