openHABian hassle-free openHAB Setup

I get the same error, but no output after (frontail)

2017-03-21_14:14:33_EDT [openHABian] Adding openHAB syntax to vim editor… OK
2017-03-21_14:14:36_EDT [openHABian] Adding openHAB syntax to nano editor… OK
2017-03-21_14:14:37_EDT [openHABian] Setting up Samba for the default user… OK
2017-03-21_14:31:25_EDT [openHABian] Installing etckeeper (git based /etc backup)… OK
FAILED (frontail)

This was installed from openhabianpi-raspbian-20170318-git9767b24-crc9616e8a1.img.gz on a Pi 3, with a 16GB card, no wifi enabled - wired connection.

Let me know if you need any logs etc. before I wipe the card and try something else.

Anthony

I’ve fixed that issue. Please try again. Sorry for the inconvenience.

I wasn’t sure if the latest image had been updated, so I took the contents of the latest openhabian-master/build-rpi-raspbian and copied them into the root directory of a newly imaged SD card, renaming openhabian.raspbian.conf to openhabian.conf.

That now seems to have booted and configured fine

Thanks!

@ThomDietrich, Worked great this time! Thanks for giving it a swift kick in the pants :wink: Appreciate the hard work, and can’t wait to give it a test run!

-Sean

1 Like

Not in the v1.2 release but might be ready for v1.3, check it out: openHAB bind mounts, Samba improvements by ThomDietrich · Pull Request #120 · openhab/openhabian · GitHub

@Hansohm the hostname bug is also covered by this :wink:

Those of you who followed this thread for a while know that I’m not a fan of a GUI on the RPi. I’m unsure if it’s the best approach to learn and enjoy Linux. However I acknowledge that everyone needs to go through his/her own learning process and many benefit from a graphical frontend.

I’d be happy to add the needed steps to the documentation as soon as one tells me which these are exactly. If you read this and have your openHABian setup on an HDMI display, start typing now:

sudo apt install raspberrypi-ui-mods
sudo reboot
1 Like

out of interest…
Is it sudo apt … OR
sudo apt-get
??

Both is possible :slight_smile:
The Output differs slightly (apt is the much more nice one ;)) and there are some little differences in commands, e.g. for a complete upgrade, you would have to perform
sudo apt-get dist-upgrade or sudo apt full-upgrade
And there are some commands, which are unknown by apt,
e.g. there is neither apt install -f nor apt autoremove

1 Like

No love for sudo aptitude install ...? :smiley:
apt can be seen as the successor to apt-get but as @Udo_Hartmann said sometimes you’ll have to resort to apt-get or apt-cache to achieve your goal. Gladly both commands can be used in parallel.

https://debian-handbook.info/browse/stable/sect.apt-get.html

1 Like

Ah, I should disable that.

The “:” thing is what’s shown when you are inside a “less pager” - allowing to freely scroll through a number of lines that’s longer than the screen height. Using a pager is useful in environments where you can not easily scroll up and down on or if the complete output is too long. It really doesn’t make sense here.

Anyhow, just press “q” :slight_smile:

Thanks for reporting this problem, even if it’s small (no need to delete your post). I’ll add the fix for that right away.

Edit: @tjwesterby Done.

@ThomDietrich thanks for a quick reply. I just realized, when I maximized the putty window, I got the command line back, but it wasn’t there with a resized window. Tried pressing q without luck, but probably just due to the resize it didn’t work.

Thought it was my error, therefore I deleted the post. How do I get it back again for others reference?
thanks!

I’ve restored it.
Execute “Update” once more and you should be freed from the less pager in the future.

Btw. did you actually read the list of changes? ^^ (I have to admit there are no interesting changes in the screenshot)

Hey,

Not sure if this is the correct venue for this, but I suspect there is a bug in the openhabian-config tool around the Serial Port configuration.

I was banging my head against the wall trying to get a RaZberry board working in my RPi2 and constantly getting the “/dev/ttyAMA0 does not exist” message. I’d applied the appropriate options in openhabian-config but had no luck. Eventually noticed the following output from openhabian-config:

2017-03-26_10:32:19_AEDT [openHABian] Configuring serial console for serial port peripherals…
Adding ‘enable_uart=1’ to /boot/config.txt
Removing serial console and login shell from /boot/cmdline.txt and /etc/inittab
cp: cannot stat ‘/etc/inittab’: No such file or directory
sed: can’t read /etc/inittab: No such file or directory
Adding serial ports to openHAB java virtual machine in /etc/default/openhab2

I verfied that enable-uart=1 was present in config.txt, but noticed that cmdline.txt had not been updated. It still showed:

dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

Acting on some info in this thread about general Rasbian issues, I removed “console=serial0,115200” from cmdline.txt.

Lo and behold, my RaZbian board is now reporting as Online and it can find the sensors I had previously bound to it in Z-Way.

Is it possible the lines:

cp: cannot stat ‘/etc/inittab’: No such file or directory
sed: can’t read /etc/inittab: No such file or directory

were preventing the cmdline.txt update from also happening?

@lukics There is an “unlimited encryption” package also available for the Zulu VM, see here.

@ThomDietrich I think we cannot install this by default on openhabian due to the additional license/export regulation agreement. But maybe it could be added as an option to the openhabian installer? In there, you can link to a license that the user needs to acknowledge when installing additional stuff, right?

After the installation I’m not able to connect to the Samba network shares with openhabian:openhabian from macOS Sierra.
With connection smb://openhabian@openhabianpi.local, after many seconds Finder tell me to type password for the openhabian user but after many seconds it notifies me an error asking to control server name.
The behavior is the same with the static ip address: smb://192.168.x.x, with RPi connected with both the wifi that the cable.
The same RPi works fine with Windows 10.
I read that there are some incompatibility issues for OS X because Apple discarded Samba.
Are there some workarounds for solve the problem ?

@ThomDietrich: Thank you for your work with openhabian. I love the image and it is very helpful to have a quick start with openhab. Actually I am experimenting a lot with different bindings and configurations. This is the reason why a make a lot of backups and sometimes :slight_smile: I have to restore from these.

I have one suggestion:
Is it possible to add a samba share (e.g. “backup and restore”) and an openhabian-config point where I can first create an backup of the conf and userdata folder. The backup is stored in the samba share under backup, so you can download it to store it somewhere. The second option is to restore from a backup. You can chose a backup outside the backup folder or you can put a backup file/folder inside the samba share from somewhere and restore it. I am not a linux pro and tap every command by hand, but with this “backup and restore” extension life would be a little bit easier for people like me.

Thank you for your work! Have a nice evening

Johannes

It’s already work in progress:

Oh perfect:-), I didn’t take a look to the latest posts on GitHub.

Hi!
first of all thank you great work, helped me a lot in setting up my OH2.
But now i’m struggling. i got a serial pi plus and tried it on a fresh jessie setup. after adding “enable_uart=1” to /boot/config.txt i get this

pi@raspberrypi:~ $ ls -l /dev lrwxrwxrwx 1 root root 7 Mar 29 18:29 serial0 -> ttyAMA0 lrwxrwxrwx 1 root root 5 Mar 29 18:29 serial1 -> ttyS0

but if i do the same thing on my openHABian setup there’s no serial0 nor serial1

[code][pi3]
kernel=vmlinuz-4.4.0-1-rpi2
initramfs initrd.img-4.4.0-1-rpi2 followkernel

enable the serial console for the installed system

enable_uart=1
gpu_mem=16
dtparam=audio=on
dtoverlay=pi3-disable-bt[/code]

i also tried to disable/enable serial settings via openHABian setup, but that’s not helping.
any idea what i can do?

Not entirely sure what you are trying to accomplish. Please check the following article: http://elinux.org/RPi_Serial_Connection#Connection_to_a_microcontroller_or_other_peripheral