Table des matières
Ordinateur Lenovo Legion 5 15ARH05 sous Linux
- Modèle Lenovo Legion 5 15ARH05 (82B500F1FR) fiche tech from LDLClenovo_legion_5_15arh05_82b500f1fr_ldlc.pdf
Installation Debian 12 bookworm
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
**Un petit paquet de logiciels en plus**
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
Remettre en place les rsyslog
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
Commandes utils pour Debian 10 bulleyes potentiellement toujours valables
Utiliser la carte NVIDIA
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears
Troubleshooting
- Régler le problème du touchpad avec noyau 5.10 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1887190/comments/189
- Mettre à jour le bios en CLI https://www.cyberciti.biz/faq/thinkpad-update-firmware-on-linux-x1-extreme-p1-gen2/
Compiler le dernier noyau pour support touchpad et luminosité sur debian 11
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
Installer une imprimante Epson L3050
Utiliser le zoom du bureau Mate
Pour cela utiliser Compiz comme gestionnaire de fenetre https://doc.ubuntu-fr.org/compizconfig-settings-manager
Change LED on a Logitech G series mouse
Utiliser un logiciel qui s'appelle
piper
carte wifi iwlwifi croute après sleep
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
Tenter de régler le problème de freeze aléatoire de l'OS du à la carte wifi ?
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
Webcam fait 2 devices /dev/video
depuis une évolution du noyau cf https://unix.stackexchange.com/questions/512759/multiple-dev-video-for-one-physical-device
Encrypting the Home Partition on an Existing Linux Installation
Tester une carte SD pour savoir si elle peut encore fonctionner
sudo apt install f3 sudo f3probe --destructive --time-ops /dev/sdb
Désactiver le fait que Network Manager gère les DNS
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
Virer les snap inutiles
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
Monter une appareil android en ligne de commande pour transfert de fichiers
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 vs pgp
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 …