Hello and thanks for suffering a newbie,
I’m trying to install OpenHab 1.3 from the image at https://github.com/openhab/openhabian/releases.
Install eventually completes and UI available on port 8080.
Can’t ssh in as openhabian, only as pi/raspberry.
Have tried the obvious, power supply, quality SD cards, both Pi0W and Pi2. Same results.
After a look at the boot log, it seems that pretty much the first thing of changing the user and password has failed.
Here’s the first bit of first-boot.log and my .conf file with just my test SSID added.
/boot/first-boot.log… (start of)
2017-04-10_09:59:08_UTC [openHABian] Starting the openHABian initial setup. This might take a few minutes.
2017-04-10_09:59:08_UTC [openHABian] If you see this message more than once, something went wrong!
2017-04-10_09:59:08_UTC [openHABian] Storing configuration... /etc/openhabian.conf: line 3: $'\r': command not found
/etc/openhabian.conf: line 7: $'\r': command not found
/etc/openhabian.conf: line 13: $'\r': command not found
/etc/openhabian.conf: line 19: $'\r': command not found
OK
2017-04-10_09:59:09_UTC [openHABian] Changing default username and password... usermod: invalid user name 'openhabian^M'
usermod: user 'openhabian^M' does not exist
groupmod: invalid group name 'openhabian^M'
chpasswd: (user openhabian^M) pam_chauthtok() failed, error:
Authentication token manipulation error
chpasswd: (line 1, user openhabian^M) password not changed
OK
/etc/openhabian.conf…
# Modify your openHABian settings
# Handle with care, only touch if you need to!!
hostname=openHABianPi
username=openhabian
userpw=openhabian
# Language and time. Be sure to set these to valid values
timeserver=0.pool.ntp.org
locales="en_US.UTF-8 de_DE.UTF-8"
system_default_locale="en_US.UTF-8"
timezone=Europe/Berlin
# Wifi settings. An ethernet connection is recommended
# Requirement: RPi3, RPi0W, PineA64 or a supported external Wi-Fi dongle
# Uncomment and fill in your SSID and password
wifi_ssid="Salinas"
wifi_psk="********"
# vim: filetype=sh
If anyone can guide me in the right direction you will be my hero! - Thanks.