Files
chemenu/raw/notes/Arch Linux Cheat Sheet.md
T
torben 18ae28f918
CI / verify (push) Failing after 32s
Release / release (push) Successful in 38s
Chemenu 2.1.0 - deterministischer Wissenskompiler
Chemenu kompiliert Rohnotizen zu einem verlinkten, quellengebundenen Wiki:
raw/ -> types/ + tools/ -> kb/ -> reports/. Was mechanisch ist, macht
tools/wikitool; was Urteil braucht, macht ein Agent unter Contracts, deren
Grenzen in Code durchgesetzt sind statt im Prompt.

Dieser Commit ist der Startpunkt der oeffentlichen Historie. Die vorherige
Entwicklung fand in einer privaten Instanz statt und ist nicht Teil dieses
Repositorys; ihre Erzaehlung steht vollstaendig in CHANGES.md, das mit 44
Eintraegen von 0.1.0 bis 2.1.0 erhalten geblieben ist.

Der mitgelieferte Korpus ist ein Testbett und eine Demo: 170 Seiten ueber den
Stack selbst - Gates, Lint, Versionierung, Suche, das Wiki-Muster. Er
dokumentiert das Werkzeug mit den eigenen Mitteln des Werkzeugs.

Lizenz: AGPL-3.0 fuer den Stack (tools/, types/), CC-BY-4.0 fuer die Inhalte.
Die Grenze zwischen beiden ist der Dateiplan, den dist export berechnet -
siehe NOTICE.
2026-09-01 16:26:14 +02:00

2.0 KiB

Arch Linux Cheat Sheet

AUR / Aura / Makepkg

Alternative Build Directory:

export BUILDDIR=/var/cache/makepkg-local
sudo --preserve-env=BUILDDIR aura -Axac proton --build $BUILDDIR

GPG Keys für AUR müssen im User-GPG eingefügt werden, nicht im Root GPG:

gpg --recv-key B94556F81C85D0D5

SSD Trim + DMCrypt

https://wiki.archlinux.org/title/Dm-crypt/Specialties#Discard/TRIM_support_for_solid_state_drives_(SSD)

Online resize Crypt+LVM Disk

# Expand the disc in ESXi
# Rescan SCSI to see expanded disk
echo "1" > /sys/class/block/sdb/device/rescan
# Check if everything went well
fdisk -l /dev/xyz
# if it didn't, you might have to reboot
cryptsetup status crypted
# Expand the LUKS partition and verify size 
cryptsetup status crypted
cryptsetup resize crypted
cryptsetup status crypted
# Resize the LVM PV, check
pvresize /dev/mapper/crypted
pvsdisplay
# Now allocate space to the volume
lvresize -L+750g /dev/isp/owncloud
lvs
# And resize the fs
resize2fs /dev/mapper/isp-owncloud
df -h

References

User Management

UNIX / Linux : How to lock or disable an user account

To lock a users account use the command usermod -L or passwd -l. Both the commands adds an exclamation mark (“!”) in the second field of the file /etc/passwd. For example :

# usermod -L testuser

or

# passwd -l testuser

Check if the user account is locked. Check for the flag LK in the below command output which indicates that the account is locked.

# passwd --status root
root ***LK*** 2017-07-19 0 45 7 -1 (Password set, SHA512 crypt.)

Alle AUR Python Pakete reinstallieren (Python Version Update)

aura -A $(pacman -Qqm | xargs -I {} pacman -Ql {} | grep "/usr/lib/python3.12/site-packages" | cut -d'/' -f1)