docs:tips_n_tricks:debian:index.html
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docs:tips_n_tricks:debian:index.html [13.10.2014 17:40 CEST] – [Packages missing after a fresh installation] peter | docs:tips_n_tricks:debian:index.html [23.09.2023 01:48 CEST] (current) – [Building Packages] peter | ||
---|---|---|---|
Line 4: | Line 4: | ||
# For general use: | # For general use: | ||
- | apt-get install aptitude zsh less strace | + | apt-get install aptitude zsh less strace |
rsync sshfs ntpdate host exim4-daemon-light \ | rsync sshfs ntpdate host exim4-daemon-light \ | ||
- | sudo file bc mlocate man uemacs | + | sudo file bc mlocate man cvs patch [uemacs|nano] |
+ | # For some diagnostics | ||
+ | apt-get install pciutils iftop tcpdump lshw | ||
# For systems running on the "bare metal" | # For systems running on the "bare metal" | ||
- | apt-get install smartmontools | + | apt-get install smartmontools |
# For server maintenance | # For server maintenance | ||
apt-get install munin-node munin-plugins-extra sysstat | apt-get install munin-node munin-plugins-extra sysstat | ||
# For development use | # For development use | ||
- | apt-get install dpkg-dev debhelper devscripts | + | apt-get install dpkg-dev debhelper devscripts liburi-perl \ |
fakeroot build-essential autoconf bison \ | fakeroot build-essential autoconf bison \ | ||
autotools-dev sharutils | autotools-dev sharutils | ||
Line 20: | Line 22: | ||
==== / | ==== / | ||
- | At least for //uemacs// you need to access the ''/ | + | At least for //uemacs// you need to access the ''/ |
- | :!: This is outdated :!:\\ | + | wget -O /etc/apt/sources.list.d/ |
- | FIXME | + | |
- | + | ||
- | deb-src http://debian.usr-local.de/debian sarge local non-free contrib | + | |
- | deb | + | |
- | deb-src http:// | + | |
- | deb | + | |
- | deb-src | + | |
- | deb | + | |
- | deb-src http:// | + | |
- | deb | + | |
- | + | ||
- | deb-src http:// | + | |
- | deb | + | |
- | deb-src http:// | + | |
- | deb | + | |
+ | ==== / | ||
:!: This is outdated :!: | :!: This is outdated :!: | ||
- | ==== / | ||
APT:: | APT:: | ||
+ | ==== Apt Pinning by Repository (/ | ||
+ | // Tested with Debian 10 Buster // | ||
+ | <code text / | ||
+ | # /usr/local Pin Priorities | ||
+ | # Need to be in sync with / | ||
+ | # Check with apt-cache policy | ||
+ | |||
+ | Package: * | ||
+ | Pin: origin deb.debian.org | ||
+ | Pin-Priority: | ||
+ | |||
+ | Package: * | ||
+ | Pin: origin security.debian.org | ||
+ | Pin-Priority: | ||
+ | |||
+ | # Package: * | ||
+ | # Pin: origin repo.dovecot.org | ||
+ | # Pin-Priority: | ||
+ | |||
+ | Package: * | ||
+ | Pin: origin * | ||
+ | Pin-Priority: | ||
+ | </ | ||
+ | |||
+ | See: | ||
+ | * https:// | ||
+ | |||
+ | ==== Manage Repositories GPG Keys ==== | ||
+ | |||
+ | [[https:// | ||
===== Change timezone ===== | ===== Change timezone ===== | ||
To change the timezone of a running systems, issue | To change the timezone of a running systems, issue | ||
Line 49: | Line 66: | ||
tzconfig | tzconfig | ||
- | or | + | or((for later versions of Debian)) |
dpkg-reconfigure tzdata | dpkg-reconfigure tzdata | ||
depending on your version of Debian. | depending on your version of Debian. | ||
+ | |||
+ | For unattended installations, | ||
+ | |||
+ | debconf-set-selections tzdata.debconf | ||
+ | |||
+ | <code text tzdata.debconf> | ||
+ | tzdata tzdata/ | ||
+ | # tzdata tzdata/ | ||
+ | tzdata tzdata/ | ||
+ | # tzdata tzdata/ | ||
+ | </ | ||
+ | |||
+ | ===== NFS Workaround ===== | ||
+ | |||
+ | For some versions of Debian, you need to add '' | ||
+ | |||
+ | // | ||
===== Change locale ===== | ===== Change locale ===== | ||
update-locale LANG=C LC_CTYPE=de_DE LANGUAGE | update-locale LANG=C LC_CTYPE=de_DE LANGUAGE | ||
+ | {{tag> | ||
+ | {{entry> | ||
===== Building Packages ===== | ===== Building Packages ===== | ||
- | | + | |
+ | sudo apt-get install devscripts | ||
apt-get source < | apt-get source < | ||
+ | # If you start here: dpkg-source -x < | ||
cd < | cd < | ||
# generating new changelog entry with local version suffix for distribution lenny: | # generating new changelog entry with local version suffix for distribution lenny: | ||
export DEBEMAIL=" | export DEBEMAIL=" | ||
export DEBFULLNAME=" | export DEBFULLNAME=" | ||
- | dch -l ~ul~lenny -D lenny | + | dch -l .ul~ulyana |
- | dpkg-buildpackage -rfakeroot | + | dpkg-buildpackage -rfakeroot |
+ | |||
+ | ===== Make Monday the first day of week in US locales ===== | ||
+ | |||
+ | This works e.g. for the [[https:// | ||
+ | |||
+ | Do as //root//: | ||
+ | |||
+ | mkdir -vp / | ||
+ | sed -e ' | ||
+ | locale-gen | ||
+ | |||
+ | < | ||
+ | GOSH! :-o\\ | ||
+ | Yeah - it's as easy as that. The tricky part is to what to do 8-) | ||
+ | </ | ||
+ | __References: | ||
+ | |||
+ | * [[https:// | ||
+ | * '' | ||
+ | Also quite interesting while not directly related to //my// solution: | ||
+ | * [[https:// | ||
+ | |||
+ | {{tag> | ||
+ | {{entry> | ||
+ | {{entry> | ||
+ | ===== 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 // | ||
+ | |||
+ | <code bash> | ||
+ | apt install resolveconf | ||
+ | systemctl disable systemd-resolved | ||
+ | vi / | ||
+ | </ | ||
+ | We need to override ''/ | ||
+ | |||
+ | <code plain / | ||
+ | dns=default | ||
+ | rc-manager=resolvconf | ||
+ | systemd-resolved=false | ||
+ | </ | ||
+ | |||
+ | Disabling // | ||
+ | References: | ||
+ | * '' | ||
+ | * [[https:// | ||
+ | {{tag> | ||
+ | {{entry> | ||
+ | {{entry> | ||
+ | ====== | ||
{{tag> | {{tag> | ||
{{entry> | {{entry> | ||
{{entry> | {{entry> |
docs/tips_n_tricks/debian/index.html.1413214829.txt.gz · Last modified: 13.10.2014 17:40 CEST by peter