Outils pour utilisateurs

Outils du site


php-bash:aide-memoire

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
Prochaine révisionLes deux révisions suivantes
php-bash:aide-memoire [2019/05/14 12:53] – [CUP] cyrillephp-bash:aide-memoire [2019/05/22 14:31] – [Xinput] cyrille
Ligne 3: Ligne 3:
 Quelques liens  Quelques liens 
   * [[https://www.alsacreations.com/tuto/lire/622-Securite-firewall-iptables.html|IPTABLES]]   * [[https://www.alsacreations.com/tuto/lire/622-Securite-firewall-iptables.html|IPTABLES]]
 +  * [[http://languille11.fr/wiki/informatique/linux/iptables/|IPTABLES]]
   * [[https://www.instructables.com/id/CNC-Arduino-Plant-Growing-Machine/|ARDUINO  Plant Growing]]   * [[https://www.instructables.com/id/CNC-Arduino-Plant-Growing-Machine/|ARDUINO  Plant Growing]]
   * [[https://developers.google.com/calendar/quickstart/python|Google Start python calendar]]   * [[https://developers.google.com/calendar/quickstart/python|Google Start python calendar]]
-  * [[SSD optimization|https://wiki.debian.org/SSDOptimization]] +  * [[https://wiki.debian.org/SSDOptimization|SSD optimization]] 
- +  * [[https://wiki.visionduweb.fr/index.php?title=Programmer_un_paquet_logiciel_pour_Debian|Programmer un paquet DEBIAN]] 
 +  * [[http://www.serveur-linux.info/2012/01/depot-personnalise-paquets-debian/|Dépôt personnalisé paquet Debian]] 
 +  * [[https://www.cyberciti.biz/linux-news/linux-kernel-5-0-released-how-to-install/|Compiler un kernel 5]] 
 + 
 =====Programmation BASH==== =====Programmation BASH====
-[[https://fr.wikibooks.org/wiki/Programmation_Bash|Programmation BASH]]+  *[[https://fr.wikibooks.org/wiki/Programmation_Bash|Programmation BASH]] 
 +  *[[https://bash.cyberciti.biz/guide/Main_Page|Linux Shell Scripting Tutorial (LSST) v2.0 ]]
 =====Perte mot de passe root===== =====Perte mot de passe root=====
  
Ligne 85: Ligne 89:
 [[https://www.cyberciti.biz/faq/linux-inotify-examples-to-replicate-directories/|https://www.cyberciti.biz/faq/linux-inotify-examples-to-replicate-directories/]] [[https://www.cyberciti.biz/faq/linux-inotify-examples-to-replicate-directories/|https://www.cyberciti.biz/faq/linux-inotify-examples-to-replicate-directories/]]
 Linux incrond inotify Monitor Directories For Changes And Take Action Linux incrond inotify Monitor Directories For Changes And Take Action
 +
 +=====Xinput=====
 +Lister les périph
 +
 +
 +<code bash>ragnarok@Fenrir:~$ xinput --list
 +⎡ Virtual core pointer                    id=2 [master pointer  (3)]
 +⎜   ↳ Virtual core XTEST pointer              id=4 [slave  pointer  (2)]
 +⎜   ↳ AlpsPS/2 ALPS DualPoint TouchPad        id=13 [slave  pointer  (2)]
 +⎜   ↳ AlpsPS/2 ALPS DualPoint Stick            id=14 [slave  pointer  (2)]
 +⎣ Virtual core keyboard                    id=3 [master keyboard (2)]
 +    ↳ Virtual core XTEST keyboard              id=5 [slave  keyboard (3)]
 +    ↳ Power Button                            id=6 [slave  keyboard (3)]
 +    ↳ Video Bus                                id=7 [slave  keyboard (3)]
 +    ↳ Power Button                            id=8 [slave  keyboard (3)]
 +    ↳ Sleep Button                            id=9 [slave  keyboard (3)]
 +    ↳ Laptop_Integrated_Webcam_HD: In          id=10 [slave  keyboard (3)]
 +    ↳ Dell WMI hotkeys                        id=11 [slave  keyboard (3)]
 +    ↳ AT Translated Set 2 keyboard            id=12 [slave  keyboard (3)]
 +</code>
 +
 +Détailler le touchpad
 +<code bash>ragnarok@Fenrir:~$ xinput list-props 13
 +Device 'AlpsPS/2 ALPS DualPoint TouchPad':
 + Device Enabled (154): 1
 + Coordinate Transformation Matrix (156): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
 + libinput Tapping Enabled (292): 1
 + libinput Tapping Enabled Default (293): 0
 + libinput Tapping Drag Enabled (294): 1
 + libinput Tapping Drag Enabled Default (295): 1
 + libinput Tapping Drag Lock Enabled (296): 0
 + libinput Tapping Drag Lock Enabled Default (297): 0
 + libinput Tapping Button Mapping Enabled (298): 1, 0
 + libinput Tapping Button Mapping Default (299): 1, 0
 + libinput Natural Scrolling Enabled (300): 0
 + libinput Natural Scrolling Enabled Default (301): 0
 + libinput Disable While Typing Enabled (302): 1
 + libinput Disable While Typing Enabled Default (303): 1
 + libinput Scroll Methods Available (304): 1, 1, 0
 + libinput Scroll Method Enabled (305): 1, 0, 0
 + libinput Scroll Method Enabled Default (306): 1, 0, 0
 + libinput Middle Emulation Enabled (307): 1
 + libinput Middle Emulation Enabled Default (308): 1
 + libinput Accel Speed (309): 0.000000
 + libinput Accel Speed Default (310): 0.000000
 + libinput Left Handed Enabled (311): 0
 + libinput Left Handed Enabled Default (312): 0
 + libinput Send Events Modes Available (277): 1, 1
 + libinput Send Events Mode Enabled (278): 0, 0
 + libinput Send Events Mode Enabled Default (279): 0, 0
 + Device Node (280): "/dev/input/event2"
 + Device Product ID (281): 2, 8
 + libinput Drag Lock Buttons (313): <no items>
 + libinput Horizontal Scroll Enabled (314): 1</code>
 +
 +Activer une option (exemple tapping touchpad)
 +<code bash>ragnarok@Fenrir:~$ xinput --set-prop 13 292 1</code>
 +
  
 =====TOUCHPAD===== =====TOUCHPAD=====
Ligne 92: Ligne 154:
 Activer Activer
 <code bash>  xinput --set-prop `xinput | sed -nr 's/.*TouchPad.*id=([0-9]*).*/\1/p' "Device Enabled" 1</code> <code bash>  xinput --set-prop `xinput | sed -nr 's/.*TouchPad.*id=([0-9]*).*/\1/p' "Device Enabled" 1</code>
 +
 +
 +
  
 =====xbindkeys / brightness===== =====xbindkeys / brightness=====
Ligne 297: Ligne 362:
  
 ===== Packager sous DEBIAN =====  ===== Packager sous DEBIAN ===== 
-Packager sous Debian +  *[[https://wiki.visionduweb.fr/index.php?title=Programmer_un_paquet_logiciel_pour_Debian|Packager sous Debian]] 
-https://wiki.visionduweb.fr/index.php?title=Programmer_un_paquet_logiciel_pour_Debian+ 
 +===== Xrandr : augmenter sa résolution =====  
 + 
 +Visualiser la liste des résolutions natives de votre système 
 +<code bash>$ xrandr</code> 
 + 
 +Ensuite, calculez un modèle pour la résolution qui vous convient 
 +<code bash>$ cvt 1920 1080 </code>  
 + 
 + 
 +Ensuite, utilisez xrandr pour ajouter la résolution à l’affichage 
 +<code bash>$ xrandr --newmode "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync 
 +$ xrandr --addmode eDP-1 "1368x768_60.00"</code> 
 + 
 +Appliquer cette nouvelle résolution 
 +<code bash>$ xrandr --output eDP-1 --mode "1368x768_60.00"</code> 
 + 
 +xrandr 
 +Pour tester une configuration de suite 
 +<code bash>xrandr -s 1600x1024</code> 
php-bash/aide-memoire.txt · Dernière modification : 2024/06/13 18:34 de cyrille