Table des matières
- 2026:
- 2025:
4 billet(s) pour septembre 2026
| Notes HTTP Strict Transport Security - HSTS | 2026/09/18 11:04 | Jean-Baptiste |
| Notes GNU Linux GPU carte graphiques | 2026/09/08 15:49 | Jean-Baptiste |
| Notes GNU Linux graphique | 2026/09/08 15:42 | Jean-Baptiste |
| Notes urlencoding - passer des mots de passe en HTTPS | 2026/09/03 17:58 | Jean-Baptiste |
Notes web
Coloration syntaxique
La coloration syntaxique de la note précédente a été faite avec pygmentize. Par exemple:
pygmentize -f html -l cpp -o code.html code
Pour récupérer le style CSS:
pygmentize -f html -S colorful
web worker / worker API / consumers
Three parties :
- The web worker is responsible for running scripts in its own separate thread.
- The worker API exposes a consumer-to-provider communication interface.
- The consumers want to run some scripts outside the main thread, so they don’t block the main thread.
Notes Web - Client-side rendering - CSR
Exemple
MdWiki
Voir :
Markdown / Commonmark - Prise en charge des “Wiki links” / liens Interwiki / liens relatifs
index.md
[plop](tech/plop2.md)
Notes Wayland
Voir :
- slurp
- X11
- PipeWire
- seat & seatd
Voir aussi :
- Sway WM (Windows Manager)
- hyprland
- ReGreet (Session Manager)
Désactiver Wayland et repasser à Xorg
/etc/gdm3/daemon.conf
[daemon] WaylandEnable=false [debug] # Uncomment the line below to turn on debugging #Enable=true
Suis-je sous Xorg X11 ou sous Wayland
$ echo $XDG_SESSION_TYPE x11 $ echo $XDG_SESSION_TYPE wayland # Xorg ou Xwayland ? $ ps -e |grep X 1467 tty7 3-00:41:28 Xorg
jean@debian10:~$ loginctl
SESSION UID USER SEAT TTY
1 1000 jibe seat0
1 sessions listed.
jibe@debian10:~$ loginctl show-session 1
Id=1
User=1000
Name=jean
Timestamp=Wed 2019-12-18 15:33:31 CET
TimestampMonotonic=17592338
VTNr=7
Seat=seat0
Display=:0
Remote=no
Service=sddm-autologin
Scope=session-1.scope
Leader=589
Audit=1
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
LockedHint=no
ou
$ loginctl
SESSION UID USER SEAT TTY STATE IDLE SINCE
1 1000 management - pts/1 active yes 2 weeks 1 day ago
1 sessions listed.
$ loginctl show-session 1 -p Type
Type=tty
$ echo $XDG_RUNTIME_DIR
/run/user/1000/
Faire fonctionner Synaptic en root
xhost +si:localuser:root
~/.bashrc
alias synaptic="xhost +si:localuser:root ; sudo /usr/sbin/synaptic ; xhost -si:localuser:root"
VNC
WayPipe
Le déport d'affichage X11 de ssh fonctionne sous Wayland comme auparavant pour les applications X11. Les applications Wayland natives ne fonctionnent pas en déport d'affichage.
Voir https://linuxfr.org/users/tarnyko/journaux/waypipe-affichage-distant-natif-pour-wayland
Concrètement, c’est aussi simple que de lancer waypipe ssh user@192.168.1.20 xterm entre deux machines équipées du binaire waypipe dans leur $PATH
waypipe ssh user@192.168.1.20 xterm
gnome-remote-desktop
Voir :
Install de Gnome Remote Desktop (dépend de PipeWire)
apt-get install gnome-remote-desktop
Enabling
Open Settings, select Sharing, and enable Screen sharing. This should automatically enable the service and you should immediately be able to connect via VNC.
Autres
MOZ_ENABLE_WAYLAND=1 firefox sudo flatpak override --socket=wayland org.mozilla.firefox sudo flatpak override --env MOZ_ENABLE_WAYLAND=1 org.mozilla.firefox
Pb
Err
$ kitty [066 14:06:15.666193] [glfw error 65544]: Wayland: Failed to connect to display
Solution
https://github.com/glfw/glfw/issues/1390
mv /usr/lib/kitty/kitty/glfw-wayland.so{,.orig}
Clef USB de dépannage outils boot live ISO
Liste d'ISOs utiles :
- Rescatux / Super Grub2 Disk www.supergrubdisk.org
- Debian Live
Outils pour créer une clef USB bootable :
