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
Last revisionBoth sides next revision
docs:tips_n_tricks:debian:index.html [16.02.2020 21:49 CET] – [Change timezone] peterdocs:tips_n_tricks:debian:index.html [16.09.2023 23:26 CEST] – [Disabling systemd-resolved] peter
Line 57: Line 57:
 See: See:
   * https://wiki.debian.org/AptConfiguration#apt_preferences_.28APT_pinning.29   * https://wiki.debian.org/AptConfiguration#apt_preferences_.28APT_pinning.29
 +
 +==== Manage Repositories GPG Keys ====
 +
 +[[https://askubuntu.com/a/1307181|You need to know why apt-key add is deprecated]]
 ===== Change timezone ===== ===== Change timezone =====
 To change the timezone of a running systems, issue To change the timezone of a running systems, issue
Line 62: Line 66:
   tzconfig   tzconfig
  
-or((for newer versions of Debian))+or((for later versions of Debian))
  
   dpkg-reconfigure tzdata   dpkg-reconfigure tzdata
Line 88: Line 92:
  
   update-locale LANG=C LC_CTYPE=de_DE LANGUAGE   update-locale LANG=C LC_CTYPE=de_DE LANGUAGE
 +{{tag>locale}} 
 +{{entry>locale}}
 ===== Building Packages ===== ===== Building Packages =====
  
Line 101: Line 106:
   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//:
 +
 +  mkdir -vp /usr/local/share/i18n/locales/
 +  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>locale Xfce}}
 +{{entry>locale}}
 +{{entry>Xfce}}
 +===== Disabling systemd-resolved =====
 +//This was actually tried with success on a //Linux Mint 20 Ulyana//, but I assume it works pretty much the same on //Debian// and all its derivatives//
 +
 +The most easy way would be to uninstall //systemd-resolved//, but as it is bundled with //systemd// which unfortunately is a crucial part of //Debian// meanwhile, this ist not possible.
 +
 +<code bash>
 +apt install resolveconf
 +systemctl disable systemd-resolved
 +vi /etc/NetworkManager/conf.d/10-dns-resolved.conf
 +</code>
 +We need to override ''/usr/lib/NetworkManager/conf.d/10-dns-resolved.conf'', therefore the file name does not really match its purpose((Actually, you should adapt the name, if the respective file in ''/usr/lib/NetworkManager/conf.d/'' has a different name)):
 +
 +<code plain /etc/NetworkManager/conf.d/10-dns-resolved.conf>
 +dns=default
 +rc-manager=resolvconf
 +systemd-resolved=false
 +</code>
 +
 +Disabling //systemd-resolved// in //systemd// and in //NetworkManager// propably doesn't make much of a difference after your told //NetworkManager// not to route DNS queries to it but for saving system resources.
 +
 +References:
 +  * ''man NetworkManager.conf''
 +  * [[https://unix.stackexchange.com/a/580109|Stackexchange]]
 +{{tag>systemd DNS}}
 +{{entry>systemd}}
 +{{entry>DNS}}
 +======  ======
 {{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