openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
822 stars 251 forks source link

pine64 Support #93

Closed ThomDietrich closed 7 years ago

ThomDietrich commented 7 years ago

I'm in the process of building an openHABian pine64 image. @kaikreuzer @dmcwhinnie

Progress so far:

Good news: A first test did already set up and install a working openHAB!

kaikreuzer commented 7 years ago

That solves the issue!

ThomDietrich commented 7 years ago

Amazing :sparkles: Thanks Kai ;)

I'll do the last changes today and then release both new images. I'll do announcement in the openHABian thread as usual.

kaikreuzer commented 7 years ago

Besides the locale, everything looks really good! I tried a lot of stuff, including charts, Z-Wave, etc - all working like a charm. Awesome work, @ThomDietrich!

dmcwhinnie commented 7 years ago

Yay! Good to hear! I think this will close out these 3 issues too. 57,58,66

umiddelb commented 7 years ago

I've tried the latest image (openhabianpine64-2017021801-git088eb4e.img). Concerning the locale issue, there is still a mismatch between the default setting (en_GB.UTF-8) and the locales to be generated by default (en_US.UTF-8). Either you switch to en_US.UTF-8 or just enable en_GB.UTF-8 in /etc/locale.gen.

ThomDietrich commented 7 years ago

@umiddelb I'm afraid I do not understand. There is no en_GB

https://github.com/openhab/openhabian/blob/master/build-pine64-image/openhabian.pine64.conf

ThomDietrich commented 7 years ago

@AngelosF you might want to take a look at this https://github.com/openhab/openhabian/blob/master/openhabian-setup.sh#L237-L247

umiddelb commented 7 years ago

@umiddelb I'm afraid I do not understand. There is no en_GB

I see. en_GB.UTF-8 is my default locale on the box I use to login to the Pine64. I've noticed that the file /etc/default/locale is empty on the Pine64, so sshd obviously takes the locale settings from the system where I come from

After

sudo update-locale LC_ALL="en_US.UTF-8" LANG="en_US.UTF-8" LC_MESSAGES=POSIX

the locale setting in pinned to en_US.UTF-8 on the Pine64.

ThomDietrich commented 7 years ago

Hm okay... that's exactly what I'm doing. See https://github.com/openhab/openhabian/issues/93#issuecomment-280676361

Just tested on my device:

[14:44:37] openhabian@openHABianPine64:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
[14:44:41] openhabian@openHABianPine64:~$ cat /etc/default/locale
#  File generated by update-locale
LANGUAGE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
umiddelb commented 7 years ago

May be I've taken the wrong image, /etc/default/locale is empty in openhabianpine64-2017021801-git088eb4e.img

ThomDietrich commented 7 years ago

Nope that's the one. Should be filled after executing "Basic Setup" once. However that's part of the initial setup... Could you open a new issue please!?

umiddelb commented 7 years ago

The first-boot.sh failed last time for unknown reason (I got a notification on the console, but I didn't retain first-boot.log, unfortunately). This time first-boot.sh completes the setup without any error.

ThomDietrich commented 7 years ago

But then... you should have seen this message: http://docs.openhab.org/installation/openhabian.html#faq-successful ?? (Just realized, that the tip in the middle is only valid for the RPi)

umiddelb commented 7 years ago

Hm, when I logged in via ssh, I've seen the usual Ubuntu banner, not the customized one. And I'm pretty sure that I didn't get the extensive error message on the console.