{{tag>Pb Graphique X11 SSH Réseau Chroot}} # Notes X11 Voir : * [[Notes X11 autorisations - xhost - Xauthority]] * https://wrasse.plymouth.ac.uk/ac-news/running-x11-apps-a-comprehensive-guide-1764798521 Voir aussi : * X Display Manager Control Protocol (XDMCP) * PipeWire * waypipe ## Quel est mon gestionnaire de fenêtres - what is my window manager running ~~~bash sudo apt-get install wmctrl wmctrl -m ~~~ Ou plus simplement ~~~bash printf 'Desktop: %s\nSession: %s\n' "$XDG_CURRENT_DESKTOP" "$GDMSESSION" ~~~ ## Lister toutes les fenêtres ouvertes sur le serveur X11 ~~~bash xwininfo -tree -root # wmctrl -l ~~~ ## Fermer un fenêtre en ligne de commande ~~~ wmctrl -l wmctrl -ic 0x02e00085 ~~~ ou ~~~bash # replace WID with your window ID kill $(wmctrl -lp | awk '/^WID/ {print $3}') ~~~ ## Notes install X11 sur RedHat7 ~~~bash yum downgrade glibc glibc-common yum downgrade plymouth --setopt=protected_multilib=false yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop" yum install gcc make kernel-headers kernel-devel rpm -qa | grep kernel uname -r rpm -e kernel-3.10.0-327.28.3.el7.x86_64 mount /dev/cdrom /mnt/ ./VBoxLinuxAdditions.run #yum install bash-completion systemctl status vboxadd systemctl status vboxadd-service systemctl status vboxadd-x11 #yum groupinstall 'X Window System' 'GNOME' yum groupinstall 'Server with GUI' --skip-broken --setopt=protected_multilib=false yum downgrade dbus-libs avahi-libs dbus avahi-autoipd yum groupinstall 'Server with GUI' --skip-broken --setopt=protected_multilib=false yum install open-vm-tools open-vm-tools-desktop ~~~ 1. Install xauth: `sudo yum install xorg-x11-xauth` 2. Edit the `/etc/ssh/sshd_config` file, and enter the `X11Forwarding` variable in Yes. 3. Restart the sshd service: `sudo service sshd restart` ## WayPipe Similar to `ssh -X` ~~~bash waypipe ssh user@theserver weston-terminal waypipe -c lz4=9 ssh remote-server application-binary ~~~ ## How to make xterm black background by default Add to `~/.Xdefaults` : ~~~yaml xterm*background: black xterm*foreground: white ~~~ or ~~~bash alias xterm='xterm -bg black -fg white' ~~~