Commit Graph

79 Commits

Author SHA1 Message Date
Ian Goodacre
28df43da15 Improve armbian-firstlogin script
Avoid waiting for the NetworkManager-wait-online or
systemd-networkd-wait-online service to complete in the midst of
prompting for root account password.
2025-03-16 11:53:30 +01:00
Igor Pecovnik
7f32a58535 Enable wait-online.service in firstlogin config
Reasoning: https://github.com/armbian/build/issues/7896
2025-03-07 19:50:26 +01:00
Thorsten Maerz
a8abed8d46 firstlogin: bring up wifi device before scanning
Scanning accesspoints requires an activated wifi device.
Networkd does not activate it (only NetworkManager does so).
As a result, firstlogin is not able to configure and use wifi on minimal
images, as only Server and Desktop images have NetworkManeger installed.
Activating the wifi device using "ip link set ${WIFI_DEVICE} up" before
scanning fixes this.
(And can safely be done - there is no problem activating it multiple
times, as it is the case with NetworkManager installed.)
2025-02-08 19:38:37 +01:00
Igor Pecovnik
bb02c3b951 Firstlogin: run provision script if it does exists
- fixing motd setting executing bit at wrong place
- when setting fixed address with 1st run, remove DHCP on all lan networks
2025-01-12 20:52:08 +01:00
Igor Pecovnik
cc704f49a6 Cosmetic bugfix - we need to limit grep to match first character only
Without this, we grep upgrade options too and this fill give wrong information
2024-11-05 16:34:41 +01:00
Igor Pecovnik
01218eefa4 UX bugfix: on first run we display some warnings if userspace is unsupported. It broke down.
Since expanding distribution status with upgrade target, this condition stop working

Related: https://github.com/armbian/build/pull/7303
2024-11-03 17:43:02 +01:00
Igor Pecovnik
eab612e2a7 Firstlogin automation - add support for SSH key download
- allow automation in interactive mode too. Currently disabled for no apparent reason.
2024-10-22 13:04:11 +02:00
Igor Pecovnik
140ea243fc Replace wireless-tools app with iw in armbian-first-login 2024-09-30 18:39:23 +02:00
Gunjan Gupta
31e88922ad Fix connecting to wifi networks where SSID contains a space or comma 2024-09-25 13:02:53 +02:00
Igor Pecovnik
17e1af68cf UX: cosmetic improvements on motd and armbian-install 2024-09-18 16:31:46 +02:00
Igor Pecovnik
c6a0cd50a8 Cosmetic / UX: Display VENDORPRETTYNAME instead of VENDOR on 1st welcome screen
If defined
2024-09-17 06:54:42 +02:00
Igor Pecovnik
e7f9632c1f When using CLI / minimal image, lets show motd right after initial config is done 2024-09-08 17:43:14 +02:00
Jack Thomasson
e7b0c3fb4e firstlogin: quote values if space is legal (#6942) 2024-07-14 07:37:25 +02:00
Igor Pecovnik
2b494ae46f Add support for multiple wireless devies at firstlogin 2024-06-30 21:23:27 +02:00
Igor Pecovnik
c0c3102be9 Bugifx: addressing two problems at firstlogin script
- removing network manager dependancy
- errors when wireless networking is still not detected
2024-06-30 21:23:27 +02:00
Igor Pecovnik
692574592b Add support for displaying multiple IP addresses at first login
If we have more ethernet devices, we want to list them one after another

Before:
IP address: 1.1.1.1
2.2.2.2

After
IP address: 1.1.1.1,2.2.2.2
2024-06-20 19:59:52 +02:00
Igor Pecovnik
942bd4188d Replace Network manager nmtui-connect with own method 2024-06-20 19:59:52 +02:00
ColorfulRhino
ed45c8bfee cli: firstlogin: Fix and improve IP address retrieval
This should also include the case if zero retries are left, but the IP address has been found on this last retry.
2024-06-20 19:59:52 +02:00
ColorfulRhino
56267aa0ad cli: firstlogin: Move IP address retrieval into function and don't run in bg
Trying to run this in the background does not work correctly in its current iteration, setting the correct place on the screen for displaying did not work out.
Includes minor fixes and wording improvements.
2024-06-20 19:59:52 +02:00
Igor Pecovnik
a95bdd920f Refactor automatic configuration at first run 2024-06-20 19:59:52 +02:00
ColorfulRhino
e6fc6d0990 cli: Make IP address retrieval on firstlogin run in the background
Otherwise we have to wait until the while loop finishes.
Also includes some fixes and comments.
2024-06-20 19:59:52 +02:00
Igor Pecovnik
f4b160abde Move Network Manager bits into extensions
- use Chrony with Network Manager
- use timesync with systemd-networkd
- use NetPlan with Network manager only
- move command-not-found to CLI image only
- improve firstlogin ip detection
2024-06-20 19:59:52 +02:00
Echoo
3096ee452d Add new user to render group 2024-05-18 09:47:24 +01:00
Alex
fe64f1f435 RFC: disable ssh.service - enable ssh.socket AND switch firstlogin reload ssh to restart (#6586)
* reload-or-restart ssh prevents botching if sshd is started by a systemd socket
* restart ssh prevents botching if sshd is started by a systemd socket
* move sshd activation from ssh.service to ssh.socket:
- more realiable, avoids possible race condition on first boot
- supplementary to PR#6586 - and commits ffee50a8a6 and 6725032191
* Add display_alert explaining the change in SSH activation
2024-05-17 15:30:13 +02:00
Igor
c16151bed0 Add KDE Neon DE which provides latest and greates KDE DE v6.x (#6380)
* Add KDE Neon DE which provides latest and greates KDE DE v6.x
* Fixing most obvious problems
2024-03-09 19:49:59 +01:00
Igor Pecovnik
c2fe587716 Unifying style of variables 2024-03-03 16:08:04 +01:00
amazingfate
86865a446b move firstrun network config to firstlogin 2024-03-03 16:08:04 +01:00
amazingfate
cab0022fa9 add automatic support to armbian-firstlogin 2024-03-03 16:08:04 +01:00
Igor Pecovnik
d6391e491a Expand firstlogin config to support sddm autologin hack for 1st run 2024-03-03 15:39:34 +01:00
Gunjan Gupta
91d329a66a armbian-firstlogin: fix locale list to include missing locales 2023-12-27 11:54:53 +01:00
Igor
6bcf74f2e7 Anonymize default build engine settings (#5865)
Improve naming confusion by changing build framework defaults. Set framework defaults VENDOR to Armbian-unofficial for self build images. Unsupported boards and unsupported distribution have framework defaults, except VENDOR and VENDORURL. We build images with predefined values.
2023-11-15 22:00:21 +01:00
Igor
47612c3426 Suppress locale warnings at first run when connecting via SSH (#4976)
* Suppress locale warnings at first run when connecting via SSH
* Move functionality to armbian firstlogin and firstrun scripts
2023-11-15 21:29:45 +01:00
Ricardo Pardini
5365d62e3a armbian-firstlogin: better dm detection + add simple no-op sddm support + gdm3 fixes 2023-10-14 00:01:07 +02:00
Ricardo Pardini
d4b5aa5987 armbian-firstlogin: shellfmt, no changes 2023-10-14 00:01:07 +02:00
marcone
dd5fb3e3f8 armbian-firstlogin: allow empty user password (#5738)
Call the 'passwd' command with the right arguments depending on whether
the user entered a password or not.
2023-09-23 19:14:10 -07:00
Richard Neese
b5e9774eda Adding support for new desktops (#5367) 2023-06-22 20:21:09 +02:00
Igor
aba5df4689 Remove postinst manipulation as its not needed. SKEL is copied at user creation, psd at first run
Also fix executing bit at armbian-firstlogin script
2023-05-23 16:34:56 +02:00
Pander
11c967322d installer prompt fix 2023-05-09 10:05:23 +02:00
Pander
26fb31cfbf require Enter for all promts at first login 2023-04-22 20:07:50 +02:00
hzy
2a9279c27d armbian-firstlogin: Make sure that the first charactor of username isn't number 2023-03-29 23:22:04 +02:00
Igor
5de120edfe Allow numbers in username 2023-03-27 23:24:35 +02:00
Igor Pečovnik
e71d8dba10 Clenup minimal and server lists (#4893) 2023-03-02 22:44:47 +01:00
Marco Nelissen
e8f441a7e3 armbian-firstlogin: fix root password handling
Root password was only applied when it was weak. The intention was
probably to warn when it was weak, but apply it regardless, so
make it so.
2022-11-28 18:10:54 -08:00
Marco Nelissen
40effe1d23 armbian-firstlogin: remove unnecessary check
Commit c909864922 removed a prompt
asking the user if they want to change display settings, but didn't
remove the checks that later used the answer. Since it's been like
this for 2 years now apparently without issue, remove the checks and
the shellcheck workaround.
2022-11-28 18:10:54 -08:00
marcone
e52958db93 armbian-firstlogin: make Y/n questions consistent (#4489)
Make the two Y/n questions that firstlogin asks behave consistently
with each other, and more in line with user expectation:
- Reject anything that is not Y, y, N, n or <enter>. Previously the
  "Connect via wireless? [Y/n]" question would interpret Y, y and
  <enter> as "yes", and everything else as "no", whereas the
  "Set user language based on your location? [Y/n]" question would
  loop until the user selected Y, y, N or n.
- Make pressing enter equivalent to the default "Y", since that
  is the capitalized option.
- Echo back what the user typed.
2022-11-27 21:45:03 +01:00
marcone
e5f234c324 armbian-firstlogin: fix shellcheck issues (#4494)
Fix all shellcheck issues, as well as some formatting/indentation.
2022-11-27 21:44:16 +01:00
schwar3kat
86fce751a5 armbian-firstlogin-make-password-warning-messages-consistent (#4457) 2022-11-17 17:43:21 +01:00
Igor Pečovnik
3f1fe17d9c Don't block but warn user on weak password (#4436)
* Don't block but warn user on weak password

* Previous fix was done only for user
2022-11-15 20:19:59 +01:00
Igor Pečovnik
58ed41d385 Fix two small cosmetic bug (#4357)
- debian showed not supported due to absence of lsb-release
- motd didn't address displaying update aval correct
2022-10-27 18:51:58 +02:00
Igor Pečovnik
15078ba0a1 Bugfix / cusmetic / race condition for scaling enablement (#4221) 2022-09-23 19:05:45 +02:00