Installation d'une debian 12 sur ssd avec partition chiffré via LVM sans entrave (ne pas utiliser les dépôts ircam !)
Ne pas oublier d'activer le Trackpad avec Fn + F10 pour ne pas avoir l'impression qu'il est nécessaire decompiler le noyau once again pour le faire marcher …
La source.list :
deb http://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware deb-src http://deb.debian.org/debian/ bookworm contrib main non-free non-free-firmware deb http://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware deb-src http://deb.debian.org/debian/ bookworm-updates contrib main non-free non-free-firmware deb http://deb.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware deb-src http://deb.debian.org/debian/ bookworm-proposed-updates contrib main non-free non-free-firmware deb http://deb.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware deb-src http://deb.debian.org/debian/ bookworm-backports contrib main non-free non-free-firmware deb http://deb.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmware deb-src http://deb.debian.org/debian-security/ bookworm-security contrib main non-free non-free-firmware
sudo apt install htop locate nmap ffmpeg iotop sox keepassxc pidgin-otr audacity aircrack-ng alsa-utils apt-transport-https arandr build-essential caca-utils caja-actions-common caja-actions caja-admin caja-common caja-extensions-common caja-open-terminal chromium-common curl ecasound espeak-ng-data etherape filezilla firmware-amd-graphics firmware-iwlwifi fldigi fluid-soundfont-gm frei0r-plugins gparted-common gqrx-sdr guitarix-common guvcview gzip hackrf hasciicam imagemagick inetutils-traceroute inkscape iputils-arping iputils-ping jack-tools links2 linphone macchanger mate-tweak mencoder minimodem minicom mixxx mpv mplayer mumble net-tools network-manager-openvpn nload openshot-qt openvpn otpclient pavucontrol-qt pd-* qsstv qtractor rfkill rtl-sdr sonic-pi-samples sooperlooper tcpdump tempest-for-eliza terminator thunderbird thunderbird-l10n-fr thunderbird-l10n-es-es thunderbird-l10n-en-gb transmission-gtk unzip unrar usbutils uvcdynctrl v4l-utils vlc webcamoid wget wireshark
F*** systemctl (plus de syslog, kern.log dans debian 12) : https://kifarunix.com/enable-rsyslog-logging-on-debian-12/?expand_article=1
sudo apt install rsyslog
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears
Voir https://wiki.debian.org/NVIDIA%20Optimus
accessibility.blockautorefresh true
Pour régler le problème de taille de police / icone avec Mate sous le driver NVIDIA voir cette issue
gsettings set org.mate.interface window-scaling-factor 0
0 is for auto-detect 1 is for Regular 2 is for HiDP
When using Nvidia proprietary drivers, package nvidia-vaapi-driver must be additionally installed
Pour le backlight control, voir https://unix.stackexchange.com/questions/616371/backlight-control-not-working-on-lenovo-ideapad-gaming-3-with-renoir-amdgpu/637154#637154 et https://gitlab.freedesktop.org/drm/amd/-/issues/1438
Pour cela utiliser Compiz comme gestionnaire de fenetre https://doc.ubuntu-fr.org/compizconfig-settings-manager
Utiliser un logiciel qui s'appelle
piper
Please create the file /etc/modprobe.d/iwlwifi.conf with content
options iwlwifi remove_when_gone=1
Remove dev from PCIe bus if it is deemed inaccessible
Since then I had no Problem anymore with connection after wakeup from suspend to ram or suspend to disk. More Option for the module
modinfo iwlwifi | fgrep parm
Voir si pertinent : https://ubuntuforums.org/showthread.php?t=2441297
This added to a file created in /etc/modprobe.d/iwlwifi-opt.conf: options iwlwifi remove_when_gone=1 swcrypto=1 bt_coex_active=0 power_save=0 11n_disable=1
dans les logs :
Nov 10 11:58:41 db NetworkManager[973]: <info> [1668077921.0712] device (wlp4s0): set-hw-addr: set MAC address to D2:DF:D1:3B:08:6C (scanning) Nov 10 11:58:41 db NetworkManager[973]: <info> [1668077921.1116] device (wlp4s0): supplicant interface state: inactive -> disconnected Nov 10 11:58:41 db NetworkManager[973]: <info> [1668077921.1117] device (p2p-dev-wlp4s0): supplicant management interface state: inactive -> disconnected Nov 10 11:58:41 db NetworkManager[973]: <info> [1668077921.1167] device (wlp4s0): supplicant interface state: disconnected -> inactive Nov 10 11:58:41 db NetworkManager[973]: <info> [1668077921.1168] device (p2p-dev-wlp4s0): supplicant management interface state: disconnected -> inactive
Does your wifi device support p2p-client/p2p-go interfaces? You can check under interfaces by doing “iw list”
Suite à https://superuser.com/questions/1468973/wpa-cli-choose-interface-p2p-dev-wlan0-automatically-when-i-is-not-specified, décision de supprimer :
rm /var/run/wpa_supplicant/p2p-dev-wlp4s0
depuis une évolution du noyau cf https://unix.stackexchange.com/questions/512759/multiple-dev-video-for-one-physical-device
sudo apt install f3 sudo f3probe --destructive --time-ops /dev/sdb
Créer un fichier
sudo nano /etc/NetworkManager/conf.d/90-dns-none.conf
avec comme contenu
[main] dns=none
Editer la config à la main
sudo nano /etc/resolv.conf nameserver 80.67.169.40 nameserver 80.67.169.12
Relancer Network Manager
systemctl reload NetworkManager
What is the list of the systemd's services ? You can use the following command (root password is required):
su -l -c "systemctl list-units --type=service"
Vérifier que le serveur DHCP donne bien des DNS
Voir modifs de
sudo nano /etc/NetworkManager/NetworkManager.conf [main] dns=default plugins=ifupdown,keyfile
[ifupdown] managed=false
https://forums.debian.net/viewtopic.php?t=155294
Pour régler le nameserver ::1
sudo nmcli con down pvpn-ipv6leak-protection
Tu peux trouver que ça démarre automatiquement au démarrage, ça devrait l'empêcher
nmcli c m pvpn-ipv6leak-protection connection.autoconnect no
https://superuser.com/questions/1310825/how-to-remove-old-version-of-installed-snaps
#!/bin/bash
# Removes old revisions of snaps
# CLOSE ALL SNAPS BEFORE RUNNING THIS
set -eu
LANG=C snap list --all | awk '/disabled/{print $1, $3}' |
while read snapname revision; do
snap remove "$snapname" --revision="$revision"
done
Avec l'utilitaire go-mtpfs
go-mtpfs - FUSE filesystem for mounting Android device as MTP device
SYNOPSIS
go-mtpfs [options] directory
DESCRIPTION
This manual page documents briefly the go-mtpfs command.
go-mtpfs is a program that mounts an Android device as an MTP device. The only ar‐
gument the program takes is the directory name.
Example usage:
mkdir xoom
go-mtpfs xoom &
cp -a ~/Music/Some-Album xoom/Music/
fusermount -u xoom
After a file is closed (e.g., if cp completes in the above example), it is safe to
unplug the device; the filesystem then will continue to function, but generates I/O
errors when it reads from or writes to the device.
Thunderbird ne voulait ps prendre en compte le nouvel alias de mail benjamin@la… que j'avais pourtant ajouté à ma clef pgp
la solution était de modifier ma clef en ligne de commande et de l'exporter soit :
gpg --list-secret-keys > sec rsa4096 2014-06-13 [SCA] ... [ inconnue] Benjamin Labomedia.org <benjamin@lab...>
pgp --remove-expiration-date <user> --passphrase <pass> gpg --export-secret-key -a "Benjamin CADON [la Labomedia]" > /home/b01/Clefs/bcadon@labomedia.org2022-secret.key gpg --export -a "Benjamin CADON [la Labomedia]" > ~/bcadon@labomedia.org2022-public.key
pas testé le fait d'enlever la date d'expiration, possible aussi de la décaler, dans mon cas il s'agissait d'ajouter un alias et de changer l'identité principale de cette clef, cf https://ressources.labomedia.org/asus_n53sv#gpg_generer_une_clefexportercrypterdecrypter
Puis d'importer la clef privée précédemment exportée dans Thunderbird (> Paramètres des comptes > Chiffrement de bout en bout > Ajouter une clef)
J'ai maintenant la bonne clef dans Tb, cf signature …
Ajout de la liste i-block level 2 https://www.iblocklist.com/list.php?list=gyisgnzbhppbvsphucsw
ça se passe ici :
sudo apt-get install numlockx sudo nano /etc/lightdm/lightdm.conf greeter-setup-script=/usr/bin/numlockx on
En utilisant jack2, il faut installer le module pulseaudio-module-jack et cocher “Enable D-Bus Interface and Enable JACK D-Bus interface” dans Qjackctl, relancer ce soft et dans un terminal, taper :
pavucontrol-qt
Dans l'onglet lecture, il est alors possible d'envoyer le son des applis (Firefox, VLC, ..) vers Jack Sink
voir https://github.com/jackaudio/jackaudio.github.com/wiki/WalkThrough_User_PulseOnJack
Pour éviter d'être redirigé automatiquement vers une autre URL (quand le dns a été changé par exemple), il est possible de bloquer dans Firefox la redirection automatique à partir du about:config :
accessibility.blockautorefresh true
Paramètres > Applications > PDF > Portable Document Format (PDF) (application/pdf)
Utiliser l'application du système
Aller dans paramètre > Editeur de configuration tout en bas de la page et passer le paramètre :
pdfjs.disabled true
Pour voir dans le visualiseur d'images habituel :
sudo apt install heif-gdk-pixbuf
Convertir .heic en .jpg
sudo apt install libheif-examples
As test files, we have IMG_8123.HEIC, IMG_8227.HEIC and IMG_8273.HEIC. To convert them to JPEG, a for loop is enough:
for i in *.HEIC; do heif-convert "$i" "${i%.HEIC}.jpg"; done
Virer les vieux paquets dans archive
apt-get autoclean apt-get clean apt-get autoremove
pdftoppm -r 96 -png monficher.pdf page sudo apt install img2pdf img2pdf page-*.png -o resultat.pdf