doc:appunti:linux:sa:debian_upgrade_12_13
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:debian_upgrade_12_13 [2025/12/09 14:30] – [Syslog] niccolo | doc:appunti:linux:sa:debian_upgrade_12_13 [2026/02/20 17:38] (current) – [Impostazioni locale LANG] niccolo | ||
|---|---|---|---|
| Line 39: | Line 39: | ||
| I log di sistema vengono creati secondo i criteri stabiliti in **/ | I log di sistema vengono creati secondo i criteri stabiliti in **/ | ||
| - | Anzitutto è possibile decidere se i log di sistema debbano essere conservati in **memoria | + | Anzitutto è possibile decidere se i log di sistema debbano essere conservati in **memoria |
| < | < | ||
| [Journal] | [Journal] | ||
| Storage=volatile | Storage=volatile | ||
| + | </ | ||
| + | |||
| + | Al restart del servizio systemd-journald viene creato la directory **/ | ||
| + | |||
| + | Per limitare lo spazio utilizzato su memoria permanente (filesystem su disco) si possono usare diverse opzioni **%%System*%%**, | ||
| + | |||
| + | ^ For persistent file system | ||
| + | ^ SystemMaxUse | ||
| + | ^ SystemKeepFree | ||
| + | ^ SystemMaxFileSize | ||
| + | ^ SystemMaxFiles | ||
| + | ^ For volatile in-memory file system | ||
| + | ^ RuntimeMaxUse | ||
| + | ^ RuntimeKeepFree | ||
| + | ^ RuntimeMaxFileSize | ||
| + | ^ RuntimeMaxFiles | ||
| + | ^ Rotation | ||
| + | ^ MaxFileSec | ||
| + | ^ MaxRetentionSec | ||
| + | |||
| + | This is an example on how to limit the disk space used and to determine rotaton policy (rotate once a day, keep 366 files i.e. one year): | ||
| + | |||
| + | < | ||
| + | [Journal] | ||
| + | SystemMaxUse=7G | ||
| + | SystemKeepFree=2G | ||
| + | SystemMaxFileSize=256M | ||
| + | SystemMaxFiles=366 | ||
| + | MaxFileSec=1day | ||
| </ | </ | ||
| Line 210: | Line 239: | ||
| export LESS=' | export LESS=' | ||
| </ | </ | ||
| + | |||
| + | ===== Impostazioni locale LANG ===== | ||
| + | |||
| + | Nelle versioni precedenti di Debian era possibile impostare una singola variabile **LC_** con il comando **localectl**. Ad esempio avendo impostato **LANG=en_US.UTF-8** (che prevede l'ora nel formato AM/PM) era comunque possibile impostare il formato a 24 ore con il comando: | ||
| + | |||
| + | < | ||
| + | localectl set-locale LC_TIME=C.UTF-8 | ||
| + | </ | ||
| + | |||
| + | Tale comando aggiungeva la variabile di ambiente al file **/ | ||
| + | |||
| + | < | ||
| + | localectl set-locale LC_TIME=C.UTF-8 | ||
| + | Failed to issue method call: Access denied | ||
| + | </ | ||
| + | |||
| + | Si tratta di una scelta intenzionale perché Debian ha il tool **update-locale**, | ||
| + | |||
| + | < | ||
| + | update-locale LANG=en_US.UTF-8 LC_TIME=C.UTF-8 | ||
| + | </ | ||
| + | |||
| + | Le impostazioni vengono salvate in **/ | ||
| + | |||
| + | |||
doc/appunti/linux/sa/debian_upgrade_12_13.1765287045.txt.gz · Last modified: by niccolo
