Thanks @bartus, happy to hear it’s working for you. This problem is kinda known. The system needs to calculate the SSH host key. This key will be generated upon first ssh connection attempt. On weaker system - in my experience everything weaker than a RPi 3 - this generation will make the first connection fail/timeout. Please try a second/third time, connection will succeed eventually. If not restart openhab (sudo systmctl restart openhab2.service).
Btw. on your openHABian system you’ll find the command (alias) karafshell.
Not ideal? Comment in the referenced thread. If the timeout thing is a problem for users, we could look into triggering the key generation at an earlier point in time, i.e. at setup time or as part of the apt installation process.
Thank you. I had to log into samba from different computer first. Kinda weird but worked fine after. Got the uuid and secret now working on thje connection to myopenhab. Thanks for all your support and efforts
Aha! Walked away from my computer for a few hours, and the key generation messages were waiting for me when I got back…so, another case of me being impatient
I do think it’d be nice to make this part of the initial setup - I’m sure there’s more impatient users, not just me
@Benjy What’s your opinion? I could build something in openHABian but would envision the generation of an the karaf host key as a step of the apt pre installation routine.
I agree that something might need to be done for slower machines running openhab for the first time. The initial hang can take a very long time and won’t get any better if the user thinks it’s a crash and tries to force a restart.
I don’t know as of yet how you could pre-generate the key. I’d assume the karaf documentation might give this away. The easiest thing to do is to generate a message on first launch to say that the key generation process might take time.
Hi,
This is my first post on this Forum so Hi everyone.
Although I’m not Linux guru I always thought I can follow simple step by step guide but…
I’m trying to get image of OpenHABian and I confused myself.
I was expecting to see some sort of .img file to download and put on SD using disk imager.
When using links here to download I’m getting repository open with various system files but nowhere .img.
(even considering copying all these files on SD card - it is not 64MB???)
Please enlight me what I’m missing here.
I’m sorry that so basic question is being ask here… newbee…
Hi,
Thanks Sihui, I feel very embarrassed.
I readed all 408 pages of that forum but I was impatient to scroll to the bottom of downloads page thinking that links on the side are what I need.
I’ve tried openHABian for the first time today and unfortunately, my installation fails. I am getting this error:
[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] Downloading FireMotD… OK
[openHABian] Preparing Oracle Java 8 Web Upd8 repository… OK
[openHABian] Adding openHAB 2 Snapshot repositories to sources.list.d… 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 Jan 2 12:14:56 UTC 2017 and took 33 min 23 sec (2003 seconds)
I’ve tried it two times with the exact same result. I’ve used the official 1.0 release on GitHub. Should I install the package openhab2-offline manually, as @Benjy suggested three months ago, or is this a different issue with a different solution?
Hello there I just wanted to say I was brand new to both rPi and Openhab and wanted to try it out. I found openHABian, ordered a rPi3, followed the directions and it worked perfectly. Thank you!
I’m also loving openHabian and am grateful for all the work put into it.
I am having trouble getting audio to output properly to my USB sound card; I don’t think it’s a openHabian specific issue but am posting here in case there’s a connection. See my linked post:
Same here. Tried three times now…always the same failure.
[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] Downloading FireMotD… OK
[openHABian] Preparing Oracle Java 8 Web Upd8 repository… OK
[openHABian] Adding openHAB 2 Snapshot repositories to sources.list.d… FAILED
[openHABian] === Finished executing ‘openhabian-setup.sh’ ===
=== Finished executing post-install.txt. ===