File openhab5-README.SUSE of Package openhab5
File Locations
==============
Compare sources from Repoinstall with manual install from zip
Repository Installation Manual Installation (according to guide)
openHAB application /usr/share/openhab4 /opt/openhab4
Additional add-on files /usr/share/openhab4/addons /opt/openhab4/addons
Site configuration /etc/openhab4 /opt/openhab4/conf
Log files /var/log/openhab4 /opt/openhab4/userdata/logs
Userdata like rrd4j databases /var/lib/openhab4 /opt/openhab4/userdata
Service configuration /etc/sysconfig/openhab4 (not preconfigured)
TODO
====
* After install you must maybe change the ports in /etc/sysconfig/openhab4 (deprected) /etc/default/openhab4 (new).
Default is 8080 and 8443 wich are in conflict with tomcat.
* Package bouncycastle from opensuse has errors.
So you must do following to autogenerate certificates at startup:
- symlink from /usr/share/java/bcprov.jar to /usr/%{_libdir}/jvm/jre-1.8.0-openjdk/lib/ext/bcprov.jar
- insert security.provider.N=org.bouncycastle.jce.provider.BouncyCastleProvider into $JAVA_HOME/jre/lib/security/java.security
where N is one more than the last number in the list.
Then you can start openhab4 with systemctl start openhab4
And after that you can reach it on http://localhost:8080 or
with your servername and port.
When you wish to rich openhab4 over network you must maybe configure your Firewall.
For suse it gives a rule.
Z-Wave Binding add-on
=====================
If you use the Z-Wave Binding add-on you should make a directory /etc/systemd/system/openhab4.service.d/
and copy SupplementaryGroups-zwave.conf to it:
sudo mkdir /etc/systemd/system/openhab4.service.d/
sudo cp /usr/share/doc/packages/openhab4/SupplementaryGroups-zwave.conf /etc/systemd/system/openhab4.service.d/
sudo systemctl daemon-reload
sudo systemctl restart openhab4