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 17:13] – [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 gestire lo spazio in memoria volatici si usano le omologhe **%%Runtime*%%**:+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*%%**:
  
 ^  For persistent file system  ^^ ^  For persistent file system  ^^
-^ SystemMaxUse       | How much disk space the journal may use up at most. Default to **10%** of the partition where ''/var/log/journal/'' resides. +^ SystemMaxUse        | How much disk space the journal may use up at most. Default to **10%** of the partition where ''/var/log/journal/'' resides. 
-^ SystemKeepFree     | How much disk space systemd-journald shall leave free for other uses. | +^ SystemKeepFree      | How much disk space systemd-journald shall leave free for other uses. | 
-^ SystemMaxFileSize  | How large individual journal files may grow at most before rotating. +^ SystemMaxFileSize   | How large individual journal files may grow at most before rotating. 
-^ SystemMaxFiles     | How many individual journal files to keep at most in rotation.  |+^ SystemMaxFiles      | How many individual journal files to keep at most in rotation.  |
 ^  For volatile in-memory file system  ^^ ^  For volatile in-memory file system  ^^
-^ RuntimeMaxUse      |  |+^ RuntimeMaxUse       | In Debian, the default ''/run/log/journal/'', resides into the ''/run'' tempfs. 
 +^ RuntimeKeepFree     
 +^ RuntimeMaxFileSize  |  | 
 +^ RuntimeMaxFiles     |  |
 ^  Rotation  ^^ ^  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. +^ 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.  |+^ MaxRetentionSec     | The maximum time to store journal entries. If you need a retention shorter than the one imposed by SystemMaxUse.  |
  
 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 and to determine rotaton policy (rotate once a day, keep 366 files i.e. one year):
Line 236: 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.1765296820.txt.gz · Last modified: by niccolo