Ma configuration

Pas d’explications, c’est un mémo pour moi

Août 2021

Old configuration Quelques infos sur Debian 11 Bullseye

deb https://cdn-aws.deb.debian.org/debian-security/ jessie/updates contrib main non-free
deb https://cdn-aws.deb.debian.org/debian-security/ stretch/updates contrib main non-free
deb https://cdn-aws.deb.debian.org/debian-security/ buster/updates contrib main non-free
deb https://cdn-aws.deb.debian.org/debian/ stretch contrib main non-free
deb https://cdn-aws.deb.debian.org/debian/ buster contrib main non-free
deb https://cdn-aws.deb.debian.org/debian/ buster-updates contrib main non-free
deb https://cdn-aws.deb.debian.org/debian/ buster-proposed-updates contrib main non-free
deb https://cdn-aws.deb.debian.org/debian/ bullseye contrib main non-free
deb https://cdn-aws.deb.debian.org/debian/ sid main contrib non-free
deb [arch=amd64] http://archive.canonical.com/ bionic partner
deb [arch=amd64] http://repository.spotify.com stable non-free

apt/apt.conf.d$ cat 00default-perso
APT::Default-Release "bullseye";
Acquire::http::AllowRedirect "false";
#Acquire::Check-Valid-Until "0";
APT::Sandbox::Seccomp "true";
/etc/apt/preferences.d$ ls
linux-headers  linux-image  linux-kbuild
/etc/apt/preferences.d$ cat linux-headers
Package: linux-headers-amd64
Pin: release a=unstable
Pin-Priority: 990
/etc/apt/preferences.d$ cat linux-image
Package: linux-image-amd64
Pin: release a=unstable
Pin-Priority: 990
/etc/apt/preferences.d$ cat linux-kbuild
Package: linux-kbuild-*
Pin: release a=unstable
Pin-Priority: 990

Listage des paramètres de configuration apt

apt-config dump

Versions du noyau

*********************************************************************************************
linux-image-5.8.0-1-amd64/testing,now 5.8.7-1 amd64  [installé, automatique]
linux-image-5.8.0-2-amd64/unstable,now 5.8.10-1 amd64  [installé, automatique]
linux-image-amd64/unstable,now 5.8.10-1 amd64  [installé]
*********************************************************************************************
linux-headers-5.8.0-1-amd64/testing,now 5.8.7-1 amd64  [installé, automatique]
linux-headers-5.8.0-2-amd64/unstable,now 5.8.10-1 amd64  [installé]
linux-headers-amd64/unstable,now 5.8.10-1 amd64  [installé]
*********************************************************************************************
linux-headers-5.8.0-1-common/testing,testing,now 5.8.7-1 all  [installé, automatique]
linux-headers-5.8.0-2-common/unstable,unstable,now 5.8.10-1 all  [installé, automatique]
*********************************************************************************************
linux-image-amd64:
  Installé : 5.8.10-1
  Candidat : 5.8.10-1
 Table de version :
 *** 5.8.10-1 990
        500 https://cdn-aws.deb.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status
     5.8.7-1 990
        990 https://cdn-aws.deb.debian.org/debian bullseye/main amd64 Packages
     4.19+105+deb10u5 500
        500 https://cdn-aws.deb.debian.org/debian buster/main amd64 Packages
     4.9+80+deb9u11 500
        500 https://cdn-aws.deb.debian.org/debian stretch/main amd64 Packages
     4.9+80+deb9u6 500
        500 https://cdn-aws.deb.debian.org/debian-security stretch/updates/main amd64 Packages
     3.16+63+deb8u7 500
        500 https://cdn-aws.deb.debian.org/debian-security jessie/updates/main amd64 Packages
*********************************************************************************************
linux-headers-amd64:
  Installé : 5.8.10-1
  Candidat : 5.8.10-1
 Table de version :
 *** 5.8.10-1 990
        500 https://cdn-aws.deb.debian.org/debian sid/main amd64 Packages
        100 /var/lib/dpkg/status
     5.8.7-1 990
        990 https://cdn-aws.deb.debian.org/debian bullseye/main amd64 Packages
     4.19+105+deb10u5 500
        500 https://cdn-aws.deb.debian.org/debian buster/main amd64 Packages
     4.9+80+deb9u11 500
        500 https://cdn-aws.deb.debian.org/debian stretch/main amd64 Packages
     4.9+80+deb9u6 500
        500 https://cdn-aws.deb.debian.org/debian-security stretch/updates/main amd64 Packages
     3.16+63+deb8u7 500
        500 https://cdn-aws.deb.debian.org/debian-security jessie/updates/main amd64 Packages
*********************************************************************************************
apt list --installed | grep /unstable,now

linux-headers-5.8.0-2-amd64/unstable,now 5.8.10-1 amd64  [installé]
linux-headers-amd64/unstable,now 5.8.10-1 amd64  [installé]
linux-image-5.8.0-2-amd64/unstable,now 5.8.10-1 amd64  [installé, automatique]
linux-image-amd64/unstable,now 5.8.10-1 amd64  [installé]
linux-kbuild-5.8/unstable,now 5.8.10-1 amd64  [installé, automatique]

Fuckin’ lickin’ good

hostnamectl
   Static hostname: debian
         Icon name: computer-laptop
           Chassis: laptop
        Machine ID: 2a1824889b924e8e892b774a38573f1c
           Boot ID: 5265021c40af428e8422a697d5464250
  Operating System: Debian GNU/Linux bullseye/sid
            Kernel: Linux 5.8.0-2-amd64
      Architecture: x86-64

uname -a
Linux debian 5.8.0-2-amd64 #1 SMP Debian 5.8.10-1 (2020-09-19) x86_64 GNU/Linux
/etc/default/grub
 If you change this file, run 'update-grub' afterwards to update
 /boot/grub/grub.cfg.
 For full documentation of the options in this file, see:
 info -f grub -n 'Simple configuration'
 GRUB_DEFAULT=0
 exemple pour forcer menu ligne 1 -> options avancée et sous-menu ligne 2 -> noyau 4.9
 GRUB_DEFAULT="1>2"
 exemple pour forcer le noyau 3.16 en fonction de ce qui est généré dans /boot/grub/grub.cfg
 GRUB_DEFAULT="gnulinux-advanced-78ec612e-d1d9-4c88-88ec-17d9b0815a8f>gnulinux-3.16.0-4-amd64-advanced-78ec612e-d1d9-4c88-88ec-17d9b0815a8f"
 #
 GRUB_TIMEOUT=2
 #
 GRUB_DISTRIBUTOR=lsb_release -i -s 2> /dev/null || echo Debian
 GRUB_DISTRIBUTOR=$(sed -n 's/PRETTY_NAME=//1p' /usr/lib/os-release)
 set -a
 . /usr/lib/os-release
 set +a
 GRUB_DISTRIBUTOR=$PRETTY_NAME
 #
 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
 GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor radeon.pcie_gen2=0 btusb.enable_autosuspend=n zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=20 zswap.zpool=zbud"
 #
 GRUB_CMDLINE_LINUX=""
 GRUB_DISABLE_OS_PROBER=true
 Uncomment to enable BadRAM filtering, modify to suit your needs
 This works with Linux (no patch required) and with any kernel that obtains
 the memory map information from GRUB (GNU Mach, kernel of FreeBSD …)
 GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
 Uncomment to disable graphical terminal (grub-pc only)
 GRUB_TERMINAL=console
 The resolution used on graphical terminal
 note that you can use only modes which your graphic card supports via VBE
 you can see them in real GRUB with the command `vbeinfo'
 GRUB_GFXMODE=640x480
 https://doc.fedora-fr.org/wiki/Augmenter_la_r%C3%A9solution_des_consoles_tty
 GRUB_GFXMODE=1600x900x32,auto
 GRUB_GFXPAYLOAD_LINUX=keep
 Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
 GRUB_DISABLE_LINUX_UUID=true
 Uncomment to disable generation of recovery mode menu entries
 GRUB_DISABLE_RECOVERY="true"
 Uncomment to get a beep at grub start
 GRUB_INIT_TUNE="480 440 1"
update-grub

/proc/cmdline

 BOOT_IMAGE=/boot/vmlinuz-5.9.0-2-amd64 root=UUID=78ec612e-d1d9-4c88-88ec-17d9b0815a8f ro quiet apparmor=1 security=apparmor radeon.pcie_gen2=0 btusb.enable_autosuspend=n zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=20 zswap.zpool=zbud

Par Bidouille De Bian

Bidouilleur sur Linux Debian 10 (Buster). Débutant dans le blog sur Wordpress.