User Tools

Site Tools


doc:appunti:linux:sa:debian_upgrade_12_13

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:linux:sa:debian_upgrade_12_13 [2025/12/09 15:02] – [Syslog] niccolodoc:appunti:linux:sa:debian_upgrade_12_13 [2026/02/20 17:38] (current) – [Impostazioni locale LANG] niccolo
Line 46: Line 46:
 </file> </file>
  
-Al restart del servizio systemd-journald viene creato un opportuno punto di montaggio in **tmpfs**.+Al restart del servizio systemd-journald viene creato la directory **/run/log/journal/** in **tmpfs**.
  
-Per limitare lo spazio utilizzato su memoria permanente (filesystem su disco) si possono usare diverse opzioni **%%System*%%**:+Per limitare lo spazio utilizzato su memoria permanente (filesystem su disco) si possono usare diverse opzioni **%%System*%%**, per gestire lo spazio in memoria volatile si usano le omologhe **%%Runtime*%%**:
  
-^ SystemMaxUse       | How much disk space the journal may use up at most. Default to **10%** of the partition where ''/var/log/journal/'' resides. +^  For persistent file system  ^^ 
-^ SystemKeepFree     | How much disk space systemd-journald shall leave free for other uses. | +^ SystemMaxUse        | How much disk space the journal may use up at most. Default to **10%** of the partition where ''/var/log/journal/'' resides. 
-^ SystemMaxFileSize  | How large individual journal files may grow at most before rotating. +^ SystemKeepFree      | How much disk space systemd-journald shall leave free for other uses. | 
-^ SystemMaxFiles     | How many individual journal files to keep at most in rotation.  |+^ SystemMaxFileSize   | How large individual journal files may grow at most before rotating. 
 +^ SystemMaxFiles      | How many individual journal files to keep at most in rotation.  | 
 +^  For volatile in-memory file system  ^^ 
 +^ RuntimeMaxUse       | In Debian, the default ''/run/log/journal/'', resides into the ''/run'' tempfs. 
 +^ RuntimeKeepFree     
 +^ RuntimeMaxFileSize  |  | 
 +^ RuntimeMaxFiles     
 +^  Rotation  ^^ 
 +^ MaxFileSec          | The maximum time to store entries in a single journal file before rotating to the next one. Use it to ensure that not too much data is lost at once when old journal files are deleted. 
 +^ MaxRetentionSec     | The maximum time to store journal entries. If you need a retention shorter than the one imposed by SystemMaxUse.  |
  
-^ MaxFileSec         +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):
- +
-This is an example on how to limit the disk space used:+
  
 <file> <file>
Line 63: Line 70:
 SystemMaxUse=7G SystemMaxUse=7G
 SystemKeepFree=2G SystemKeepFree=2G
 +SystemMaxFileSize=256M
 +SystemMaxFiles=366
 +MaxFileSec=1day
 </file> </file>
  
Line 229: Line 239:
 export LESS='-iR' export LESS='-iR'
 </code> </code>
 +
 +===== 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:
 +
 +<code>
 +localectl set-locale LC_TIME=C.UTF-8
 +</code>
 +
 +Tale comando aggiungeva la variabile di ambiente al file **/etc/default/locale**. Con Debian Trixie lo stesso comando produce un errore:
 +
 +<code>
 +localectl set-locale LC_TIME=C.UTF-8
 +Failed to issue method call: Access denied
 +</code>
 +
 +Si tratta di una scelta intenzionale perché Debian ha il tool **update-locale**, che può essere usato ad esempio in questo modo:
 +
 +<code>
 +update-locale LANG=en_US.UTF-8 LC_TIME=C.UTF-8
 +</code>
 +
 +Le impostazioni vengono salvate in **/etc/locale.conf** e il vecchio ''/etc/default/locale'' è diventato un link simbolico ad esso.
 +
 +
  
doc/appunti/linux/sa/debian_upgrade_12_13.1765288936.txt.gz · Last modified: by niccolo