bordel
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| bordel [2024/12/24 06:31] – alban | bordel [2024/12/24 11:52] (current) – alban | ||
|---|---|---|---|
| Line 36: | Line 36: | ||
| **Attention** : mettre le code activation-bytes comme tel (sans guillemets). | **Attention** : mettre le code activation-bytes comme tel (sans guillemets). | ||
| - | ==== Déplacer un SSD avec archlinux sur un autre PC :==== | + | ==== fail2ban |
| - | Si le SSD ne boot pas sur le nouveau pc, il faut faire qq réglages de boot sur le SSD (si le pc sur lequel arch était installé ne fonctionne plus, il faut faire un chroot sur le nouveau pc): | + | === whitelist === |
| - | 1) Créer un usb bootable archlinux (sur windows) | + | * '' |
| - | - telecharger l'iso : '' | + | * ex : '' |
| - | | + | |
| - | 2) Faire un '' | + | === check les ip bannies et debannir si besoin: === |
| + | On check les jail name : | ||
| - | ==== KDE + i3 :==== | + | '' |
| - | 1) Option 1: systemd user service (Plasma >=5.25) : https:// | + | On regarde les ip bannies pour un jail name |
| - | si absent, créer : / | + | '' |
| - | 2) on cache la bar i3 : | + | Pour debannir |
| - | .config/ | + | '' |
| - | + | ||
| - | < | + | |
| - | # mode hide | + | |
| - | # hidden_state hide | + | |
| - | # status_command i3status | + | |
| - | #} | + | |
| - | </ | + | |
| - | + | ||
| - | 3) pour voir les workspace, on ajoute le widget | + | |
| - | + | ||
| - | Attention, dans '' | + | |
| - | + | ||
| - | **Note :** la couleur des workspace '' | + | |
| - | + | ||
| - | === autre config i3 === | + | |
| - | + | ||
| - | - Mettre des transitions smooth entre le chnagement de workspace : | + | |
| - | + | ||
| - | * Installer '' | + | |
| - | * lancer picom : '' | + | |
| - | * ajouter picom au démarrage de i3 '' | + | |
| - | + | ||
| - | - Sur i3 il faut que '' | + | |
| - | * exec i3-msg ' | + | |
| - | * exec --no-startup-id i3-msg " | + | |
| - | * J'ai également remplacé '' | + | |
| - | + | ||
| - | - gestion des fenêtres : | + | |
| - | < | + | |
| - | for_window [class=" | + | |
| - | # couleur pour client | + | |
| - | client.focused | + | |
| - | # pour ne pas qu'il y ait de bordure lorsqu' | + | |
| - | hide_edge_borders smart | + | |
| - | </code> | + | |
| - | + | ||
| - | ==== lf file manager configuration (previewer d' | + | |
| - | + | ||
| - | === ajouter preview images :=== | + | |
| - | + | ||
| - | https:// | + | |
| - | + | ||
| - | **Note :** '' | + | |
| - | + | ||
| - | Si ce n'est pas déjà fait : | + | |
| - | * Install '' | + | |
| - | * Copy the default configuration at / | + | |
| - | * Installer '' | + | |
| - | + | ||
| - | Dans '' | + | |
| - | + | ||
| - | * Créer fichier '' | + | |
| - | < | + | |
| - | exec kitten icat --clear --stdin no --transfer-mode file </ | + | |
| - | * Créer fichier '' | + | |
| - | < | + | |
| - | draw() { | + | |
| - | kitten icat --stdin no --transfer-mode file --place " | + | |
| - | exit 1 | + | |
| - | } | + | |
| - | + | ||
| - | file=" | + | |
| - | w=" | + | |
| - | h=" | + | |
| - | x=" | + | |
| - | y=" | + | |
| - | + | ||
| - | case " | + | |
| - | image/*) | + | |
| - | draw " | + | |
| - | ;; | + | |
| - | video/*) | + | |
| - | # vidthumb is from here: | + | |
| - | # https:// | + | |
| - | draw " | + | |
| - | ;; | + | |
| - | esac | + | |
| - | + | ||
| - | pistol " | + | |
| - | + | ||
| - | 4) Donner les droits aux deux fichiers : | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | 5) A la fin de '' | + | |
| - | < | + | |
| - | set cleaner ~/ | + | |
| - | + | ||
| - | 6) Lancer '' | + | |
| - | + | ||
| - | ==== Copier du texte dans le clipboard avec vim :==== | + | |
| - | + | ||
| - | Le plus simple est d' | + | |
| - | * Sur '' | + | |
| - | * Ensuite dans vim, on passe en visu '' | + | |
| ==== Commandes utiles VIM ==== | ==== Commandes utiles VIM ==== | ||
| * A pour aller en fin de ligne en mode édition et a pour aller en fin de mot en mode édition | * A pour aller en fin de ligne en mode édition et a pour aller en fin de mot en mode édition | ||
| + | * Pour commenter : | ||
| - | ==== Kitty terminal et lf configuration ==== | + | Put your cursor |
| - | + | ||
| - | **Note :** '' | + | |
| - | + | ||
| - | * kitty stores its configuration in ~/ | + | |
| - | * perso je prends cette config (pas mal pour le thème, le zoom etc.) et j'ai modifié qq éléments : https:// | + | |
| - | * ** Note :** j' | + | |
| - | < | + | |
| - | # Commands to run in interactive sessions can go here | + | |
| - | end | + | |
| - | + | ||
| - | # Pour utiliser les commandes VIM | + | |
| - | fish_vi_key_bindings | + | |
| - | + | ||
| - | # Pour ne pas avoir le message de bienvenue | + | |
| - | set -g fish_greeting "" | + | |
| - | + | ||
| - | # Theme starship | + | |
| - | #starship init fish | source | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | Bien qu'on puisse mettre les configuration de texte (couleur etc.) et les icons dans '' | + | |
| - | + | ||
| - | Pour les couleurs, ex: '' | + | |
| - | Doc pour les commandes vim dans le terminal : https:// | + | |
| - | + | ||
| - | * **Attention**, | + | |
| - | + | ||
| - | * Pour les icones sur '' | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| + | * Decommenter | ||
| + | First, go to the first line you want to comment, press CtrlV. This will put the editor in the VISUAL BLOCK mode. | ||
| + | Then using the arrow key and select until the last line | ||
| + | Now press ShiftI, which will put the editor in INSERT mode and then press #. This will add a hash to the first line. | ||
| + | Then press Esc (give it a second), and it will insert a # character on all other selected lines. | ||
bordel.1735021904.txt.gz · Last modified: by alban
