-
-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pine64 Support #93
Comments
First build successful. Flashing now... |
Purchased a new SD card this week, so ready to test when you are... |
The image is almost finished. The next step will be modifications and improvements inside the openhabian setup. That's easier. @dmcwhinnie I'd be happy to provide you with a first image in a few hours. |
great! May not get to it today, but will get it in the next coupe days.
…On Sun, Feb 12, 2017 at 3:17 PM, Thomas Dietrich ***@***.***> wrote:
@dmcwhinnie <https://github.com/dmcwhinnie> It took longer than I thought
but here it is: https://drive.google.com/open?id=
0B67AyLNQlS3dMndLSkY0TnlDYXM
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#93 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMefoRSincnAitq8YqsGejwviwZqjXXzks5rb3bzgaJpZM4L-Oho>
.
|
Started flashing my SD card :-) One drawback to the RPi net-installer is that the extracted image is 4GB, so initial flashing takes much longer. |
Indeed :) One does appreciate that after a while. Sadly there was a small error in the image, you will not have much fun with it. Give me a few seconds. |
Ok, cancelling the flashing... |
Finally here we go! https://drive.google.com/drive/folders/0B67AyLNQlS3dYzJEbGtBOUdmTTg?usp=sharing
Happy Hacking! |
First install looks good! To fix the armhf library issue, these steps need to be added.
Once I did that, I was able to start openHAB. Reboot started everything automatically. Note, I can't find the source I found that information, so it may be possible that we don't need all 3 libraries for Java to work. All I have in my notes is to install all 3. 😊 I also did some basic tests with samba, z-wave addon installed, and detected the zwave module shipped with the original IOT Pine 64 shipments. |
Err, stupid question: What is the default user to log in with? |
I found a solution to the first problem (not in the image yet, so you will have to reboot once) and can confirm that the steps as described by @dmcwhinnie do the job (Thanks!). @kaikreuzer |
Ah :-) Needs to be changed 😎 |
Just FTR: Whatever I execute, I see many of these warnings:
|
I had longer discussions about that before. till now we decided to stay with the default password (e.g. |
Ah, setting locale was one of the last things I automated yesterday. Didn't ensure it's running smoothly... https://github.com/openhab/openhabian/blob/pine64-build/openhabian-setup.sh#L149-L158 |
I was also hoping for a different user, like e.g. "openhab" instead of "ubuntu". But I see that this won't work for e.g. the netinstaller that isn't under our control. And nothing to urgent for sure. But on the long run, it would be neat to have the same user on any openHABian installation and not different once depending on whether you run it on pi or pine. |
Regarding Zulu JDK, all I needed to make it work was:
@dmcwhinnie Are @ThomDietrich I also found the solution for the font issue! It is as simple as installing |
Configuring the Z-Wave board as |
I never confirmed all 3 were required. I had found the information somewhere, in the past, which said all 3 were needed. Once I had it working, I never went back to fully confirm if all 3 were needed. I suspect only the 1 is needed, and your setup seems to confirm. |
Oh but it is 😃 I just decided to set it to pi/ubuntu for now. You see, in the beginning of openHABian I wanted a "hassle-free" start, which includes being able to log in with the password RPi users with little or no Linux experience know: |
Well, it would be in line with our docs for manual setup. |
Or do you mean we should actually have two users? "openhab" for running the service and then an admin/sudo user for manual logins? |
@kaikreuzer could you please provide me with one example command to provoke the locale warning...
Thanks. Turns out all I missed in my late nighter yesterday was the
Amazing. Do I still need to confirm this on the RPi?
You mean inside openHAB? No changes on system side needed? Perfect!
Okay then, I'll add the one and it's good that all three of them are mentioned here in case of later problems.
Gracias :) To summarize: I'll build a new image this evening. It will include:
I'll also work on a fix for FireMotD to detect the pine64 platform. It would also be nice to have the on-board LED blink after the setup was successfully finished (just as with the RPi - @kaikreuzer @dmcwhinnie the pine I got from Kai (Thanks again!) is a prototype and doesn't have a status LED. Meaning this would be up to you to figure out. If something like this is not easily available, We can ignore that for now. It's just nice to have and not necessary. |
sudo adduser --system --no-create-home --group --disabled-login openhab This is a system user without (ssh) login ;)
Yup, that's how something like this is normally done. Linux users like "openhab" or "www-data" should be reasonably restricted. The end user should have his own interactive user with unrelated privileges. The fact that some users give openhab |
Ok, then I would go for "openhabian".
It e.g. happens when doing apt-get installs like
It has already been confirmed to be working here. What might be good is to check the minimal requirement. It might be enough to install
Yes, inside openHAB. |
The shell will look like this: [20:15:28] openhabian@openHABianPine64:~$ Maybe we can come up with something nicer? Building new image, including |
For the status LED, looks like it is doable based on this The issue I see is that this is a script running in a loop, so would have to spawn something and keep it running in the background. Not quite as clean as the PI for causing it to heartbeat. I should add, that this is for the "Power" LED, I believe the board also as spot for an additional LED, but mine doe not have that one. So if that is what you are thinking, I don't have that either. |
Maybe some shorter hostname? |
Here we go. I've uploaded a new image to test. Changes since yesterday:
The bootup time from power to openHAB Initial Setup screen was around 12 minutes btw. https://drive.google.com/file/d/0B67AyLNQlS3dVjYwWlAxOV9CVTg/view?usp=sharing I'm satisfied with the base now. @kaikreuzer @dmcwhinnie @umiddelb please give it a full test spin! 😉 Things still on the TODO list:
Regarding the username:password: I would like to use something less boring and maybe a bit cheerful. How do you like @umiddelb I've read your mail today but as you can see I'm currently a bit busy. I'll answer you soon! @kaikreuzer: While testing the chart, I encountered two usability issues. 1) Basic UI doesn't show the "Choose your sitemap" link list, where did it go? 2) the difference between Configuration and Preferences is unclear/un-intuitive. Also I was confused that the pre-configured sitemap for Basic UI is still called "_default". Might be time to call it "default"? We don't have to discuss these in detail here, if you think it's worth to look into I can open new issues. |
I like I'll let you know how the testing goes... |
FireMotD problems are fixed. OutsideIT/FireMotD#34, OutsideIT/FireMotD#35 |
I'll send a mail with my findings tomorrow. The short version: Läuft |
The End Is Nigh.
I will do one last important test this evening: RPi compatibility. If this is successful, I'm ready to merge and upload new releases. After a few days I'll mark this point with a new version number. Open todos: validate pine64_platform_scripts execution, modify file permissions, check Mosquitto install, rearrange menu entries, change username:password. Any comments? |
Let me know once you have a new image available for testing! |
Downloading ⏳ |
In my eyes it's finished, All improvements that might still be needed are unrelated to the base image. |
FYI, when running
|
But why... My system:
These are the commands supposed to be executed: # List available locales
cat /usr/share/i18n/SUPPORTED
# Generate locales, set default
/usr/sbin/locale-gen en_US.UTF-8 de_DE.UTF-8
/usr/sbin/update-locale LANG=en_US.UTF-8 |
Does this help?
|
I fear you'll have to investigate. This doesn't make sense to me and I'm not seeing these issues on my* Pine. What happens after |
Everything fine then:
|
At least an explanation... |
Could you please try the following and reconnect/reboot:
|
That solves the issue! |
Amazing ✨ 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. |
Besides the locale, everything looks really good! |
I've tried the latest image (openhabianpine64-2017021801-git088eb4e.img). Concerning the locale issue, there is still a mismatch between the default setting ( |
@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 |
@AngelosF you might want to take a look at this https://github.com/openhab/openhabian/blob/master/openhabian-setup.sh#L237-L247 |
I see. After
the locale setting in pinned to |
Hm okay... that's exactly what I'm doing. See #93 (comment) Just tested on my device:
|
May be I've taken the wrong image, |
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!? |
The |
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) |
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. |
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!
The text was updated successfully, but these errors were encountered: