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
docs:tips_n_tricks:debian:index.html [17.03.2023 15:17 CET] – [Building Packages] peterdocs:tips_n_tricks:debian:index.html [23.09.2023 01:48 CEST] (current) – [Building Packages] 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 98: Line 103:
   export DEBEMAIL="${DEBEMAIL:-peter@foo.bar}"   export DEBEMAIL="${DEBEMAIL:-peter@foo.bar}"
   export DEBFULLNAME="${DEBFULLNAME:-Peter Foobar}"   export DEBFULLNAME="${DEBFULLNAME:-Peter Foobar}"
-  dch -l .ul~lenny -D lenny +  dch -l .ul~ulyana -D ulyana 
-  dpkg-buildpackage -rfakeroot+  dpkg-buildpackage -rfakeroot --no-sign
  
 ===== Make Monday the first day of week in US locales ===== ===== Make Monday the first day of week in US locales =====
Line 107: Line 112:
 Do as //root//: 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   sed -e 's/^week.*$/&\nfirst_weekday\t2/g' /usr/share/i18n/locales/en_US  > /usr/local/share/i18n/locales/en_US
   locale-gen   locale-gen
Line 121: Line 127:
   * [[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.   * [[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