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 21:54] – [Programmation BASH] cyrillephp-bash:aide-memoire [2019/06/04 10:58] – [Crontab USER] 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]]
Ligne 8: Ligne 9:
   * [[https://wiki.visionduweb.fr/index.php?title=Programmer_un_paquet_logiciel_pour_Debian|Programmer un paquet DEBIAN]]   * [[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]]   * [[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 86: 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 93: 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 298: 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> 
 + 
 + 
 +===== Crontab USER =====  
 +Vérifier ses variables d'environnement, notamment  XDG_RUNTIME_DIR 
 +<code bash>serveur@serveurProliant:~$ env 
 +LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd    =40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;   4:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;    31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7    z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=0    1;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tb    z=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:    *.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=0    1;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.m    jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;    35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.sv    gz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;   5:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vo    b=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:   .flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35    :*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=0    0;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.    mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;   6:*.spx=00;36:*.xspf=00;36: 
 +SSH_CONNECTION=192.168.1.10 51524 192.168.1.50 22 
 +LANG=fr_FR.UTF-8 
 +XDG_SESSION_ID=12 
 +USER=serveur 
 +PWD=/home/serveur 
 +HOME=/home/serveur 
 +SSH_CLIENT=192.168.1.10 51524 22 
 +SSH_TTY=/dev/pts/
 +MAIL=/var/mail/serveur 
 +TERM=xterm 
 +SHELL=/bin/bash 
 +SHLVL=1 
 +LOGNAME=serveur 
 +DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus 
 +XDG_RUNTIME_DIR=/run/user/1000 
 +PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games 
 +_=/usr/bin/env</code> 
 + 
 + 
 +Puis cette variable 
 +<code bash>crontab -e</code> 
 +<code bash>00 21 2 6 * XDG_RUNTIME_DIR=/run/user/1000 /ma/commande/De/Shell/Script</code> 
 + 
 +Voir aussi [[https://askubuntu.com/questions/23009/why-crontab-scripts-are-not-working|https://askubuntu.com/questions/23009/why-crontab-scripts-are-not-working]] 
php-bash/aide-memoire.txt · Dernière modification : 2024/06/13 18:34 de cyrille