Skip to content

Recipe

Debian 10 ⇒ 11 upgrade

TFM

Boils down to:

  1. Update the system with apt-get update && apt-get full-upgrade to the most recent state of working version.
  2. Update /etc/apt/sources.list to
    1
    2
    3
    4
    5
    deb http://deb.debian.org/debian/ bullseye main contrib non-free
    deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free
    deb http://security.debian.org/debian-security bullseye-security main
    deb-src http://security.debian.org/debian-security bullseye-security main
    deb http://ftp.debian.org/debian bullseye-backports main contrib non-free
    
  3. Upgrade the system with apt-get update && apt-get dist-upgrade && reboot to the new version.

2021-08-20 @ fabicon.ru

emmcdl & QDL

emmcdl or emmcdl

1
2
3
4
5
6
7
8
git clone https://github.com/nijel8/emmcdl.git &&
    cd emmcdl &&
    aclocal &&
    autoconf &&
    automake --add-missing &&
    ./configure &&
    make &&
    ./emmcdl

QDL

When the password was changed?

  1. chage -l $USER — show password "aging" status
  2. passwd -S $USER — show user's "status"
  3. zgrep -Fw passwd /var/log/* /var/log/*/* | grep -Fw $USER — look for passwd(1) report

Who has eaten all the swap?

1
2
3
4
5
6
7
8
for file in /proc/*/status ; do
    awk '
        /VmSwap|Name/   { printf $2 " " $3 }
        END     { print "" }
    ' $file
done |
sort -k 2 -n -r |
less

Remove leading zeroes ${VAR##+(0)}

1
2
3
4
5
6
7
8
jno:~$ shopt extglob
extglob         on
jno:~$ a='000000123'
jno:~$ declare -p a
declare -- a="000000123"
jno:~$ shopt -q extglob && echo ${a##+(0)} || { echo $a | sed -e 's/^0\+//'; }
123
jno:~$

Found here.

Mediatomb (hosted by ветеран.su) became gerbera

Since about Ubuntu 20.04 it's gerbera now.

Gerbera is proudly built upon MediaTomb 0.12.1 continuing that projects great legacy.