Closed JoergPi closed 7 years ago
Interesting. Could you please maximize your SSH window before starting openhabian-config. Which SSH client are you using?
Hi ThomDietrich,
that's openssh from xubuntu 16.04. Even with a 4k fullscreen window the same behaviour ...
btw,
is it possible to change the username in the install config (like I did successfully with the network setting) to my standard user name or will I run into trouble with the default user checking?
JoergPi
Oh :-/ I have an idea which change brought this upon us, don't know why this happens though. Could you play around with the Height and Width of the menu please (bring the Width below 80).
Modify the file /opt/openhabian/openhabian-setup.sh
: https://github.com/openhab/openhabian/blob/master/openhabian-setup.sh#L1184-L1185
Yes you can change the username. Directly after flashing change username and userpw in installer-config.txt
Tanks, i will try as soon as i am back Home ...
Am 21. Februar 2017 14:12:53 schrieb Thomas Dietrich notifications@github.com:
Oh :-/ I have an idea which change brought this upon us, don't know why this happens though. Could you play around with the Height and Width of the menu please (bring the Width below 80).
Modify the file
/opt/openhabian/openhabian-setup.sh
: https://github.com/openhab/openhabian/blob/master/openhabian-setup.sh#L1184-L1185Yes you can change the username. Directly after flashing change username and userpw in
installer-config.txt
-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/openhab/openhabian/issues/100#issuecomment-281340583
So,
got back, changed the settings to different values between 60 and 120, did run the changed script and the opebhabian-config command every time, checked with putty from a win10-install - but no effect at all ...
Ha, got it: whiptail is not installed after initial install run! "apt install whiptail" did the magic ;-)
JoergPi
Oh, hahaha that's funny. Whiptail should definitely be available on the system. I'll add it to Basic Packages and include a test if the command is known. Thanks for making me aware!!
I have to thank you for your work with OpenHabian!
@JoergPi I've added the needed change as a PR. It still riddles me, why was whiptail not installed on your system? The reason why I never noticed it not being part of the installation process is, that the openhabian image already includes it to begin with. What's going on there?
No idea, I did a headless install. Is there an install log somewhere on the CF to check for install errors?
JoergPi
Yes, the file is called something similar to /var/log/raspbian_ua_netinst.log
. Only the last few lines in this file are important.
Hmm,
the last few lines of the raspbian_ua_netinst.log:
"=== Start executing post-install.txt. ===
2017-02-21_19:36:51_UTC [openHABian] Booting for the first time!
2017-02-21_19:36:51_UTC [openHABian] Installing git package... OK
2017-02-21_19:44:13_UTC [openHABian] Cloning myself... OK
2017-02-21_19:44:23_UTC [openHABian] Copying configuration and first boot script... OK
2017-02-21_19:44:23_UTC [openHABian] === Executing 'openhabian-setup.sh' ===
2017-02-21_20:44:23_CET [openHABian] Checking for root privileges... OK
2017-02-21_20:44:23_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2017-02-21_20:44:23_CET [openHABian] Setting timezone (e.g. Europe/Berlin) and locale (e.g. en_US.UTF-8)... OK
grep: /proc/cpuinfo: No such file or directory
grep: /proc/cpuinfo: No such file or directory
grep: /proc/cpuinfo: No such file or directory
grep: /proc/cpuinfo: No such file or directory
grep: /proc/cpuinfo: No such file or directory
2017-02-21_20:44:36_CET [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... grep: /proc/cpuinfo: No such file or directory
grep: /proc/cpuinfo: No such file or directory
grep: /proc/cpuinfo: No such file or directory
grep: /proc/cpuinfo: No such file or directory
grep: /proc/cpuinfo: No such file or directory
OK
2017-02-21_20:49:04_CET [openHABian] Installing additional needed packages... grep: /proc/cpuinfo: No such file or directory
grep: /proc/cpuinfo: No such file or directory
grep: /proc/cpuinfo: No such file or directory
grep: /proc/cpuinfo: No such file or directory
grep: /proc/cpuinfo: No such file or directory
OK
2017-02-21_20:50:26_CET [openHABian] Adding slightly tuned bash config files to system... OK
2017-02-21_20:50:27_CET [openHABian] Adding slightly tuned vim config file to system... OK
2017-02-21_20:50:27_CET [openHABian] Downloading and setting up FireMotD... OK
2017-02-21_20:51:32_CET [openHABian] Installing Zulu Embedded OpenJDK... OK
2017-02-21_21:01:11_CET [openHABian] Adding openHAB 2 repository to sources.list.d... OK
2017-02-21_21:01:46_CET [openHABian] Installing openhab2... OK
2017-02-21_21:05:10_CET [openHABian] Activating openHAB... OK
2017-02-21_21:05:11_CET [openHABian] Adding openHAB syntax to vim editor... OK
2017-02-21_21:05:12_CET [openHABian] Adding openHAB syntax to nano editor... OK
2017-02-21_21:05:13_CET [openHABian] Setting up Samba for the default user... OK
OK
2017-02-21_21:08:06_CET [openHABian] Installing etckeeper (git based /etc backup)... OK
2017-02-21_21:09:07_CET [openHABian] Applying multiple useful system settings (permissions, ...)... OK
2017-02-21_20:09:09_UTC [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 Tue Feb 21 20:09:12 UTC 2017 and took 74 min 44 sec (4484 seconds)
[openHABian] Booting for the first time!
[openHABian] Indicating success through green LED heartbeat.
Looking at the whole log, there are a lot of dependency warnings before and a did a search for "whiptail" but without match. Is there a way to attach / send a file without displaying the full and lengthy content here?
I've solved it.
I saw this error before: grep: /proc/cpuinfo: No such file or directory
Throughout the code of openhabian-setup.sh (the same as openhabian-config) there are checks for a few platforms and operation systems. While in the unattended installation phase, the RPi can not be identified by the most reliable method I've found, hence I've implemented a simple check: if [ "$hostname" == "openHABianPi" ]
. You've changed the hostname, hence the Pi can not be identified, hence no Pi specific actions are executed. Let's see what would install whiptail as a dependancy:
[18:07:57] pi@openHABianPi:~$ apt-cache rdepends whiptail
whiptail
Reverse Depends:
simbamond
raspi-config
|ssh-agent-filter
squeak-vm
signing-party
refdb-clients
|rcconf
|psfontmgr
pppoeconf
|pppconfig
module-assistant
|gkdebconf
|gammu
|defoma
|debian-goodies
debconf
|debconf
|alsa-utils
Let me guess, raspi-config is not installed on your system!? ;)
I've added one more condition to the PR. Could you please test the following on your RPi?
if [ "$hostname" == "openHABianPi" ] || [ "$boot_volume_label" == "openHABian" ]; then echo "Yay!!"; fi
Exactly: no rapsiconfig on my pi3 and yes, I changed the hostname directly after flashing. Copied the bash-script-line into a script fiel and executed it: no output.
OK, than I would re-install now and change the hostname afterwards (or may never ;-).
And, at least, it's a key lesson: "what can be changed by DAU that will be changed by DAU - sooner or later"
;-)))
Does someone know the english version of DAU?
I have to excuse the command above, it will not work without another. However I'm certain it should do the job. I'll merge PR now - so I hope you didn't try the reinstall yet... Please reinstall WITH changed hostname, so we can make sure it in fact works now ;) I want this to be a feature, even in unadvertised. I made sure it's also supported with the pine64 image, which actually took some time.
Google tells me the translation would be Luser, I've never heard that though. Maybe just noob? Hehe. However, the fact that you actively and professionally interact in a GitHub Issue ticket disqualifies you for that. Sorry.
Hi,
I founf my spare SD card and just performed a fresh install with changed hostname after flashing and it worked well:
2017-02-24_17:51:34_UTC [openHABian] Booting for the first time!
2017-02-24_17:51:34_UTC [openHABian] Installing git package... OK
2017-02-24_17:52:44_UTC [openHABian] Cloning myself... OK
2017-02-24_17:52:47_UTC [openHABian] Copying configuration and first boot script... OK
2017-02-24_17:52:47_UTC [openHABian] === Executing 'openhabian-setup.sh' ===
2017-02-24_18:52:47_CET [openHABian] Checking for root privileges... OK
2017-02-24_18:52:47_CET [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2017-02-24_18:52:47_CET [openHABian] Setting timezone (e.g. Europe/Berlin) and locale (e.g. en_US.UTF-8)... OK
2017-02-24_18:53:00_CET [openHABian] Setting the GPU memory split down to 16MB for headless system... OK
2017-02-24_18:53:00_CET [openHABian] Installing basic can't-be-wrong packages (screen, vim, ...)... OK
2017-02-24_18:56:29_CET [openHABian] Installing additional needed packages... OK
2017-02-24_18:58:02_CET [openHABian] Adding slightly tuned bash config files to system... OK
2017-02-24_18:58:02_CET [openHABian] Adding slightly tuned vim config file to system... OK
2017-02-24_18:58:02_CET [openHABian] Downloading and setting up FireMotD... OK
2017-02-24_18:59:01_CET [openHABian] Installing Zulu Embedded OpenJDK... OK
2017-02-24_19:08:34_CET [openHABian] Adding openHAB 2 repository to sources.list.d... OK
2017-02-24_19:09:05_CET [openHABian] Installing openhab2... OK
2017-02-24_19:12:17_CET [openHABian] Activating openHAB... OK
2017-02-24_19:12:17_CET [openHABian] Adding openHAB syntax to vim editor... OK
2017-02-24_19:12:18_CET [openHABian] Adding openHAB syntax to nano editor... OK
2017-02-24_19:12:18_CET [openHABian] Setting up Samba for the default user... OK
OK
2017-02-24_19:14:51_CET [openHABian] Installing etckeeper (git based /etc backup)... OK
2017-02-24_19:15:41_CET [openHABian] Applying multiple useful system settings (permissions, ...)... OK
2017-02-24_18:15:43_UTC [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 Fri Feb 24 18:15:44 UTC 2017 and took 37 min 21 sec (2241 seconds)
[openHABian] Booting for the first time!
[openHABian] Indicating success through green LED heartbeat.
Many thanks!
JoergPi
Ouch, what happend to the formatting ;-)
You need to use ``` Try it now ;)
Ah, I used the "insert code" button and this puts a single apostroph (or whatever this lettes is named) and the cursor in between...
😉👍 Is the extra single OK line really there?
this one?
2017-02-24_19:12:18_CET [openHABian] Setting up Samba for the default user... OK
OK
2017-02-24_19:14:51_CET [openHABian] Installing etckeeper (git based /etc backup)... OK
Found it, fixed it. Thanks! ;) Nice drive we've got going on here
English Version of DAU = Dumb Ass User.... So it is a universal word... ;) - oh and no offense....
Hi all,
I tried a fresh install today using openhabianpi-ua-netinst-20170218-git11d8ebc.img. Basic installation worked well, but I could not start openhabian-config:
My fault?
JoergPi