Lmn 7.2 testing

Hallo Matthias,

der systemd schränkt die Rechte des rsync-Dienste ein, so dass der nicht die devices.csv ändern darf.

Lösung:
Lege eine Datei unter
/etc/systemd/system/rsync.service.d/override.conf
mit folgendem Inhalt an:

[Service]
ProtectSystem=true

Danach
systemctl daemon-reload
systemctl restart rsync.service

Das erlaubt dem rsync-Service das Schreiben unter /etc.

Siehe systemd.exec, Abschnitt Sandboxing.

Muss erst noch schauen, wie ich das per Paketupdate ausgerollt kriege.

VG, Thomas

Hallo Thomas,
vielen Dank für deine schnelle Reaktion. Sobald ich zu Hause bin, probier‘ ich‘s aus und werde dir Rückmelden, ob alles geklappt hat.
Gruß,
Mathias

Hallo Thomas,

Es hat geklappt. Top!!!
Gruß,
Mathias

Hallo Lars,

Das ist gerade in Bearbeitung im neuen Session Plugin, muss ich aber erst mit den anderen Entwiklern klären, wie wir es einbauen.

Gruß

Arnaud

Hallo Thomas,

tolles Feature. Ich habe es in der Doku unter LINBO4 nutzen — linuxmuster.net 7.1 Dokumentation aufgenommen.

Da mir hier die Erfahrung für deren Einsatz noch fehlt, wäre es evtl. hilfreich noch weitere Anwendungsbeispiele zu haben bzw. auch das ein oder andere Beispielskript.

Schau mal, ob die Doku das Feature und dessen Anwendung richtig beschreibt.

LG
Chris

Hallo zusammen,

Dieser Commit löst bei mir das Problem mit dem Quota : Fix quota calculation by kiarn · Pull Request #169 · linuxmuster/sophomorix4 · GitHub

Es geht nur darum, die Option -mNT1 in sophomorix-query zu entfernen. Es wäre gut, wenn andere es auch probieren könnten.

Gruß

Arnaud

Hallo Chris,

sehr gut! :grinning: Allerdings ist mir der Zweck des Beispielskripts nicht klar. update-linbofs wird ja auf dem Server ausgeführt. pre-hook kann dazu genutzt werden, im Dateisystem von linbofs eigene Anpassungen vorzunehmen, als letzten Schritt bevor linbofs64.lz gepackt wird. post-hook kann dazu genutzt werden, irgendetwas auf dem Server auszuführen, wenn update-linbofs seinen Job getan hat.

Im Falle von pre-hook könnte mensch z.B. eine angepasste .ssh/authorized_keys oder .env bereitstellen.

Ich denke, dass mit der Zeit Beispiele aus der Community kommen werden.

VG, Thomas

Hallo Arnaud,

ich hab mein server auf die aktueleln Pakete upgedatet.
Dann hab ich in der Datei /usr/sbin/sophomorix-query
in der Zeile 1066 das
mNT1

entfernt (also nicht in der Zeile 1068, wie es hier beschrieben ist:

)

Danach funktioniert das Quota in der WebUI wieder.

Außerdem hab ich eine Datei per Austeilen (mittels Drag n Drop) an zwei
Schüler über die WebUI ausgeteilt: das geht nun also auch wieder

LG

Holger

Hallo,

kann ich bestätigen, nachdem ich in Zeil 1066 das -mNT1 entfernt habe ging die Quota.

Das Austeilen will bei mir leider immernoch nicht :confused:

Ich werde die LML glaube mal neu installieren müssen.

Grüße
Michael

Hallo Holger,
ich habe das auch so gemacht … aber im WebUI (als User angemeldet!) sieht es weiterhin so aus:

Hoppla – offenbar dauert die Aktualisierung etwas … ein paar Sekunden später stimmte alles:
Screenshot_20230724_101539
Alles bestens. Das funktioniert hier nun also auch wieder. Super!

Viele Grüße,
Michael

Hallo,

nachdem Holger in einem anderen Thread schrieb:

will ich doch mal nachbohren:
„Keine Updates“ bedeutet ja auch: Keine Sicherheitspatches.

Bei docs.linuxmuster.net steht aber weiterhin:

Was denn nun: Soll man auf den Produktivservern die Lmn 7.2 jetzt (Ferien stehen vor der Tür) installieren, weil Ubuntu 18.01 ohne (Standard-)Support ist, oder noch nicht, weil die 7.2 noch im Status „testing - Beta“ verharrt? Im laufenden Schuljahr update ich nicht - und viele andere wahrscheinlich auch nicht.

Also wäre doch JETZT die Zeit zu sagen:

Steigt jetzt um
oder:
Wartet noch ein Jahr

Viele Grüße,
Stefan

Hallo Stefan,

steig jetzt um.

LG

Holger

Moingiorno!

linuxmuster-prepare 7.2.2 ist jetzt im 7.2-Repo verfügbar:

  • Merge pull request #25 from linuxmuster/remove-gateway4 (081d11f).

Credits @Arnaud

VG, Thomas

Guten Abend allerseits!

Hier kommt linuxmuster-linbo7 4.1.32:

  • Update kernel to 6.4.5 (e049c01).
  • Removed correction of registry key paths from regpatcher (bf571a5).
  • Improved function validmac in helperfunctions (3e3e4ad).
  • Fix rsync service’s write permissions to /etc (cdd2ea6).
  • Added i2c drivers (#96, 442ec03).
  • Merge pull request #98 from netzint/update-zeroing-pv (5dab3c7).
  • Revert 5b23751 (bbeff5f).
  • Moved linbofs build script to last position (71ae29b).

I.W. enthält das Release Fixes für

  • Regpatcher, der reg-Dateien nicht mehr korrigiert,
  • das Nullen der Partition beim Image erstellen (Credits @Till),
  • Touchpad-Treiber (bitte testen),
  • Rechner-Registrierung per linbo_gui (s. Lmn 7.2 testing - #293 von thomas).

VG, Thomas

2 „Gefällt mir“

Hallo Thomas,

wenn ich das jetzt richtig verstehe, kann man jetzt direkt die 7.2 installieren ?

Grüße,
Kevin

Hallo Kevin,

so ist es. :grinning:

VG, Thomas

1 „Gefällt mir“

Hi zusammen,

in der Anleitung zum Update auf die 7.2 (B E T A: Update auf lmn 7.2 — linuxmuster.net 7.1 Dokumentation) steht am Schluss dass man das Betriebsystem synchronisieren soll. Ist das wirklich notwendig oder sollte eine Anmeldung auch ohne Synchronisation funktionieren?

Liebe Grüße
Frank

Beim Prepare kommt leider folgender Fehler:

### lmn-prepare
## Profile: server
## Network
Enter network interface to use ['ens18']: 
Enter host ip address with net or bitmask [10.0.0.1/16]: 10.26.30.1/23
Enter firewall ip address [10.26.30.254]: 10.26.31.254
Enter gateway ip address [10.26.31.254]: 
Enter hostname [server]: 
Enter hostname [linuxmuster.lan]: xxxx.lmschule.de
## LVM
Enter physical device to use for LVM [/dev/sdb]: 
Enter lvm volumes definition [var:150,linbo:750,global:150,default-school:100%FREE]: 
## Swap
Enter swap size in GiB [2]: 
## Installing updates
OK:1 http://de.archive.ubuntu.com/ubuntu jammy InRelease
OK:2 http://de.archive.ubuntu.com/ubuntu jammy-updates InRelease
OK:3 https://deb.linuxmuster.net lmn72 InRelease        
OK:4 http://de.archive.ubuntu.com/ubuntu jammy-backports InRelease
OK:5 http://de.archive.ubuntu.com/ubuntu jammy-security InRelease
Paketlisten werden gelesen… Fertig
(Lese Datenbank ... 80547 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von eatmydata (130-2build1) ...
Entfernen von libeatmydata1:amd64 (130-2build1) ...
Entfernen von python3-jinja2 (3.0.3-1) ...
Entfernen von python3-babel (2.8.0+dfsg.1-7) ...
Entfernen von python-babel-localedata (2.8.0+dfsg.1-7) ...
Entfernen von python3-requests (2.25.1+dfsg-2ubuntu0.1) ...
Entfernen von python3-certifi (2020.6.20-1) ...
Entfernen von python3-jsonpatch (1.32-2) ...
Entfernen von python3-json-pointer (2.0-0ubuntu1) ...
Entfernen von python3-jsonschema (3.2.0-0ubuntu2) ...
Entfernen von python3-markupsafe (2.0.1-2build1) ...
Entfernen von python3-pyrsistent:amd64 (0.18.1-1build1) ...
Entfernen von python3-tz (2022.1-1ubuntu0.22.04.1) ...
Entfernen von python3-urllib3 (1.26.5-1~exp1) ...
Trigger für man-db (2.10.2-1) werden verarbeitet ...
Trigger für libc-bin (2.35-0ubuntu3.1) werden verarbeitet ...
## Remove unnecessary stuff
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Paket »lxc« ist nicht installiert, wird also auch nicht entfernt.
Paket »lxc-utils« ist nicht installiert, wird also auch nicht entfernt.
Paket »lxcfs« ist nicht installiert, wird also auch nicht entfernt.
Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
  squashfs-tools
Verwenden Sie »apt autoremove«, um es zu entfernen.
Die folgenden Pakete werden ENTFERNT:
  snapd*
0 aktualisiert, 0 neu installiert, 1 zu entfernen und 0 nicht aktualisiert.
Nach dieser Operation werden 102 MB Plattenplatz freigegeben.
(Lese Datenbank ... 79468 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von snapd (2.58+22.04.1) ...
Stopping snap.lxd.activate.service
Stopping unit snap.lxd.activate.service
Waiting until unit snap.lxd.activate.service is stopped [attempt 1]
snap.lxd.activate.service is stopped.
Stopping snap.lxd.daemon.service
Stopping unit snap.lxd.daemon.service
Waiting until unit snap.lxd.daemon.service is stopped [attempt 1]
snap.lxd.daemon.service is stopped.
Stopping snap.lxd.user-daemon.service
Stopping unit snap.lxd.user-daemon.service
Waiting until unit snap.lxd.user-daemon.service is stopped [attempt 1]
snap.lxd.user-daemon.service is stopped.
Stopping snap.lxd.daemon.unix.socket
Stopping unit snap.lxd.daemon.unix.socket
Waiting until unit snap.lxd.daemon.unix.socket is stopped [attempt 1]
snap.lxd.daemon.unix.socket is stopped.
Stopping snap.lxd.user-daemon.unix.socket
Stopping unit snap.lxd.user-daemon.unix.socket
Waiting until unit snap.lxd.user-daemon.unix.socket is stopped [attempt 1]
snap.lxd.user-daemon.unix.socket is stopped.
Warning: Stopping snapd.service, but it can still be activated by:
  snapd.socket
Trigger für dbus (1.12.20-2ubuntu4.1) werden verarbeitet ...
Trigger für man-db (2.10.2-1) werden verarbeitet ...
(Lese Datenbank ... 79374 Dateien und Verzeichnisse sind derzeit installiert.)
Löschen der Konfigurationsdateien von snapd (2.58+22.04.1) ...
Stopping snap.lxd.activate.service
Stopping unit snap.lxd.activate.service
Waiting until unit snap.lxd.activate.service is stopped [attempt 1]
snap.lxd.activate.service is stopped.
Removing snap.lxd.activate.service
Stopping snap.lxd.daemon.service
Stopping unit snap.lxd.daemon.service
Waiting until unit snap.lxd.daemon.service is stopped [attempt 1]
snap.lxd.daemon.service is stopped.
Removing snap.lxd.daemon.service
Stopping snap.lxd.user-daemon.service
Stopping unit snap.lxd.user-daemon.service
Waiting until unit snap.lxd.user-daemon.service is stopped [attempt 1]
snap.lxd.user-daemon.service is stopped.
Removing snap.lxd.user-daemon.service
Stopping snap-core20-1822.mount
Stopping unit snap-core20-1822.mount
Waiting until unit snap-core20-1822.mount is stopped [attempt 1]
snap-core20-1822.mount is stopped.
Removing snap core20 and revision 1822
Removing snap-core20-1822.mount
Stopping snap-lxd-24322.mount
Stopping unit snap-lxd-24322.mount
Waiting until unit snap-lxd-24322.mount is stopped [attempt 1]
snap-lxd-24322.mount is stopped.
Removing snap lxd and revision 24322
Stopping unit snap.lxd.user-daemon.unix.socket
Waiting until unit snap.lxd.user-daemon.unix.socket is stopped [attempt 1]
snap.lxd.user-daemon.unix.socket is stopped.
Stopping unit snap.lxd.daemon.unix.socket
Waiting until unit snap.lxd.daemon.unix.socket is stopped [attempt 1]
snap.lxd.daemon.unix.socket is stopped.
Stopping unit snap.lxd.user-daemon.unix.socket
Waiting until unit snap.lxd.user-daemon.unix.socket is stopped [attempt 1]
snap.lxd.user-daemon.unix.socket is stopped.
Stopping unit snap.lxd.daemon.unix.socket
Waiting until unit snap.lxd.daemon.unix.socket is stopped [attempt 1]
snap.lxd.daemon.unix.socket is stopped.
Removing snap-lxd-24322.mount
Stopping snap-snapd-18357.mount
Stopping unit snap-snapd-18357.mount
Waiting until unit snap-snapd-18357.mount is stopped [attempt 1]
snap-snapd-18357.mount is stopped.
Removing snap snapd and revision 18357
Removing snap-snapd-18357.mount
Discarding preserved snap namespaces
Final directory cleanup
Removing extra snap-confine apparmor rules
Removing snapd cache
Removing snapd state
## LVM
# Creating physical volume /dev/sdb.
  Physical volume "/dev/sdb" successfully created.
# Creating volume group vg_srv.
  Volume group "vg_srv" successfully created
# Creating logical volume var.
  Logical volume "var" created.
mke2fs 1.46.5 (30-Dec-2021)
Discarding device blocks: done                            
Creating filesystem with 39321600 4k blocks and 9830400 inodes
Filesystem UUID: c70e841a-1996-4804-9c52-6d13e633b842
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done     

# Creating logical volume linbo.
  Logical volume "linbo" created.
mke2fs 1.46.5 (30-Dec-2021)
Discarding device blocks: done                            
Creating filesystem with 196608000 4k blocks and 49152000 inodes
Filesystem UUID: 73a4b34d-d2c9-46ad-9fdd-4156f210152c
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
        102400000

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done     

# Creating logical volume global.
  Logical volume "global" created.
mke2fs 1.46.5 (30-Dec-2021)
Discarding device blocks: done                            
Creating filesystem with 39321600 4k blocks and 9830400 inodes
Filesystem UUID: f5bb006a-92f8-47f7-97f9-f589c96a8d1f
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done     

# Creating logical volume default-school.
  Logical volume "default-school" created.
mke2fs 1.46.5 (30-Dec-2021)
Discarding device blocks: done                            
Creating filesystem with 1035467776 4k blocks and 258867200 inodes
Filesystem UUID: 5cc94d70-57e9-483f-a8d1-a76e77f93008
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
        102400000, 214990848, 512000000, 550731776, 644972544

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done       

# Writing /etc/fstab.
# Moving /var.
# Activating quota.
quotacheck: Your kernel probably supports ext4 quota feature but you are using external quota files. Please switch your filesystem to use ext4 quota feature as external quota files on ext4 are deprecated.
quotacheck: Scanning /dev/mapper/vg_srv-global [/srv/samba/global] done
quotacheck: Cannot stat old user quota file /srv/samba/global/aquota.user: No such file or directory. Usage will not be subtracted.
quotacheck: Cannot stat old group quota file /srv/samba/global/aquota.group: No such file or directory. Usage will not be subtracted.
quotacheck: Cannot stat old user quota file /srv/samba/global/aquota.user: No such file or directory. Usage will not be subtracted.
quotacheck: Cannot stat old group quota file /srv/samba/global/aquota.group: No such file or directory. Usage will not be subtracted.
quotacheck: Checked 3 directories and 0 files
quotacheck: Old file not found.
quotacheck: Old file not found.
quotacheck: Scanning /dev/mapper/vg_srv-default--school [/srv/samba/schools/default-school] done
quotacheck: Cannot stat old user quota file /srv/samba/schools/default-school/aquota.user: No such file or directory. Usage will not be subtracted.
quotacheck: Cannot stat old group quota file /srv/samba/schools/default-school/aquota.group: No such file or directory. Usage will not be subtracted.
quotacheck: Cannot stat old user quota file /srv/samba/schools/default-school/aquota.user: No such file or directory. Usage will not be subtracted.
quotacheck: Cannot stat old group quota file /srv/samba/schools/default-school/aquota.group: No such file or directory. Usage will not be subtracted.
quotacheck: Checked 3 directories and 0 files
quotacheck: Old file not found.
quotacheck: Old file not found.
## Installing software
E: Für Paket »sophomorix-samba« existiert kein Installationskandidat.
Checking linuxmuster-base7 ... Failed!

Ich habe gesehen das es noch kein sophomorix-samba Packet in dem 7.2 Repo gibt kann das sein ?

Ja, das wird aber aus dem lmn71-Repo geholt. Muss im Moment noch zusätzlich in /etc/apt/sources.list.d/lmn72.list eingetragen sein. Oder lmn-appliance nutzen (s. GitHub - linuxmuster/linuxmuster-prepare: Scripts and configuration templates to initially setup a virtual appliance for linuxmuster).

BTW, lvm ist optional, man kann auch nur eine Partition für alles nutzen.

VG, Thomas

1 „Gefällt mir“

Naja, aus einer Laune heraus wird das @Doku-Team es wohl kaum hingeschrieben haben.

VG, Thomas