openHABian hassle-free openHAB Setup

raspberry
setup
openhabian
Tags: #<Tag:0x00007fd314a55390> #<Tag:0x00007fd314a55250> #<Tag:0x00007fd314a550e8>

(Udo Hartmann) #1278

Release notes are never optional :slight_smile: that’s no “we are very proud to present, and hey, thank god it’s Friday” document, but essential information about new functions, bug fixes, changes …

And home automation is no job for “let’s click the install button and all will work automagically”.
In fact, at least in Germany, we home automation enthusiasts are always called nerds :slight_smile:


(Patrick) #1279

I need some advice for moving the configuration files to a mounted nfs folder located on a NAS.
It seems as if the configuration folder is hard-linked to at least two places:

  • /etc/openhab2/
  • /srv/openhab2-conf/

What’s the reason for that? Could there be a problem with replacing them with symlinks to an nfs-mounted folder?

I also consider moving /srv/openhab2-userdata as well, could there be a problem with that?


(Udo Hartmann) #1280

I think this is due to the fact, that per default samba would not allow to follow symbolic links, but this is just a guess.


(Markus Storm) #1281

See /etc/fstab. The first one is the real location. The second is directory loopback mount of the same dir to allow for Samba to easily share it (you can remove it from /etc/fstab if you don’t want it, also IIRC it’s a reversible config option in openHABian). So no, you do not want to move /srv/.

I have a NAS, too, and chose to mount logs (var/log/openhab2) and /var/lib/openhab2 (to contain persistence data etc). I chose to however NOT mount /etc/openhab2 so in case of trouble with the NAS or connection openhab still has access to the config.


(Patrick) #1282

Thank you @mstormi for this detailed information and for sharing your experience about using a NAS.
Before my update to openhabian, the entire (manual) openhab installation was located on a mounted nfs folder. But the setup is completely different now. I think I will now also keep everything on the sd card and make regular backups instead (maybe even executed by rules via the exec binding).


(Markus Storm) #1283

I’d still strongly suggest to put logs and persistence data on the NAS mount. They account for the vast majority of writes, and once you move these, you’ll be ‘reasonably’ safe from SD card corruption.
You’ll still have to do backups, of course. Check out the Amanda backup system install option in openHABian.


(Hans Van Damme) #1284

Thanks @Lionello_Marrelli I had similar issues for installing redis-py, but I had to do this:

(running as root)
apt-get remove python-pip
easy_install pip

and then I had to use the full path to run pip

/usr/local/bin/pip install redis

(Ken) #1285

I raised this topic/problem on the beginners forum:-

and have been advised to move it here.as it seems to be a problem with openhab setup. The same Pi with raspbian stretch works fine, so the problem is not the hardware.

I have tried a number of times now to get the wireless working, each time the result is the same, the pi no longer boots and I have to reflash the card.

Any help/advice/solutions would be gratefully received- as I stated in the beginners forum, using wired on my home network is not an option for me except for testing.


(Ken) #1286

Thanks to Metin over on the beginners forum (seethe last couple of posts on link above), the problem is now solved.


(Harold H) #1288

After being unsuccessful to install OpenhabianPi 1.4.1 on my new RBP3+ through WiFi, I was able to install OH through Ethernet.
Then I wanted to make WiFi active using openhabian-config, but the I got this message:

┌────────────┤ Incompatible Hardware Detected ├────────────┐
│                                                          │
│ Wifi setup: This option is for the Pi3, Pi0W or the Pine │
│ A64 system only.                                         │
│                                                          │
│                                                          │
│                                                          │
│                          <Ok>                            │
│                                                          │
└──────────────────────────────────────────────────────────┘

Should I wait for an update that includes WiFi support?


( ) #1289

Yes, it’s underway. Please follow: https://github.com/openhab/openhabian/issues/374


Raspberry 3 B+ WIFI on Openhabian
(James Kerns Jr ) #1290

BTW its

sudo update-alternatives --config java

not

sudo update-alternatives --config-java

but thanks for the help…its also so much faster now too running on the 32bit JVM. Good Job!


(Tejo) #1291

Hello, I have problem on my openhabian setup.
I installed openhabian on RPi 3 using etcher, twice, in same SD card. I run mqtt, influxdb+grafana, and pihole (which never used anyway)
First one I install OH 2.1.0 and get disk space full and since I don’t know anything about linux back then, I reflashed the card using new openhabian that have OH 2.2.0 with same additional software as before.
However I ran into same problem again, finally found out that the culprit is located on /var/lib/apt/lists/partial (it eats all free space from 26% used to 100%), I deleted this folder and rebooted, everything run normally again.
Just now, without doing any update and upgrade at all, no apt-get update nor upgrade, it become full again, with same culprit, and then deletes all my things, break the runtime that I have to reinstall openhab twice from openhabian-config to make OH running again.

What is the possible problem that makes me run into this more than twice? Thanks in advance


(SiHui) #1292

Bad sd card? Try using a spare one.


(Tejo) #1293

is bad SD card may cause that partial folder getting filled with incomplete list from apt-get? I have run my last installation for the past 3 months. only 3 temperatures and 1 humidity persisted every change and logged almost nothing since I purchased that SD card to use exclusively on openhabian.
I don’t have any spare SD card yet, will purchase soon


(SiHui) #1294

No idea. From other posts (search the forum) I know that a bad sd card can cause very weird problems. A raspberry user should always have a spare card handy :rofl: