openhab / openhab-snap

Packaging of openHAB for Ubuntu Core
Eclipse Public License 2.0
18 stars 12 forks source link

openhab-snap and openhabian #7

Closed ThomDietrich closed 7 years ago

ThomDietrich commented 7 years ago

Hey guys, Hey @kubiko,

you might know openHABian. Its aim is to make setting up a device for openHAB as "hassle-free" as possible.

In the community forum a user asked for Ubuntu Core support: https://community.openhab.org/t/openhabian-v1-2-supports-pi0w-with-new-base/25195/2

I did not yet have a deeper look into the whole core/snap topic. Do you see any ground and/or need for integration? How much does a Ubuntu Core system differ from a normal Ubuntu system and which tasks could openHABian still fulfill?

Best! Thomas

kaikreuzer commented 7 years ago

I personally don't think that there is any useful relation between openHABian and the snap. To me, the snap is a packaging for a specific target environment/Os, similar to e.g. the Synology NAS packaging. The setup of the Ubuntu Core system should definitely be separate from the openHAB installation, because its main purpose is to be an OS where many apps can run isolated - openHAB just being one of them.

r2geo commented 7 years ago

Hi Thomas,

As I see it, openHABian is attractive and I like it (I run it as well), but not something that will integrate with ubuntu-core. openHABian is a convenient way to offer raspbian (a lean OS based on Debian) with openHAB. It is focused on raspberry pi and other small board computers. At the moment things like GPIO and USB devices are easy to set up with openHABian.

Ubuntu is also based on Debian and it is similar in many ways since it started. However, Ubuntu is now moving towards ubuntu-core and a snap based system. The difference will be more sandboxed software, less sharing of libraries. That should make it easier to update and secure the system, or for a software like openHAB or e.g. nextcloud and rocketchat etc to roll out bug fixes and new features. For some more background, have a look here: https://www.ubuntu.com/core

Cheers, Roeland .

kubiko commented 7 years ago

Hi @ThomDietrich @kaikreuzer Sorry for late response. @ThomDietrich what exactly did people ask for? To have option to produce UbuntuCore with preinstalled openHAB image for pi3? There are two ways to look at it, a) is it something worth to do? Because running openHAB on pi2/3 on UbuntuCore is already dead easy 1) download in flash UbuntuCore image for pi2/3 2) call $ snap install openHAB.

b) this could be opportunity to actually address issue with z-wave USB key binding. Which requires specific build of pi3 image. (https://github.com/kubiko/pi3-gadget.git) @kaikreuzer is that something you would like to start doing officially from openHAB foundation? We can have gadget snaps specific to openHAB where you can control supported USB devices. I have not registered openHAB gadget names for this reason. We can also setup auto builds so you do not need to worry about it for the future. Then openHABian can be used to produce specific openHAB prepared image for Pi2/3 with openHAB preinstalled. You can even share then ready UbuntuCore/openHAB images for Pi2/3

ThomDietrich commented 7 years ago

Hey, openHABian provides further functionality beyond installing openHAB. It's also not only aimed at the Raspberry Pi but at every* Ubuntu/Debian based system. I think that's what the forum post was about.

Since the first post I've thought about this some more and I'd not consider it at the moment. openHABian aims to provide one image for a Raspberry Pi for new openHAB users to begin with - which it does. It's also a quick and easy base to get started with Ubuntu/Debian on other systems - which it does. If the user wants to work with his/her own setup or with a Ubuntu core based system, that's fine with me. openHABian doesn't do anything a user with basic Linux knowledge and some minutes of spare time can't do on his/her own.

kaikreuzer commented 7 years ago

@kaikreuzer is that something you would like to start doing officially from openHAB foundation? We can have gadget snaps specific to openHAB where you can control supported USB devices. I have not registered openHAB gadget names for this reason.

@kubiko I am not sure if I fully understand what these gadget snaps are about - is the idea to have e.g. a dedicated "ZWave.me dongle" snap that, when independently installed, would allow the openHAB snap to access the dongle? How are the gadget snaps related to the hotplugging support that we discussed so far?