Commit Graph

256 Commits

Author SHA1 Message Date
Igor Pecovnik
a65cf4d9bb Remove ifupdown leftovers in the code 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
Lane Jennison
6f33e4f9ca armbian-hardware-optimize: add thought-provoking FIXMEs to inspire the next generation of tuners 2024-04-26 18:18:03 +08:00
Thomas Kaiser
26dec02ea1 Fully replace Armbian's former limited utilization of cpufrequtils package 2024-04-26 18:18:03 +08:00
Thomas Kaiser
71bd6633c6 Fix RK3588 NAS performance 2024-04-26 18:18:03 +08:00
Antony Kurniawan
4df3bddd64 ramlog: harden the zram mounting
this is to improve the score of /var/log for FILE-6374 in Lynis audit
2024-04-17 10:44:55 +00: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
Marco Nelissen
5ec50d8e5e armbian-resize-filesystem: fix off-by-one error
armbian-resize-filesystem wants to align partitions on 16 MB boundaries,
however due to an off-by-one error it would make the last sector of the
partition start at a 16 MB boundary instead of ending at a 16 MB boundary.
2024-02-28 15:36:10 +01:00
Didier 'OdyX' Raboud
9fe078eaac rockchip64: set the main ethernet interface optimizations to Helios64's end0 too 2024-01-26 08:38:53 +01:00
Didier 'OdyX' Raboud
9dba45a36f Helios64: Move irq smp_affinity optimisations to rockchip64
… as that's now its BOARDFAMILY
2024-01-26 08:38:53 +01:00
Igor Pecovnik
ea064e2698 Remove dangling symlink 2023-12-30 13:46:56 +01:00
Gunjan Gupta
91d329a66a armbian-firstlogin: fix locale list to include missing locales 2023-12-27 11:54:53 +01:00
Igor
c5c81a8b58 Move live patch to bsp extension and limit to startup patching (#6017)
* Move live patch to extension
* Move to the board support package and keep only startup patch
2023-12-14 10:36:44 +01:00
JuergenBausa
67e0bb2fbb Update armbian-ramlog
Original version destroyed journal on command postrotate as files in /var/log.hdd/journal are overwritten by cat. With the patch journal is not damaged anymore.
2023-12-09 07:55:10 +01:00
Igor
e95fbdcfad Add simple patch system as a standalone service (#5935)
Sometimes we need to fix minor issues like changing the key or fixing other small problem on live OS. We can ship this as a part of BSP package, but its handling should be made easy.

This downloads script from CDN, verify its signature and executes after apt upgrade starts installing packages.

* Record patch output to syslog
* Enable armbian-live-patch as additional service and run patch mechanism at startup
* Additional security check
2023-11-27 13:01:20 +01:00
Igor Pecovnik
64037fb9ba On Mantic this would throw out an error
Failed to restart sshd.service: Unit sshd.service not found
2023-11-25 08:27:41 +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
Jim Gregory
9ed7437fe2 fix: replace ifconfig in armbian-firstrun-config
ifconfig is no longer included in a default install of Armbian Bookworm, causing armbian-firstrun-config to silently fail when attempting to retrieve a list of network adapters.  Using nmcli instead.
2023-09-12 10:48:37 +02:00
Richard Neese
b5e9774eda Adding support for new desktops (#5367) 2023-06-22 20:21:09 +02:00
Markus Hoffrogge
5072966b44 armbian-install: use consistent logfile name and align the according /usr/lib folder name (#5340)
* armbian-install: The log file should be named identical to the originally called install script

- the log file should be named as:
  - /var/log/armbian-install.log if script armbian-install was originally called
  - /var/log/nand-sata-install.log
- same for directory /usr/lib/nand-sata-install:
  - rename this directory to /usr/lib/armbian-install
  - create a symbolic link nand-sata-install to this folder for backward compatibility
    in a subsequent commit
- abort script armbian-install with an error message:
  - if file ${EX_LIST} does not exist
  - if dir ${BOOTLOADER} does not exist
- remove the "beta" from the version title of armbian-install

* Add symlink /usr/lib/nand-sata-install to /usr/lib/armbian-install
2023-06-19 22:04:01 +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
Igor Velkov
9b68c4e42a Add support for nilfs2 fs based image
Signed-off-by: Igor Velkov <iav@iav.lv>
2023-05-16 08:51:05 +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
Matthijs Kooijman
da626d1502 armbian-audio-config: Fix muting and controls with spaces
In commit 0aa61abe7 (armbian-audio-config: Massively speed up script)
this script was changed to not call amixer for each control, but just
once for each card, feeding commands for many controls in one invocation
with the `--stdin` option.

In that commit, two errors were introduced:
 - Controls that were intended to be muted were turned on instead. This
   affects the "CD", "Mic" and "Internal Speaker" controls.

   This occured because there is a helper shell function whose arguments
   were renumbered, but the last argument kept the old numbering,
   keeping it always at the default value of "on", even when it should
   have been "mute".

 - Controls with a space in their name would be ignored. In the original
   script, arguments (including these names) were quoted and passed
   separately to the `amixer` command. Now, they are quoted when passed
   to `echo`, but that produces an unstructured line with the quoting
   removed that can no longer be correctly parsed by amixer for names
   with spaces.

This commit fixes both problems be correctly numbering the arguments and
adding an additional layer of quoting.
2023-04-17 13:43:30 +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
M. Efe Çetin
1b423adf2f Add rockchip-rk3588 board family to armbian-hardware-optimization (#4838)
* Add rockchip-rk3588 board family to armbian-hardware-optimization

* Update armbian-hardware-optimization
2023-02-17 22:37:48 +01:00
Oleg
eb7b1aa1d1 fix kernel edge for Jetson Nano (#4719) 2023-01-20 18:43:42 +01:00
Matthijs Kooijman
0aa61abe78 armbian-audio-config: Massively speed up script (#4549)
* armbian-audio-config: Massively speed up script

This script calls amixer to set various mixer volumes, by simply trying
a bunch of mixer names for each sound card in the system. In practice,
this meant the amixer command was called 158 times for each sound card.
The overhead of all these forks and probably also amixer startup added
together to produce a noticable slowdown in startup.

For example on an Orange Pi PC, the script took about 6 seconds per
soundcard. This was on a system with a few extra USB soundcards (6 alsa
cards in total):

    $ time bash ./armbian-audio-config.original

     real    0m35.662s
     user    0m20.145s
     sys     0m15.145s

This commit modifies the script to spawn amixer only once per alsa card,
passing all the mixer set commands through stdin. This pretty much
completely kills the slowdown. On the same 6-card system:

    $ time bash ./armbian-audio-config

    real    0m0.406s
    user    0m0.345s
    sys     0m0.229s

* armbian-audio-config: Add quotes to fix lint errors
2022-12-12 08:15:35 +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
Igor Pečovnik
d01e3519a8 We need to follow redirect with Curl (#4456)
* We need to follow redirect with Curl

* Update armbian-apt-updates
2022-11-17 17:43:58 +01:00
schwar3kat
86fce751a5 armbian-firstlogin-make-password-warning-messages-consistent (#4457) 2022-11-17 17:43:21 +01:00