User Tools

Site Tools


docs:tips_n_tricks:debian:index.html

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
Next revisionBoth sides next revision
docs:tips_n_tricks:debian:index.html [08.11.2019 11:40 CET] – [/etc/apt/apt.conf.d/myconf] peterdocs:tips_n_tricks:debian:index.html [17.03.2023 15:17 CET] – [Building Packages] peter
Line 55: Line 55:
 </code> </code>
  
 +See:
 +  * https://wiki.debian.org/AptConfiguration#apt_preferences_.28APT_pinning.29
 ===== Change timezone ===== ===== Change timezone =====
 To change the timezone of a running systems, issue To change the timezone of a running systems, issue
Line 60: Line 62:
   tzconfig   tzconfig
  
-or+or((for newer versions of Debian))
  
   dpkg-reconfigure tzdata   dpkg-reconfigure tzdata
  
 depending on your version of Debian. depending on your version of Debian.
 +
 +For unattended installations, the following **may** work:
 +
 +  debconf-set-selections tzdata.debconf
 +
 +<code text tzdata.debconf>
 +tzdata tzdata/Areas select Europe
 +# tzdata tzdata/Areas seen false
 +tzdata tzdata/Zones/Europe select Berlin
 +# tzdata tzdata/Zones/Europe seen false
 +</code>
  
 ===== NFS Workaround ===== ===== NFS Workaround =====
Line 87: Line 100:
   dch -l .ul~lenny -D lenny   dch -l .ul~lenny -D lenny
   dpkg-buildpackage -rfakeroot   dpkg-buildpackage -rfakeroot
 +
 +===== Make Monday the first day of week in US locales =====
 +
 +This works e.g. for the [[https://docs.xfce.org/xfce/xfce4-panel/clock|Clock xfce4-panal applet]].
 +
 +Do as //root//:
 +
 +  sed -e 's/^week.*$/&\nfirst_weekday\t2/g' /usr/share/i18n/locales/en_US  > /usr/local/share/i18n/locales/en_US
 +  locale-gen
 +
 +<note>
 +GOSH! :-o\\
 +Yeah - it's as easy as that. The tricky part is to what to do 8-)
 +</note>
 +__References:__
 +
 +  * [[https://www.reddit.com/user/mozycan/|mozycan]]'s [[https://www.reddit.com/r/xfce/comments/baq8xg/comment/ekdiob5|answer to "Can I make panel's calendar week start on Monday instead of Sunday?"]] on Reddit
 +  * ''less /usr/sbin/locale-gen''
 +Also quite interesting while not directly related to //my// solution:
 +  * [[https://unix.stackexchange.com/users/5462/0xc0000022l|0xC0000022L]]'s [[https://unix.stackexchange.com/a/204329|answer to "Change a locale definition (as opposed to a locale setting)"]] on Stackexchange.
 +
  
 {{tag>Linux Debian}} {{tag>Linux Debian}}
 {{entry>Linux}} {{entry>Linux}}
 {{entry>Debian}} {{entry>Debian}}
docs/tips_n_tricks/debian/index.html.txt · Last modified: 23.09.2023 01:48 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki