| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente |
| linux:accueil [2024/12/28 15:20] – [Nemo] add method with jmtpfs phsw | linux:accueil [2026/03/16 11:44] (Version actuelle) – add link to fwupd phsw |
|---|
| * [[https://github.com/imthenachoman/How-To-Secure-A-Linux-Server]] | * [[https://github.com/imthenachoman/How-To-Secure-A-Linux-Server]] |
| * [[https://www.tartarefr.eu/creation-dune-cle-usb-multiboot-bios-et-uefi/]] | * [[https://www.tartarefr.eu/creation-dune-cle-usb-multiboot-bios-et-uefi/]] |
| * [https://www.bloglibre.net/2019/05/30/decalage-horaire-entre-windows-et-linux-en-dual-boot/]] | * [[https://www.bloglibre.net/2019/05/30/decalage-horaire-entre-windows-et-linux-en-dual-boot/]] |
| * [[https://blog.hedilenoir.com/index.php/2019/09/12/tuto-proteger-avec-un-mot-de-passe-lacces-au-grub/]] | * [[https://blog.hedilenoir.com/index.php/2019/09/12/tuto-proteger-avec-un-mot-de-passe-lacces-au-grub/]] |
| * [[https://www.it-connect.fr/debian-10-et-secure-boot-comment-sadapter-au-demarrage-securise/]] | * [[https://www.it-connect.fr/debian-10-et-secure-boot-comment-sadapter-au-demarrage-securise/]] |
| <code bash> | <code bash> |
| getent passwd | getent passwd |
| | </code> |
| | |
| | Lister tous les membres appartenant à un groupe ([[https://linuxhandbook.com/list-users-in-group-linux/|source]]) : |
| | <code bash> |
| | getent group $group |
| </code> | </code> |
| |
| |
| |
| ==== Wayland ou X11 ? ==== | ==== X11 ==== |
| | |
| | === Wayland ou X11 ? === |
| |
| [[https://unix.stackexchange.com/questions/202891/how-to-know-whether-wayland-or-x11-is-being-used|Source]] | [[https://unix.stackexchange.com/questions/202891/how-to-know-whether-wayland-or-x11-is-being-used|Source]] |
| <code bash> | <code bash> |
| echo $XDG_SESSION_TYPE | echo $XDG_SESSION_TYPE |
| | </code> |
| | |
| | |
| | === Désactiver la mise en veille de l'écran === |
| | |
| | [[https://www.debian-fr.org/t/empecher-la-mise-en-veille-de-lecran-ou-la-regler/33029|Source]] |
| | |
| | Deux éléments peuvent gérer la mise en veille de l'écran : |
| | * l'environnement de bureau |
| | * le serveur X11 |
| | |
| | Pour connaître la configuration de X11 : |
| | <code bash> |
| | xset q |
| | </code> |
| | |
| | Pour désactiver la mise en veille : |
| | <code bash> |
| | xset s off |
| | </code> |
| | |
| | Il peut aussi être nécessaire de désactiver la gestion de l'énergie : |
| | <code bash> |
| | xset -dpms |
| </code> | </code> |
| |
| Après avoir modifié le fichier ''/etc/aliases'', il faut lancer la commande ''newaliases'' ([[https://unix.stackexchange.com/questions/65013/understanding-etc-aliases-and-what-it-does|source]]). | Après avoir modifié le fichier ''/etc/aliases'', il faut lancer la commande ''newaliases'' ([[https://unix.stackexchange.com/questions/65013/understanding-etc-aliases-and-what-it-does|source]]). |
| |
| | |
| | |
| | ==== Interagir avec le trousseau de mots de passe ==== |
| | |
| | Savoir si le trousseau est déverrouillé : |
| | |
| | <code bash> |
| | # Quick exit if keyring is not yet unlocked (can happen just after boot) |
| | if [ "$(busctl --timeout=10 --user --json=short get-property org.freedesktop.secrets /org/freedesktop/secrets/collection/login org.freedesktop.Secret.Collection Locked | jq .data)" == "true" ] |
| | then |
| | exit 0 |
| | fi |
| | </code> |
| | * [[https://stackoverflow.com/questions/77962998/how-do-i-read-store-a-password-in-a-possibly-locked-gnome-keyring-manager-from-t|How do I read/store a password in a possibly locked gnome-keyring-manager from the shell without breaking existing gnome-keyring-manager clients?]] |
| | * [[https://unix.stackexchange.com/questions/453459/check-if-gnome-keyring-is-unlocked|Check if Gnome keyring is unlocked?]] |
| | * [[https://github.com/Intika-Linux-Apps/Gnome-Keyring-Tools]] (semble être caduc : cf ''libsecret-1-dev: /usr/share/doc/libsecret-1-dev/libsecret-1/migrating-libgnome-keyring.html'') |
| | |
| | |
| | ==== Firmware ==== |
| | |
| | * [[https://www.linuxtricks.fr/wiki/fwupd-mettre-a-jour-les-firmwares-et-uefi-depuis-linux|fwupd : Mettre à jour les firmwares et UEFI depuis Linux]] |