Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
php-bash:aide-memoire [2023/01/22 16:49] – [fsck : régler le laps de temps de verif système] cyrille | php-bash:aide-memoire [2023/12/31 12:30] (Version actuelle) – [Rebooter sur une entrée grub de son choix] cyrille | ||
---|---|---|---|
Ligne 892: | Ligne 892: | ||
find /var/www -name " | find /var/www -name " | ||
</ | </ | ||
+ | |||
+ | ===== Lister les noyaux ===== | ||
+ | <code | download> | ||
+ | echo; dpkg -l | awk ' | ||
+ | </ | ||
+ | < | ||
+ | ii linux-image-5.10.0-10-amd64 | ||
+ | ii linux-image-5.10.0-15-amd64 | ||
+ | ii linux-image-5.10.0-17-amd64 | ||
+ | ii linux-image-5.10.0-19-amd64 | ||
+ | ii linux-image-amd64 | ||
+ | |||
+ | Noyau courant : 5.10.0-19-amd64 x86_64 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Connaître son screensize ===== | ||
+ | |||
+ | **Avec xrand** | ||
+ | <code | download> | ||
+ | $ xrandr | awk '/ connected/ | ||
+ | 13,9615 inches | ||
+ | </ | ||
+ | |||
+ | **Avec python3** | ||
+ | |||
+ | Le script | ||
+ | <code | download> | ||
+ | # | ||
+ | import gi | ||
+ | gi.require_version(' | ||
+ | from gi.repository import Gdk | ||
+ | |||
+ | dsp = Gdk.Display.get_default() | ||
+ | n_mons = dsp.get_n_monitors() | ||
+ | |||
+ | print((" | ||
+ | |||
+ | for i in range(n_mons): | ||
+ | mon = dsp.get_monitor(i) | ||
+ | mon_name = mon.get_model() | ||
+ | w = mon.get_width_mm()/ | ||
+ | h = mon.get_height_mm()/ | ||
+ | d = ((w**2)+(h**2))**(0.5) | ||
+ | print((" | ||
+ | </ | ||
+ | |||
+ | L' | ||
+ | |||
+ | <code | download> | ||
+ | $ python3 screensize.py | ||
+ | Screen width height diagonal | ||
+ | -------------------------------- | ||
+ | eDP-1 12.2 6.9 14.0 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Rebooter sur une entrée grub de son choix ===== | ||
+ | |||
+ | <code | download> | ||
+ | # grub-reboot X | ||
+ | # reboot now | ||
+ | </ | ||
+ | |||
+ | Et X préciser l' | ||
+ | |||
+ | |||
+ | ===== Détection & installation des microprogrammes manquants | ||
+ | |||
+ | Très intéressante cette entrée dans le manuel, je l' | ||
+ | https:// | ||
+ | |||
+ | § 6.4.3 Finaliser le système installé | ||
+ | |||
+ | <code | download> | ||
+ | # apt install isenkram-cli | ||
+ | </ | ||
+ | |||
+ | |||
+ | <code | download> | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | |||
+ |